Add cfg(not(bootstrap)) on the new rustc_diagnostic_item attributes.
The beta compiler doesn't accept rustc_diagnostic_items on macros yet.
This commit is contained in:
parent
14dcf0a8ac
commit
dd262e3856
@ -2,7 +2,7 @@
|
||||
#[macro_export]
|
||||
#[allow_internal_unstable(core_panic, const_caller_location)]
|
||||
#[stable(feature = "core", since = "1.6.0")]
|
||||
#[rustc_diagnostic_item = "core_panic_macro"]
|
||||
#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "core_panic_macro")]
|
||||
macro_rules! panic {
|
||||
() => (
|
||||
$crate::panic!("explicit panic")
|
||||
@ -1216,7 +1216,7 @@ macro_rules! include {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_builtin_macro]
|
||||
#[macro_export]
|
||||
#[rustc_diagnostic_item = "assert_macro"]
|
||||
#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "assert_macro")]
|
||||
#[allow_internal_unstable(core_panic)]
|
||||
macro_rules! assert {
|
||||
($cond:expr $(,)?) => {{ /* compiler built-in */ }};
|
||||
|
@ -8,7 +8,7 @@
|
||||
#[macro_export]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[allow_internal_unstable(libstd_sys_internals)]
|
||||
#[rustc_diagnostic_item = "std_panic_macro"]
|
||||
#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "std_panic_macro")]
|
||||
macro_rules! panic {
|
||||
() => ({ $crate::panic!("explicit panic") });
|
||||
($msg:expr $(,)?) => ({ $crate::rt::begin_panic($msg) });
|
||||
|
Loading…
Reference in New Issue
Block a user