File tree Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -495,7 +495,6 @@ fn try_match_macro<'matcher, T: Tracker<'matcher>>(
495495 // hacky, but speeds up the `html5ever` benchmark significantly. (Issue
496496 // 68836 suggests a more comprehensive but more complex change to deal with
497497 // this situation.)
498- // FIXME(Nilstrieb): Stop recovery from happening on this parser and retry later with recovery if the macro failed to match.
499498 let parser = parser_from_cx ( sess, arg. clone ( ) , T :: recovery ( ) ) ;
500499 // Try each arm's matchers.
501500 let mut tt_parser = TtParser :: new ( name) ;
Original file line number Diff line number Diff line change @@ -2078,12 +2078,7 @@ impl<'a> Parser<'a> {
20782078
20792079 if self . token . kind == TokenKind :: Semi
20802080 && matches ! ( self . token_cursor. frame. delim_sp, Some ( ( Delimiter :: Parenthesis , _) ) )
2081- // HACK: This is needed so we can detect whether we're inside a macro,
2082- // where regular assumptions about what tokens can follow other tokens
2083- // don't necessarily apply.
20842081 && self . may_recover ( )
2085- // FIXME(Nilstrieb): Remove this check once `may_recover` actually stops recovery
2086- && self . subparser_name . is_none ( )
20872082 {
20882083 // It is likely that the closure body is a block but where the
20892084 // braces have been removed. We will recover and eat the next
You can’t perform that action at this time.
0 commit comments