File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3882,7 +3882,7 @@ impl<'a> Parser<'a> {
3882
3882
let bounds =
3883
3883
try!( self . parse_lifetimes ( token:: BinOp ( token:: Plus ) ) ) ;
3884
3884
3885
- let hi = self . span . hi ;
3885
+ let hi = self . last_span . hi ;
3886
3886
let span = mk_sp ( lo, hi) ;
3887
3887
3888
3888
where_clause. predicates . push ( ast:: WherePredicate :: RegionPredicate (
@@ -3911,7 +3911,7 @@ impl<'a> Parser<'a> {
3911
3911
3912
3912
if try!( self . eat ( & token:: Colon ) ) {
3913
3913
let bounds = try!( self . parse_ty_param_bounds ( BoundParsingMode :: Bare ) ) ;
3914
- let hi = self . span . hi ;
3914
+ let hi = self . last_span . hi ;
3915
3915
let span = mk_sp ( lo, hi) ;
3916
3916
3917
3917
if bounds. is_empty ( ) {
@@ -3931,7 +3931,7 @@ impl<'a> Parser<'a> {
3931
3931
parsed_something = true ;
3932
3932
} else if try!( self . eat ( & token:: Eq ) ) {
3933
3933
// let ty = try!(self.parse_ty_nopanic());
3934
- let hi = self . span . hi ;
3934
+ let hi = self . last_span . hi ;
3935
3935
let span = mk_sp ( lo, hi) ;
3936
3936
// where_clause.predicates.push(
3937
3937
// ast::WherePredicate::EqPredicate(ast::WhereEqPredicate {
You can’t perform that action at this time.
0 commit comments