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 2
2
#[ macro_export]
3
3
#[ allow_internal_unstable( core_panic, const_caller_location) ]
4
4
#[ 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" ) ]
6
6
macro_rules! panic {
7
7
( ) => (
8
8
$crate:: panic!( "explicit panic" )
@@ -1216,7 +1216,7 @@ pub(crate) mod builtin {
1216
1216
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1217
1217
#[ rustc_builtin_macro]
1218
1218
#[ macro_export]
1219
- #[ rustc_diagnostic_item = "assert_macro" ]
1219
+ #[ cfg_attr ( not ( bootstrap ) , rustc_diagnostic_item = "assert_macro" ) ]
1220
1220
#[ allow_internal_unstable( core_panic) ]
1221
1221
macro_rules! assert {
1222
1222
( $cond: expr $( , ) ?) => { { /* compiler built-in */ } } ;
Original file line number Diff line number Diff line change 8
8
#[ macro_export]
9
9
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
10
10
#[ allow_internal_unstable( libstd_sys_internals) ]
11
- #[ rustc_diagnostic_item = "std_panic_macro" ]
11
+ #[ cfg_attr ( not ( bootstrap ) , rustc_diagnostic_item = "std_panic_macro" ) ]
12
12
macro_rules! panic {
13
13
( ) => ( { $crate:: panic!( "explicit panic" ) } ) ;
14
14
( $msg: expr $( , ) ?) => ( { $crate:: rt:: begin_panic( $msg) } ) ;
You can’t perform that action at this time.
0 commit comments