summaryrefslogtreecommitdiff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2019-02-05 10:56:29 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-02-11 15:08:17 +0100
commit4cfc2ce46d2813f5120053929609de6f9b976cd6 (patch)
tree608c4ce9c62ef6d67da168dadcc6f1293f2c394b /src/librustc_data_structures
parent36e7424b86eac4e88cd2965ec6980f3b477a8621 (diff)
downloadrust-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.rs3
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