Skip to content

Commit 2c83aa0

Browse files
Rollup merge of rust-lang#89622 - m-ou-se:debug-assert-2021, r=estebank
Use correct edition for panic in [debug_]assert!(). See rust-lang#88638 (comment)
2 parents fe2d894 + d480499 commit 2c83aa0

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)