diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-05-11 10:14:49 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-05-11 10:14:49 +1000 |
| commit | 77f096453c819224e712bf56b4567558c7ae31e2 (patch) | |
| tree | 760b56f0dceab5ccebd7cc785b188f0263b486f0 | |
| parent | 70067e31ed8da831c4b564d3ce803099a7696eaf (diff) | |
| download | rust-77f096453c819224e712bf56b4567558c7ae31e2.tar.gz rust-77f096453c819224e712bf56b4567558c7ae31e2.zip | |
Remove some unnecessary invisible delimiter checks.
These seem to have no useful effect... they don't seem useful from a code inspection point of view, and they affect anything in the test suite.
| -rw-r--r-- | src/parse/macros/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parse/macros/mod.rs b/src/parse/macros/mod.rs index d4dbf21f8ca..67f3985926e 100644 --- a/src/parse/macros/mod.rs +++ b/src/parse/macros/mod.rs @@ -79,9 +79,7 @@ fn check_keyword<'a, 'b: 'a>(parser: &'a mut Parser<'b>) -> Option<MacroArg> { for &keyword in RUST_KW.iter() { if parser.token.is_keyword(keyword) && parser.look_ahead(1, |t| { - t.kind == TokenKind::Eof - || t.kind == TokenKind::Comma - || t.kind == TokenKind::CloseDelim(Delimiter::Invisible) + t.kind == TokenKind::Eof || t.kind == TokenKind::Comma }) { parser.bump(); |
