about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-06-07 18:29:48 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-06-12 20:27:29 +0300
commiteb09daa762c37c743584ec3b5c05a2d181960ced (patch)
treedffa7d660bbebb3ec53ff8524ad3ac9b83b72d45 /src/liballoc
parent24ddd1615419be89828fb5628e3c14af86c08b01 (diff)
downloadrust-eb09daa762c37c743584ec3b5c05a2d181960ced.tar.gz
rust-eb09daa762c37c743584ec3b5c05a2d181960ced.zip
Hygienize macros in the standard library
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/macros.rs b/src/liballoc/macros.rs
index dd128e096f9..250c419c531 100644
--- a/src/liballoc/macros.rs
+++ b/src/liballoc/macros.rs
@@ -42,7 +42,7 @@ macro_rules! vec {
     ($($x:expr),*) => (
         <[_]>::into_vec(box [$($x),*])
     );
-    ($($x:expr,)*) => (vec![$($x),*])
+    ($($x:expr,)*) => ($crate::vec![$($x),*])
 }
 
 // HACK(japaric): with cfg(test) the inherent `[T]::into_vec` method, which is