diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2021-10-07 20:26:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-07 20:26:15 -0700 |
| commit | 30e068f58b46d42b0e71b5112ceb2193f376ecc2 (patch) | |
| tree | 87a0b8e620cbce6d2a0880a6b84c6bac22cfcb41 /library/core/src | |
| parent | aed18018410ea09de7924938e15f877bc3df4a71 (diff) | |
| parent | fcd9fa9099569beba9c85c594ecbb9b07a1a7501 (diff) | |
| download | rust-30e068f58b46d42b0e71b5112ceb2193f376ecc2.tar.gz rust-30e068f58b46d42b0e71b5112ceb2193f376ecc2.zip | |
Rollup merge of #89622 - m-ou-se:debug-assert-2021, r=estebank
Use correct edition for panic in [debug_]assert!(). See https://github.com/rust-lang/rust/issues/88638#issuecomment-915472783
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/macros/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 035a748f782..5b3e988caa5 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -210,6 +210,7 @@ pub macro assert_matches { #[macro_export] #[stable(feature = "rust1", since = "1.0.0")] #[rustc_diagnostic_item = "debug_assert_macro"] +#[allow_internal_unstable(edition_panic)] macro_rules! debug_assert { ($($arg:tt)*) => (if $crate::cfg!(debug_assertions) { $crate::assert!($($arg)*); }) } |
