@@ -216,7 +216,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
216
216
type_tests : Vec < TypeTest < ' tcx > > ,
217
217
) -> Self {
218
218
// The `next` field should not yet have been initialized:
219
- debug_assert ! ( outlives_constraints. inner ( ) . iter( ) . all( |c| c. next. is_none( ) ) ) ;
219
+ debug_assert ! ( outlives_constraints. iter( ) . all( |c| c. next. is_none( ) ) ) ;
220
220
221
221
let num_region_variables = var_infos. len ( ) ;
222
222
let num_universal_regions = universal_regions. len ( ) ;
@@ -438,7 +438,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
438
438
fn compute_region_values ( & self , _mir : & Mir < ' tcx > ) -> RegionValues {
439
439
debug ! ( "compute_region_values()" ) ;
440
440
debug ! ( "compute_region_values: constraints={:#?}" , {
441
- let mut constraints: Vec <_> = self . constraints. inner ( ) . iter( ) . collect( ) ;
441
+ let mut constraints: Vec <_> = self . constraints. iter( ) . collect( ) ;
442
442
constraints. sort( ) ;
443
443
constraints
444
444
} ) ;
@@ -450,7 +450,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
450
450
let dependency_map = self . dependency_map . as_ref ( ) . unwrap ( ) ;
451
451
452
452
// Constraints that may need to be repropagated (initially all):
453
- let mut dirty_list: Vec < _ > = self . constraints . inner ( ) . indices ( ) . collect ( ) ;
453
+ let mut dirty_list: Vec < _ > = self . constraints . indices ( ) . collect ( ) ;
454
454
455
455
// Set to 0 for each constraint that is on the dirty list:
456
456
let mut clean_bit_vec = BitVector :: new ( dirty_list. len ( ) ) ;
@@ -459,7 +459,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
459
459
while let Some ( constraint_idx) = dirty_list. pop ( ) {
460
460
clean_bit_vec. insert ( constraint_idx. index ( ) ) ;
461
461
462
- let constraint = & self . constraints . inner ( ) [ constraint_idx] ;
462
+ let constraint = & self . constraints [ constraint_idx] ;
463
463
debug ! ( "propagate_constraints: constraint={:?}" , constraint) ;
464
464
465
465
if inferred_values. add_region ( constraint. sup , constraint. sub ) {
@@ -925,7 +925,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
925
925
) ;
926
926
927
927
let blame_index = self . blame_constraint ( longer_fr, shorter_fr) ;
928
- let blame_span = self . constraints . inner ( ) [ blame_index] . span ;
928
+ let blame_span = self . constraints [ blame_index] . span ;
929
929
930
930
if let Some ( propagated_outlives_requirements) = propagated_outlives_requirements {
931
931
// Shrink `fr` until we find a non-local region (if we do).
@@ -1016,7 +1016,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1016
1016
// - `fr1: X` transitively
1017
1017
// - and `Y` is live at `elem`
1018
1018
let index = self . blame_constraint ( fr1, elem) ;
1019
- let region_sub = self . constraints . inner ( ) [ index] . sub ;
1019
+ let region_sub = self . constraints [ index] . sub ;
1020
1020
1021
1021
// then return why `Y` was live at `elem`
1022
1022
self . liveness_constraints . cause ( region_sub, elem)
@@ -1037,7 +1037,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1037
1037
// of dependencies, which doesn't account for the locations of
1038
1038
// contraints at all. But it will do for now.
1039
1039
let relevant_constraint = self . constraints
1040
- . inner ( )
1041
1040
. iter_enumerated ( )
1042
1041
. filter_map ( |( i, constraint) | {
1043
1042
if !self . liveness_constraints . contains ( constraint. sub , elem) {
@@ -1073,7 +1072,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1073
1072
1074
1073
while changed {
1075
1074
changed = false ;
1076
- for constraint in self . constraints . inner ( ) {
1075
+ for constraint in self . constraints . iter ( ) {
1077
1076
if let Some ( n) = result_set[ constraint. sup ] {
1078
1077
let m = n + 1 ;
1079
1078
if result_set[ constraint. sub ]
0 commit comments