diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-02-03 12:55:00 +0100 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-02-11 15:08:16 +0100 |
| commit | d3c212c5527f901fcb44d59d031695248762c340 (patch) | |
| tree | 517e224748ab0be13ec54bc99b5f728263152328 /src/liballoc | |
| parent | 57d7cfc3cf50f0c427ad3043ff09eaef20671320 (diff) | |
| download | rust-d3c212c5527f901fcb44d59d031695248762c340.tar.gz rust-d3c212c5527f901fcb44d59d031695248762c340.zip | |
Require a list of features to allow in `allow_internal_unstable`
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/macros.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liballoc/macros.rs b/src/liballoc/macros.rs index db91b07fa71..7ae57a8dc79 100644 --- a/src/liballoc/macros.rs +++ b/src/liballoc/macros.rs @@ -34,7 +34,8 @@ #[cfg(not(test))] #[macro_export] #[stable(feature = "rust1", since = "1.0.0")] -#[allow_internal_unstable] +#[cfg_attr(not(stage0), allow_internal_unstable(box_syntax))] +#[cfg_attr(stage0, allow_internal_unstable)] macro_rules! vec { ($elem:expr; $n:expr) => ( $crate::vec::from_elem($elem, $n) |
