diff options
Diffstat (limited to 'library/std/src/macros.rs')
| -rw-r--r-- | library/std/src/macros.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/macros.rs b/library/std/src/macros.rs index 57649d6f8f2..de072e83dfc 100644 --- a/library/std/src/macros.rs +++ b/library/std/src/macros.rs @@ -8,6 +8,7 @@ #[macro_export] #[stable(feature = "rust1", since = "1.0.0")] #[allow_internal_unstable(libstd_sys_internals)] +#[cfg_attr(not(any(bootstrap, test)), rustc_diagnostic_item = "std_panic_macro")] macro_rules! panic { () => ({ $crate::panic!("explicit panic") }); ($msg:expr $(,)?) => ({ $crate::rt::begin_panic($msg) }); |
