Skip to content

Commit 4cfc2ce

Browse files
committed
Use allow_internal_unstable in rustc itself
1 parent 36e7424 commit 4cfc2ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_data_structures/macros.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/// A simple static assertion macro. The first argument should be a unique
22
/// ALL_CAPS identifier that describes the condition.
33
#[macro_export]
4-
#[allow_internal_unstable]
4+
#[cfg_attr(stage0, allow_internal_unstable)]
5+
#[cfg_attr(not(stage0), allow_internal_unstable(type_ascription))]
56
macro_rules! static_assert {
67
($name:ident: $test:expr) => {
78
// Use the bool to access an array such that if the bool is false, the access

0 commit comments

Comments
 (0)