Skip to content

Commit d480499

Browse files
committed
Use correct edition for panic in [debug_]assert!() etc.
1 parent f6ba877 commit d480499

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/macros/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ pub macro assert_matches {
210210
#[macro_export]
211211
#[stable(feature = "rust1", since = "1.0.0")]
212212
#[rustc_diagnostic_item = "debug_assert_macro"]
213+
#[allow_internal_unstable(edition_panic)]
213214
macro_rules! debug_assert {
214215
($($arg:tt)*) => (if $crate::cfg!(debug_assertions) { $crate::assert!($($arg)*); })
215216
}

0 commit comments

Comments
 (0)