about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs5
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 {