We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e3b949 commit ff8df0bCopy full SHA for ff8df0b
library/std/src/macros.rs
@@ -8,7 +8,7 @@
8
#[macro_export]
9
#[stable(feature = "rust1", since = "1.0.0")]
10
#[allow_internal_unstable(libstd_sys_internals)]
11
-#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "std_panic_macro")]
+#[cfg_attr(not(any(bootstrap, test)), rustc_diagnostic_item = "std_panic_macro")]
12
macro_rules! panic {
13
() => ({ $crate::panic!("explicit panic") });
14
($msg:expr $(,)?) => ({ $crate::rt::begin_panic($msg) });
0 commit comments