File tree 2 files changed +0
-6
lines changed
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>>(
495
495
// hacky, but speeds up the `html5ever` benchmark significantly. (Issue
496
496
// 68836 suggests a more comprehensive but more complex change to deal with
497
497
// this situation.)
498
- // FIXME(Nilstrieb): Stop recovery from happening on this parser and retry later with recovery if the macro failed to match.
499
498
let parser = parser_from_cx ( sess, arg. clone ( ) , T :: recovery ( ) ) ;
500
499
// Try each arm's matchers.
501
500
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> {
2078
2078
2079
2079
if self . token . kind == TokenKind :: Semi
2080
2080
&& 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.
2084
2081
&& self . may_recover ( )
2085
- // FIXME(Nilstrieb): Remove this check once `may_recover` actually stops recovery
2086
- && self . subparser_name . is_none ( )
2087
2082
{
2088
2083
// It is likely that the closure body is a block but where the
2089
2084
// braces have been removed. We will recover and eat the next
You can’t perform that action at this time.
0 commit comments