Skip to content

Commit ff8df0b

Browse files
committed
Add cfg(not(test)) to std_panic_macro rustc_diagnostic_item.
1 parent 9e3b949 commit ff8df0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#[macro_export]
99
#[stable(feature = "rust1", since = "1.0.0")]
1010
#[allow_internal_unstable(libstd_sys_internals)]
11-
#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "std_panic_macro")]
11+
#[cfg_attr(not(any(bootstrap, test)), rustc_diagnostic_item = "std_panic_macro")]
1212
macro_rules! panic {
1313
() => ({ $crate::panic!("explicit panic") });
1414
($msg:expr $(,)?) => ({ $crate::rt::begin_panic($msg) });

0 commit comments

Comments
 (0)