diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-06-07 18:29:48 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-06-12 20:27:29 +0300 |
| commit | eb09daa762c37c743584ec3b5c05a2d181960ced (patch) | |
| tree | dffa7d660bbebb3ec53ff8524ad3ac9b83b72d45 /src/liballoc | |
| parent | 24ddd1615419be89828fb5628e3c14af86c08b01 (diff) | |
| download | rust-eb09daa762c37c743584ec3b5c05a2d181960ced.tar.gz rust-eb09daa762c37c743584ec3b5c05a2d181960ced.zip | |
Hygienize macros in the standard library
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/macros.rs | 2 |
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 |
