Auto merge of #28291 - nrc:shr_span_fix, r=sfackler

This commit is contained in:
bors
2015-09-08 04:45:37 +00:00
2 changed files with 21 additions and 1 deletions

View File

@@ -3964,7 +3964,7 @@ impl<'a> Parser<'a> {
p.span_warn(span, "whoops, no =?");
}
let ty = try!(p.parse_ty_nopanic());
let hi = p.span.hi;
let hi = ty.span.hi;
let span = mk_sp(lo, hi);
return Ok(P(TypeBinding{id: ast::DUMMY_NODE_ID,
ident: ident,