File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
compiler/rustc_parse/src/parser Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1679,7 +1679,7 @@ impl<'a> Parser<'a> {
1679
1679
let constness = self . parse_constness ( ) ;
1680
1680
let asyncness = self . parse_asyncness ( ) ;
1681
1681
let unsafety = self . parse_unsafety ( ) ;
1682
- let ext = self . parse_extern ( ) ? ;
1682
+ let ext = self . parse_extern ( ) ;
1683
1683
1684
1684
if let Async :: Yes { span, .. } = asyncness {
1685
1685
self . ban_async_in_2015 ( span) ;
Original file line number Diff line number Diff line change @@ -1202,12 +1202,8 @@ impl<'a> Parser<'a> {
1202
1202
}
1203
1203
1204
1204
/// Parses `extern string_literal?`.
1205
- fn parse_extern ( & mut self ) -> PResult < ' a , Extern > {
1206
- Ok ( if self . eat_keyword ( kw:: Extern ) {
1207
- Extern :: from_abi ( self . parse_abi ( ) )
1208
- } else {
1209
- Extern :: None
1210
- } )
1205
+ fn parse_extern ( & mut self ) -> Extern {
1206
+ if self . eat_keyword ( kw:: Extern ) { Extern :: from_abi ( self . parse_abi ( ) ) } else { Extern :: None }
1211
1207
}
1212
1208
1213
1209
/// Parses a string literal as an ABI spec.
You can’t perform that action at this time.
0 commit comments