diff --git a/src/stable/macros.rs b/src/stable/macros.rs index 29e59c6..808d8c3 100644 --- a/src/stable/macros.rs +++ b/src/stable/macros.rs @@ -55,7 +55,7 @@ #[macro_export] macro_rules! vec { (in $alloc:expr $(;)?) => ( - $crate::vec::Vec::new() + $crate::vec::Vec::new_in($alloc) ); (in $alloc:expr; $elem:expr; $n:expr) => ( $crate::vec::from_elem_in($elem, $n, $alloc)