diff options
| author | defuz <defuz.net@gmail.com> | 2015-02-28 11:01:28 +0200 |
|---|---|---|
| committer | defuz <defuz.net@gmail.com> | 2015-02-28 11:01:28 +0200 |
| commit | 6c35bf4fbc4f795eb18bbb0c750ed478a47fff4e (patch) | |
| tree | 2e7efd70e196030fa08c3340723bbff4a40f23a3 /src | |
| parent | f84c25721e097e52fa77903881f73fe55890da0d (diff) | |
| download | rust-6c35bf4fbc4f795eb18bbb0c750ed478a47fff4e.tar.gz rust-6c35bf4fbc4f795eb18bbb0c750ed478a47fff4e.zip | |
FIX #21475: Expr_::ExprPath with two fields
Diffstat (limited to 'src')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 1ef62cdf315..9a265cb592d 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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() }; |
