Skip to content

Commit 6c35bf4

Browse files
committed
FIX #21475: Expr_::ExprPath with two fields
1 parent f84c257 commit 6c35bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/parse/parser.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3541,12 +3541,12 @@ impl<'a> Parser<'a> {
35413541
}
35423542
token::DotDotDot => {
35433543
let hi = self.last_span.hi;
3544-
let start = self.mk_expr(lo, hi, ExprPath(enum_path));
3544+
let start = self.mk_expr(lo, hi, ExprPath(None, enum_path));
35453545
self.eat(&token::DotDotDot);
35463546
let end = if self.token.is_ident() || self.token.is_path() {
35473547
let path = self.parse_path(LifetimeAndTypesWithColons);
35483548
let hi = self.span.hi;
3549-
self.mk_expr(lo, hi, ExprPath(path))
3549+
self.mk_expr(lo, hi, ExprPath(None, path))
35503550
} else {
35513551
self.parse_literal_maybe_minus()
35523552
};

0 commit comments

Comments
 (0)