Rollup merge of #48441 - petrochenkov:exty, r=estebank
Fix parsing of extern paths in types and poly-traits Fixes https://github.com/rust-lang/rust/issues/48262
This commit is contained in:
commit
69757c5bb9
3 changed files with 8 additions and 2 deletions
|
@ -1321,7 +1321,7 @@ impl<'a> Parser<'a> {
|
|||
pub fn token_is_bare_fn_keyword(&mut self) -> bool {
|
||||
self.check_keyword(keywords::Fn) ||
|
||||
self.check_keyword(keywords::Unsafe) ||
|
||||
self.check_keyword(keywords::Extern)
|
||||
self.check_keyword(keywords::Extern) && self.is_extern_non_path()
|
||||
}
|
||||
|
||||
fn eat_label(&mut self) -> Option<Label> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue