about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-27 23:22:59 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-11-07 05:25:31 +0100
commit49def0769c51d182bf6c321eefdcda288e3ad218 (patch)
tree1572b5e47c5a5686b0334276c940f8f423729d63
parentbeddf67a4b1ce5f1e14a67690644690c4b1bcfaa (diff)
downloadrust-49def0769c51d182bf6c321eefdcda288e3ad218.tar.gz
rust-49def0769c51d182bf6c321eefdcda288e3ad218.zip
cleanup can_begin_const_arg
-rw-r--r--src/libsyntax/parse/token.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 03e77b199cc..ea82aad0eae 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -381,9 +381,7 @@ impl Token {
         match self.kind {
             OpenDelim(Brace) => true,
             Interpolated(ref nt) => match **nt {
-                NtExpr(..) => true,
-                NtBlock(..) => true,
-                NtLiteral(..) => true,
+                NtExpr(..) | NtBlock(..) | NtLiteral(..) => true,
                 _ => false,
             }
             _ => self.can_begin_literal_or_bool(),