Add cfg(not(test)) to std_panic_macro rustc_diagnostic_item.
This commit is contained in:
parent
9e3b949b8c
commit
ff8df0bbe3
@ -8,7 +8,7 @@
|
||||
#[macro_export]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[allow_internal_unstable(libstd_sys_internals)]
|
||||
#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "std_panic_macro")]
|
||||
#[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) });
|
||||
|
Loading…
x
Reference in New Issue
Block a user