diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-09-03 11:15:41 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-09-03 11:15:41 +0200 |
| commit | 1b3cd960decbaad3fc585c4ac4e5ec4dd8ceabc9 (patch) | |
| tree | 5acdfac8ee3c93ff0023292734ff32891f67dc7d /src/libsyntax/parse | |
| parent | ba1f44d24fd740bf9f74f99ffcd4733151b84fab (diff) | |
| download | rust-1b3cd960decbaad3fc585c4ac4e5ec4dd8ceabc9.tar.gz rust-1b3cd960decbaad3fc585c4ac4e5ec4dd8ceabc9.zip | |
Incorporate review feedback. Fix #8468.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index b939ac10931..14b133b4379 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -348,10 +348,7 @@ impl Drop for Parser { } fn is_plain_ident_or_underscore(t: &token::Token) -> bool { - match *t { - token::IDENT(_, false) | token::UNDERSCORE => true, - _ => false, - } + is_plain_ident(t) || *t == token::UNDERSCORE } impl Parser { |
