diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-10-19 10:57:44 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-10-19 10:57:44 +0200 |
| commit | ff8df0bbe38d8b1216661c6544de4187e41eb45b (patch) | |
| tree | 68438238ee0f8804f239ade782c6864f93c3475e | |
| parent | 9e3b949b8c43b43f38dd79dd2b9d6f600eec9ddb (diff) | |
| download | rust-ff8df0bbe38d8b1216661c6544de4187e41eb45b.tar.gz rust-ff8df0bbe38d8b1216661c6544de4187e41eb45b.zip | |
Add cfg(not(test)) to std_panic_macro rustc_diagnostic_item.
| -rw-r--r-- | library/std/src/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/macros.rs b/library/std/src/macros.rs index f34eea1f8ac..de072e83dfc 100644 --- a/library/std/src/macros.rs +++ b/library/std/src/macros.rs @@ -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) }); |
