@@ -1020,7 +1020,7 @@ impl<'a> Parser<'a> {
1020
1020
& format ! ( "`{}` must come before `{}`" , invalid_qual, current_qual) ,
1021
1021
format ! ( "{} {}" , invalid_qual, current_qual) ,
1022
1022
Applicability :: MachineApplicable ,
1023
- ) . note ( "keyword order for functions declaration is `default `, `pub `, `const`, `async`, `unsafe`, `extern`" ) ;
1023
+ ) . note ( "keyword order for functions declaration is `pub `, `default `, `const`, `async`, `unsafe`, `extern`" ) ;
1024
1024
}
1025
1025
}
1026
1026
Err ( err)
@@ -2086,7 +2086,7 @@ impl<'a> Parser<'a> {
2086
2086
& format ! ( "`{misplaced_qual}` must come before `{current_qual}`" ) ,
2087
2087
format ! ( "{misplaced_qual} {current_qual}" ) ,
2088
2088
Applicability :: MachineApplicable ,
2089
- ) . note ( "keyword order for functions declaration is `default `, `pub `, `const`, `async`, `unsafe`, `extern`" ) ;
2089
+ ) . note ( "keyword order for functions declaration is `pub `, `default `, `const`, `async`, `unsafe`, `extern`" ) ;
2090
2090
}
2091
2091
}
2092
2092
// Recover incorrect visibility order such as `async pub`
0 commit comments