about summary refs log tree commit diff
path: root/src/liballoc/vec.rs
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-04-29 17:13:49 -0500
committerMark Mansi <markm@cs.wisc.edu>2018-04-29 17:13:49 -0500
commite5280e452f194ea7b4066c50b7954e07cb054161 (patch)
treea07e96a66b3c56b8be0da3400ceb3ded9fd8310c /src/liballoc/vec.rs
parent0212e0230a500c3b50a6830a20c12d1db3520b99 (diff)
downloadrust-e5280e452f194ea7b4066c50b7954e07cb054161.tar.gz
rust-e5280e452f194ea7b4066c50b7954e07cb054161.zip
use const trick
Diffstat (limited to 'src/liballoc/vec.rs')
-rw-r--r--src/liballoc/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index 415d75664ff..35d0a69a05a 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -325,7 +325,7 @@ impl<T> Vec<T> {
     #[rustc_const_unstable(feature = "const_vec_new")]
     pub const fn new() -> Vec<T> {
         Vec {
-            buf: RawVec::empty(),
+            buf: RawVec::new(),
             len: 0,
         }
     }