Tiny formatting fix
This commit is contained in:
parent
b85f57d652
commit
0edca66a90
1 changed files with 7 additions and 6 deletions
|
@ -1503,12 +1503,13 @@ impl<'a> Parser<'a> {
|
|||
prior_type_ascription: self.last_type_ascription,
|
||||
});
|
||||
(lo.to(self.prev_token.span), ExprKind::MacCall(mac))
|
||||
} else if self.check(&token::OpenDelim(Delimiter::Brace)) &&
|
||||
let Some(expr) = self.maybe_parse_struct_expr(&qself, &path) {
|
||||
if qself.is_some() {
|
||||
self.sess.gated_spans.gate(sym::more_qualified_paths, path.span);
|
||||
}
|
||||
return expr;
|
||||
} else if self.check(&token::OpenDelim(Delimiter::Brace))
|
||||
&& let Some(expr) = self.maybe_parse_struct_expr(&qself, &path)
|
||||
{
|
||||
if qself.is_some() {
|
||||
self.sess.gated_spans.gate(sym::more_qualified_paths, path.span);
|
||||
}
|
||||
return expr;
|
||||
} else {
|
||||
(path.span, ExprKind::Path(qself, path))
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue