diff options
author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-02-05 10:56:29 +0100 |
---|---|---|
committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-02-11 15:08:17 +0100 |
commit | 4cfc2ce46d2813f5120053929609de6f9b976cd6 (patch) | |
tree | 608c4ce9c62ef6d67da168dadcc6f1293f2c394b /src/librustc_data_structures | |
parent | 36e7424b86eac4e88cd2965ec6980f3b477a8621 (diff) | |
download | rust-4cfc2ce46d2813f5120053929609de6f9b976cd6.tar.gz |
Use `allow_internal_unstable` in rustc itself
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r-- | src/librustc_data_structures/macros.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_data_structures/macros.rs b/src/librustc_data_structures/macros.rs index a661f0c78ab..af1f2910461 100644 --- a/src/librustc_data_structures/macros.rs +++ b/src/librustc_data_structures/macros.rs @@ -1,7 +1,8 @@ /// A simple static assertion macro. The first argument should be a unique /// ALL_CAPS identifier that describes the condition. #[macro_export] -#[allow_internal_unstable] +#[cfg_attr(stage0, allow_internal_unstable)] +#[cfg_attr(not(stage0), allow_internal_unstable(type_ascription))] macro_rules! static_assert { ($name:ident: $test:expr) => { // Use the bool to access an array such that if the bool is false, the access |