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> {
683
683
}
684
684
}
685
685
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
+ {
687
689
let path = other_attr. path ( ) ;
688
690
let path: Vec < _ > = path. iter ( ) . map ( |s| s. as_str ( ) ) . collect ( ) ;
689
691
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() {
231
231
pub extern "C" fn rustc_std_internal_symbol ( ) {
232
232
naked_asm ! ( "" , options( raw) ) ;
233
233
}
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