File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22#[ macro_export]
33#[ allow_internal_unstable( core_panic, const_caller_location) ]
44#[ stable( feature = "core" , since = "1.6.0" ) ]
5- #[ rustc_diagnostic_item = "core_panic_macro" ]
5+ #[ cfg_attr ( not ( bootstrap ) , rustc_diagnostic_item = "core_panic_macro" ) ]
66macro_rules! panic {
77 ( ) => (
88 $crate:: panic!( "explicit panic" )
@@ -1216,7 +1216,7 @@ pub(crate) mod builtin {
12161216 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
12171217 #[ rustc_builtin_macro]
12181218 #[ macro_export]
1219- #[ rustc_diagnostic_item = "assert_macro" ]
1219+ #[ cfg_attr ( not ( bootstrap ) , rustc_diagnostic_item = "assert_macro" ) ]
12201220 #[ allow_internal_unstable( core_panic) ]
12211221 macro_rules! assert {
12221222 ( $cond: expr $( , ) ?) => { { /* compiler built-in */ } } ;
Original file line number Diff line number Diff line change 88#[ macro_export]
99#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1010#[ allow_internal_unstable( libstd_sys_internals) ]
11- #[ rustc_diagnostic_item = "std_panic_macro" ]
11+ #[ cfg_attr ( not ( bootstrap ) , rustc_diagnostic_item = "std_panic_macro" ) ]
1212macro_rules! panic {
1313 ( ) => ( { $crate:: panic!( "explicit panic" ) } ) ;
1414 ( $msg: expr $( , ) ?) => ( { $crate:: rt:: begin_panic( $msg) } ) ;
You can’t perform that action at this time.
0 commit comments