Auto merge of #104410 - WaffleLapkin:unregress, r=estebank
Fix perf regression by correctly matching keywords This should (hopefully) fix regression from #99918 r? `@estebank`
This commit is contained in:
commit
70f8737b2f
2 changed files with 22 additions and 10 deletions
|
@ -536,7 +536,7 @@ impl<'a> Parser<'a> {
|
|||
};
|
||||
let span_start = self.token.span;
|
||||
let ast::FnHeader { ext, unsafety, constness, asyncness } =
|
||||
self.parse_fn_front_matter(&inherited_vis)?;
|
||||
self.parse_fn_front_matter(&inherited_vis, Case::Sensitive)?;
|
||||
if self.may_recover() && self.token.kind == TokenKind::Lt {
|
||||
self.recover_fn_ptr_with_generics(lo, &mut params, param_insertion_point)?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue