Skip to content

Commit 49def07

Browse files
committed
cleanup can_begin_const_arg
1 parent beddf67 commit 49def07

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libsyntax/parse/token.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,7 @@ impl Token {
381381
match self.kind {
382382
OpenDelim(Brace) => true,
383383
Interpolated(ref nt) => match **nt {
384-
NtExpr(..) => true,
385-
NtBlock(..) => true,
386-
NtLiteral(..) => true,
384+
NtExpr(..) | NtBlock(..) | NtLiteral(..) => true,
387385
_ => false,
388386
}
389387
_ => self.can_begin_literal_or_bool(),

0 commit comments

Comments
 (0)