We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
allow_internal_unstable
1 parent 36e7424 commit 4cfc2ceCopy full SHA for 4cfc2ce
src/librustc_data_structures/macros.rs
@@ -1,7 +1,8 @@
1
/// A simple static assertion macro. The first argument should be a unique
2
/// ALL_CAPS identifier that describes the condition.
3
#[macro_export]
4
-#[allow_internal_unstable]
+#[cfg_attr(stage0, allow_internal_unstable)]
5
+#[cfg_attr(not(stage0), allow_internal_unstable(type_ascription))]
6
macro_rules! static_assert {
7
($name:ident: $test:expr) => {
8
// Use the bool to access an array such that if the bool is false, the access
0 commit comments