cleanup can_begin_const_arg

This commit is contained in:
Mazdak Farrokhzad
2019-10-27 23:22:59 +01:00
parent beddf67a4b
commit 49def0769c
+1 -3
View File
@@ -381,9 +381,7 @@ pub fn can_begin_type(&self) -> bool {
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(),