about summary refs log tree commit diff
path: root/src/libsyntax/util/parser.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-05-11 17:41:37 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-05-22 19:48:56 +0300
commit59a382122fb09e2a9b4629e36efbc63a321eab6a (patch)
tree4ebc598c88ba0ca2a11848b1cd2e142cd340ed15 /src/libsyntax/util/parser.rs
parent37ff5d388f8c004ca248adb635f1cc84d347eda0 (diff)
downloadrust-59a382122fb09e2a9b4629e36efbc63a321eab6a.tar.gz
rust-59a382122fb09e2a9b4629e36efbc63a321eab6a.zip
Simplify use of keyword symbols
Diffstat (limited to 'src/libsyntax/util/parser.rs')
-rw-r--r--src/libsyntax/util/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/util/parser.rs b/src/libsyntax/util/parser.rs
index 86e89945afe..6789fea28ca 100644
--- a/src/libsyntax/util/parser.rs
+++ b/src/libsyntax/util/parser.rs
@@ -1,5 +1,5 @@
 use crate::parse::token::{Token, BinOpToken};
-use crate::symbol::keywords;
+use crate::symbol::kw;
 use crate::ast::{self, BinOpKind};
 
 /// Associative operator with precedence.
@@ -100,7 +100,7 @@ impl AssocOp {
             // DotDotDot is no longer supported, but we need some way to display the error
             Token::DotDotDot => Some(DotDotEq),
             Token::Colon => Some(Colon),
-            _ if t.is_keyword(keywords::As) => Some(As),
+            _ if t.is_keyword(kw::As) => Some(As),
             _ => None
         }
     }