diff options
| author | Marcus Klaas <mail@marcusklaas.nl> | 2015-06-03 23:51:51 +0200 |
|---|---|---|
| committer | Marcus Klaas <mail@marcusklaas.nl> | 2015-06-04 02:40:12 +0200 |
| commit | 0000d4c62a9508c30354e8064c1866312839bb7a (patch) | |
| tree | 57a08f25f0781aff1c97ea90e87e514b5f97669f /src/libsyntax/parse | |
| parent | a5979be9fefe671fa81ec70720234602f8112bec (diff) | |
| download | rust-0000d4c62a9508c30354e8064c1866312839bb7a.tar.gz rust-0000d4c62a9508c30354e8064c1866312839bb7a.zip | |
Fix span for ExprPath variants
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 539d594cb8b..420b27b8395 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2070,10 +2070,9 @@ impl<'a> Parser<'a> { } _ => { if try!(self.eat_lt()){ - let (qself, path) = try!(self.parse_qualified_path(LifetimeAndTypesWithColons)); - + hi = path.span.hi; return Ok(self.mk_expr(lo, hi, ExprPath(Some(qself), path))); } if try!(self.eat_keyword(keywords::Move) ){ |
