Rollup merge of #25994 - marcusklaas:issue-25969, r=huonw

Issue: https://github.com/rust-lang/rust/issues/25969

Compare the span on the stable branch (correct) with the span on the nightly branch (incorrect) for the following example: http://is.gd/lTAo9c. This pull request fixes the regression.

@Manishearth has been kind enough to pitch some ideas for a regression test, mainly revolving around testing the span in compile-fail test, but this has proven unsuccessful. Other suggestions/ ideas would be much appreciated!
This commit is contained in:
Manish Goregaokar 2015-06-04 10:07:03 +05:30
commit 71d33cd115

View file

@ -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) ){