Skip to content

Commit

Permalink
FIX #21475: Expr_::ExprPath with two fields
Browse files Browse the repository at this point in the history
  • Loading branch information
defuz committed Feb 28, 2015
1 parent f84c257 commit 6c35bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};
Expand Down

0 comments on commit 6c35bf4

Please sign in to comment.