]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/macros/mod.rs
expand: Support helper attributes for built-in derive macros
[rust.git] / library / core / src / macros / mod.rs
index 7eb65483b99e77e09ea5825062c6e5828a110d94..7d22bfedb93b946234540931169e3d71c9cd04d6 100644 (file)
@@ -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"]