File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
#[ doc = include_str ! ( "panic.md" ) ]
2
2
#[ macro_export]
3
- #[ rustc_builtin_macro = "core_panic" ]
3
+ #[ cfg_attr( bootstrap, rustc_builtin_macro = "core_panic" ) ]
4
+ #[ cfg_attr( not( bootstrap) , rustc_builtin_macro( core_panic) ) ]
4
5
#[ allow_internal_unstable( edition_panic) ]
5
6
#[ stable( feature = "core" , since = "1.6.0" ) ]
6
7
#[ rustc_diagnostic_item = "core_panic_macro" ]
Original file line number Diff line number Diff line change 6
6
7
7
#[ doc = include_str ! ( "../../core/src/macros/panic.md" ) ]
8
8
#[ macro_export]
9
- #[ rustc_builtin_macro = "std_panic" ]
9
+ #[ cfg_attr( bootstrap, rustc_builtin_macro = "std_panic" ) ]
10
+ #[ cfg_attr( not( bootstrap) , rustc_builtin_macro( std_panic) ) ]
10
11
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
11
12
#[ allow_internal_unstable( edition_panic) ]
12
13
#[ cfg_attr( not( test) , rustc_diagnostic_item = "std_panic_macro" ) ]
You can’t perform that action at this time.
0 commit comments