@@ -23,7 +23,7 @@ pub(crate) struct ConstraintConversion<'a, 'tcx> {
23
23
tcx : TyCtxt < ' tcx > ,
24
24
universal_regions : & ' a UniversalRegions < ' tcx > ,
25
25
region_bound_pairs : & ' a RegionBoundPairs < ' tcx > ,
26
- implicit_region_bound : Option < ty:: Region < ' tcx > > ,
26
+ implicit_region_bound : ty:: Region < ' tcx > ,
27
27
param_env : ty:: ParamEnv < ' tcx > ,
28
28
locations : Locations ,
29
29
span : Span ,
@@ -36,7 +36,7 @@ impl<'a, 'tcx> ConstraintConversion<'a, 'tcx> {
36
36
infcx : & ' a InferCtxt < ' a , ' tcx > ,
37
37
universal_regions : & ' a UniversalRegions < ' tcx > ,
38
38
region_bound_pairs : & ' a RegionBoundPairs < ' tcx > ,
39
- implicit_region_bound : Option < ty:: Region < ' tcx > > ,
39
+ implicit_region_bound : ty:: Region < ' tcx > ,
40
40
param_env : ty:: ParamEnv < ' tcx > ,
41
41
locations : Locations ,
42
42
span : Span ,
@@ -108,7 +108,7 @@ impl<'a, 'tcx> ConstraintConversion<'a, 'tcx> {
108
108
// create new region variables, which can't be done later when
109
109
// verifying these bounds.
110
110
if t1. has_placeholders ( ) {
111
- t1 = tcx. fold_regions ( t1, & mut false , |r, _| match * r {
111
+ t1 = tcx. fold_regions ( t1, |r, _| match * r {
112
112
ty:: RePlaceholder ( placeholder) => {
113
113
self . constraints . placeholder_region ( self . infcx , placeholder)
114
114
}
@@ -120,7 +120,7 @@ impl<'a, 'tcx> ConstraintConversion<'a, 'tcx> {
120
120
& mut * self ,
121
121
tcx,
122
122
region_bound_pairs,
123
- implicit_region_bound,
123
+ Some ( implicit_region_bound) ,
124
124
param_env,
125
125
)
126
126
. type_must_outlive ( origin, t1, r2) ;
0 commit comments