FIX #21475: Expr_::ExprPath with two fields

This commit is contained in:
defuz 2015-02-28 11:01:28 +02:00
parent f84c25721e
commit 6c35bf4fbc

View file

@ -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()
};