@@ -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. iner ( ) . iter( ) . all( |c| c. next. is_none( ) ) ) ;
219
+ debug_assert ! ( outlives_constraints. inner ( ) . 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. iner ( ) . iter( ) . collect( ) ;
441
+ let mut constraints: Vec <_> = self . constraints. inner ( ) . 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 . iner ( ) . indices ( ) . collect ( ) ;
453
+ let mut dirty_list: Vec < _ > = self . constraints . inner ( ) . 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 . iner ( ) [ constraint_idx] ;
462
+ let constraint = & self . constraints . inner ( ) [ constraint_idx] ;
463
463
debug ! ( "propagate_constraints: constraint={:?}" , constraint) ;
464
464
465
465
if inferred_values. add_region ( constraint. sup , constraint. sub ) {
@@ -471,7 +471,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
471
471
if clean_bit_vec. remove ( dep_idx. index ( ) ) {
472
472
dirty_list. push ( dep_idx) ;
473
473
}
474
- opt_dep_idx = self . constraints . iner ( ) [ dep_idx] . next ;
474
+ opt_dep_idx = self . constraints . inner ( ) [ dep_idx] . next ;
475
475
}
476
476
}
477
477
@@ -488,7 +488,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
488
488
fn build_dependency_map ( & mut self ) -> IndexVec < RegionVid , Option < ConstraintIndex > > {
489
489
let mut map = IndexVec :: from_elem ( None , & self . definitions ) ;
490
490
491
- for ( idx, constraint) in self . constraints . iner_mut ( ) . iter_enumerated_mut ( ) . rev ( ) {
491
+ for ( idx, constraint) in self . constraints . inner_mut ( ) . iter_enumerated_mut ( ) . rev ( ) {
492
492
let mut head = & mut map[ constraint. sub ] ;
493
493
debug_assert ! ( constraint. next. is_none( ) ) ;
494
494
constraint. next = * head;
@@ -936,7 +936,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
936
936
) ;
937
937
938
938
let blame_index = self . blame_constraint ( longer_fr, shorter_fr) ;
939
- let blame_span = self . constraints . iner ( ) [ blame_index] . span ;
939
+ let blame_span = self . constraints . inner ( ) [ blame_index] . span ;
940
940
941
941
if let Some ( propagated_outlives_requirements) = propagated_outlives_requirements {
942
942
// Shrink `fr` until we find a non-local region (if we do).
@@ -1027,7 +1027,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1027
1027
// - `fr1: X` transitively
1028
1028
// - and `Y` is live at `elem`
1029
1029
let index = self . blame_constraint ( fr1, elem) ;
1030
- let region_sub = self . constraints . iner ( ) [ index] . sub ;
1030
+ let region_sub = self . constraints . inner ( ) [ index] . sub ;
1031
1031
1032
1032
// then return why `Y` was live at `elem`
1033
1033
self . liveness_constraints . cause ( region_sub, elem)
@@ -1048,7 +1048,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1048
1048
// of dependencies, which doesn't account for the locations of
1049
1049
// contraints at all. But it will do for now.
1050
1050
let relevant_constraint = self . constraints
1051
- . iner ( )
1051
+ . inner ( )
1052
1052
. iter_enumerated ( )
1053
1053
. filter_map ( |( i, constraint) | {
1054
1054
if !self . liveness_constraints . contains ( constraint. sub , elem) {
@@ -1084,7 +1084,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1084
1084
1085
1085
while changed {
1086
1086
changed = false ;
1087
- for constraint in self . constraints . iner ( ) {
1087
+ for constraint in self . constraints . inner ( ) {
1088
1088
if let Some ( n) = result_set[ constraint. sup ] {
1089
1089
let m = n + 1 ;
1090
1090
if result_set[ constraint. sub ]
0 commit comments