File tree 1 file changed +2
-2
lines changed
compiler/rustc_borrowck/src/region_infer
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2046,7 +2046,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
2046
2046
// we still want to screen for an "interesting" point to
2047
2047
// highlight (e.g., a call site or something).
2048
2048
let target_scc = self . constraint_sccs . scc ( target_region) ;
2049
- let mut range = 0 ..path . len ( ) ;
2049
+ let mut range = 0 ..categorized_path . len ( ) ;
2050
2050
2051
2051
// As noted above, when reporting an error, there is typically a chain of constraints
2052
2052
// leading from some "source" region which must outlive some "target" region.
@@ -2162,7 +2162,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
2162
2162
return categorized_path[ i] . clone ( ) ;
2163
2163
}
2164
2164
2165
- categorized_path. shift_remove_index ( 0 ) . unwrap ( )
2165
+ return categorized_path[ 0 ] . clone ( ) ;
2166
2166
}
2167
2167
2168
2168
crate fn universe_info ( & self , universe : ty:: UniverseIndex ) -> UniverseInfo < ' tcx > {
You can’t perform that action at this time.
0 commit comments