mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
cleanup can_begin_const_arg
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user