Add cfg(not(test)) to std_panic_macro rustc_diagnostic_item.
This commit is contained in:
parent
9e3b949b8c
commit
ff8df0bbe3
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[allow_internal_unstable(libstd_sys_internals)]
|
#[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 {
|
macro_rules! panic {
|
||||||
() => ({ $crate::panic!("explicit panic") });
|
() => ({ $crate::panic!("explicit panic") });
|
||||||
($msg:expr $(,)?) => ({ $crate::rt::begin_panic($msg) });
|
($msg:expr $(,)?) => ({ $crate::rt::begin_panic($msg) });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue