File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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> {
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 {
You can’t perform that action at this time.
0 commit comments