about summary refs log tree commit diff
path: root/compiler/rustc_ast
diff options
context:
space:
mode:
authorFabian Wolff <fabian.wolff@alumni.ethz.ch>2021-10-04 22:13:00 +0200
committerFabian Wolff <fabian.wolff@alumni.ethz.ch>2021-10-04 22:13:00 +0200
commit079c075f24d2aae84cd6715f350cf56420816f63 (patch)
tree9aef3bf0be630852c057cf9014a39bd668d38ec6 /compiler/rustc_ast
parentcf19131cb356591d27dded5bdb1d00df1bd077c9 (diff)
downloadrust-079c075f24d2aae84cd6715f350cf56420816f63.tar.gz
rust-079c075f24d2aae84cd6715f350cf56420816f63.zip
Use `TokenKind::similar_tokens()`
Diffstat (limited to 'compiler/rustc_ast')
-rw-r--r--compiler/rustc_ast/src/token.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast/src/token.rs b/compiler/rustc_ast/src/token.rs
index 3a65ffe41ae..db066d7c6a5 100644
--- a/compiler/rustc_ast/src/token.rs
+++ b/compiler/rustc_ast/src/token.rs
@@ -295,6 +295,7 @@ impl TokenKind {
         match *self {
             Comma => Some(vec![Dot, Lt, Semi]),
             Semi => Some(vec![Colon, Comma]),
+            FatArrow => Some(vec![Eq, RArrow]),
             _ => None,
         }
     }