diff options
| author | Mark Mansi <markm@cs.wisc.edu> | 2018-04-26 12:46:28 -0500 |
|---|---|---|
| committer | Mark Mansi <markm@cs.wisc.edu> | 2018-04-26 12:46:28 -0500 |
| commit | 20ef0e001a1620436073d01f43a4a462d1967902 (patch) | |
| tree | a76b8095d569fbb00b35dba04b4c0dfa6881ed05 /src/liballoc | |
| parent | a2105b8e21a71f513e6840ec0571cad5c1a36012 (diff) | |
| download | rust-20ef0e001a1620436073d01f43a4a462d1967902.tar.gz rust-20ef0e001a1620436073d01f43a4a462d1967902.zip | |
make Vec::new const :P
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 757606607bb..1d95f76fd77 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -322,7 +322,7 @@ impl<T> Vec<T> { /// ``` #[inline] #[stable(feature = "rust1", since = "1.0.0")] - pub fn new() -> Vec<T> { + pub const fn new() -> Vec<T> { Vec { buf: RawVec::empty(), len: 0, |
