File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
compiler/rustc_passes/src Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -683,7 +683,9 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
683683 }
684684 }
685685
686- if !other_attr. has_any_name ( ALLOW_LIST ) {
686+ if !other_attr. has_any_name ( ALLOW_LIST )
687+ && !matches ! ( other_attr. path( ) . as_slice( ) , [ sym:: rustfmt, ..] )
688+ {
687689 let path = other_attr. path ( ) ;
688690 let path: Vec < _ > = path. iter ( ) . map ( |s| s. as_str ( ) ) . collect ( ) ;
689691 let other_attr_name = path. join ( "::" ) ;
Original file line number Diff line number Diff line change @@ -231,3 +231,9 @@ pub extern "C" fn compatible_linkage() {
231231pub extern "C" fn rustc_std_internal_symbol ( ) {
232232 naked_asm ! ( "" , options( raw) ) ;
233233}
234+
235+ #[ rustfmt:: skip]
236+ #[ unsafe( naked) ]
237+ pub extern "C" fn rustfmt_skip ( ) {
238+ naked_asm ! ( "" , options( raw) ) ;
239+ }
You can’t perform that action at this time.
0 commit comments