Skip to content

Commit e9e9279

Browse files
committed
Auto merge of rust-lang#24685 - nrc:span-pred, r=huonw
2 parents 50cd2e8 + 8456dba commit e9e9279

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libsyntax/parse/parser.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3888,7 +3888,7 @@ impl<'a> Parser<'a> {
38883888
let bounds =
38893889
try!(self.parse_lifetimes(token::BinOp(token::Plus)));
38903890

3891-
let hi = self.span.hi;
3891+
let hi = self.last_span.hi;
38923892
let span = mk_sp(lo, hi);
38933893

38943894
where_clause.predicates.push(ast::WherePredicate::RegionPredicate(
@@ -3917,7 +3917,7 @@ impl<'a> Parser<'a> {
39173917

39183918
if try!(self.eat(&token::Colon) ){
39193919
let bounds = try!(self.parse_ty_param_bounds(BoundParsingMode::Bare));
3920-
let hi = self.span.hi;
3920+
let hi = self.last_span.hi;
39213921
let span = mk_sp(lo, hi);
39223922

39233923
if bounds.is_empty() {
@@ -3937,7 +3937,7 @@ impl<'a> Parser<'a> {
39373937
parsed_something = true;
39383938
} else if try!(self.eat(&token::Eq) ){
39393939
// let ty = try!(self.parse_ty_nopanic());
3940-
let hi = self.span.hi;
3940+
let hi = self.last_span.hi;
39413941
let span = mk_sp(lo, hi);
39423942
// where_clause.predicates.push(
39433943
// ast::WherePredicate::EqPredicate(ast::WhereEqPredicate {

0 commit comments

Comments
 (0)