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> {
16791679 let constness = self . parse_constness ( ) ;
16801680 let asyncness = self . parse_asyncness ( ) ;
16811681 let unsafety = self . parse_unsafety ( ) ;
1682- let ext = self . parse_extern ( ) ? ;
1682+ let ext = self . parse_extern ( ) ;
16831683
16841684 if let Async :: Yes { span, .. } = asyncness {
16851685 self . ban_async_in_2015 ( span) ;
Original file line number Diff line number Diff line change @@ -1202,12 +1202,8 @@ impl<'a> Parser<'a> {
12021202 }
12031203
12041204 /// 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 }
12111207 }
12121208
12131209 /// Parses a string literal as an ABI spec.
You can’t perform that action at this time.
0 commit comments