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 @@ -3888,7 +3888,7 @@ impl<'a> Parser<'a> {
3888
3888
let bounds =
3889
3889
try!( self . parse_lifetimes ( token:: BinOp ( token:: Plus ) ) ) ;
3890
3890
3891
- let hi = self . span . hi ;
3891
+ let hi = self . last_span . hi ;
3892
3892
let span = mk_sp ( lo, hi) ;
3893
3893
3894
3894
where_clause. predicates . push ( ast:: WherePredicate :: RegionPredicate (
@@ -3917,7 +3917,7 @@ impl<'a> Parser<'a> {
3917
3917
3918
3918
if try!( self . eat ( & token:: Colon ) ) {
3919
3919
let bounds = try!( self . parse_ty_param_bounds ( BoundParsingMode :: Bare ) ) ;
3920
- let hi = self . span . hi ;
3920
+ let hi = self . last_span . hi ;
3921
3921
let span = mk_sp ( lo, hi) ;
3922
3922
3923
3923
if bounds. is_empty ( ) {
@@ -3937,7 +3937,7 @@ impl<'a> Parser<'a> {
3937
3937
parsed_something = true ;
3938
3938
} else if try!( self . eat ( & token:: Eq ) ) {
3939
3939
// let ty = try!(self.parse_ty_nopanic());
3940
- let hi = self . span . hi ;
3940
+ let hi = self . last_span . hi ;
3941
3941
let span = mk_sp ( lo, hi) ;
3942
3942
// where_clause.predicates.push(
3943
3943
// ast::WherePredicate::EqPredicate(ast::WhereEqPredicate {
You can’t perform that action at this time.
0 commit comments