cleanup can_begin_const_arg

This commit is contained in:
Mazdak Farrokhzad 2019-10-27 23:22:59 +01:00
parent beddf67a4b
commit 49def0769c

View file

@ -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(),