X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Fcore%2Fsrc%2Fmacros%2Fmod.rs;h=7d22bfedb93b946234540931169e3d71c9cd04d6;hb=6c9ea1e8a9c899979a8b4dd86b32c4c77f4b6b6a;hp=7eb65483b99e77e09ea5825062c6e5828a110d94;hpb=36b9a6ee73e1d8756b701049521fa8d50bfd56f1;p=rust.git diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 7eb65483b99..7d22bfedb93 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -1,6 +1,7 @@ #[doc = include_str!("panic.md")] #[macro_export] -#[rustc_builtin_macro = "core_panic"] +#[cfg_attr(bootstrap, rustc_builtin_macro = "core_panic")] +#[cfg_attr(not(bootstrap), rustc_builtin_macro(core_panic))] #[allow_internal_unstable(edition_panic)] #[stable(feature = "core", since = "1.6.0")] #[rustc_diagnostic_item = "core_panic_macro"]