FIX #21475: Expr_::ExprPath with two fields
This commit is contained in:
parent
f84c25721e
commit
6c35bf4fbc
1 changed files with 2 additions and 2 deletions
|
@ -3541,12 +3541,12 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
token::DotDotDot => {
|
||||
let hi = self.last_span.hi;
|
||||
let start = self.mk_expr(lo, hi, ExprPath(enum_path));
|
||||
let start = self.mk_expr(lo, hi, ExprPath(None, enum_path));
|
||||
self.eat(&token::DotDotDot);
|
||||
let end = if self.token.is_ident() || self.token.is_path() {
|
||||
let path = self.parse_path(LifetimeAndTypesWithColons);
|
||||
let hi = self.span.hi;
|
||||
self.mk_expr(lo, hi, ExprPath(path))
|
||||
self.mk_expr(lo, hi, ExprPath(None, path))
|
||||
} else {
|
||||
self.parse_literal_maybe_minus()
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue