@@ -23,7 +23,7 @@ pub(crate) struct ConstraintConversion<'a, 'tcx> {
2323 tcx : TyCtxt < ' tcx > ,
2424 universal_regions : & ' a UniversalRegions < ' tcx > ,
2525 region_bound_pairs : & ' a RegionBoundPairs < ' tcx > ,
26- implicit_region_bound : Option < ty:: Region < ' tcx > > ,
26+ implicit_region_bound : ty:: Region < ' tcx > ,
2727 param_env : ty:: ParamEnv < ' tcx > ,
2828 locations : Locations ,
2929 span : Span ,
@@ -36,7 +36,7 @@ impl<'a, 'tcx> ConstraintConversion<'a, 'tcx> {
3636 infcx : & ' a InferCtxt < ' a , ' tcx > ,
3737 universal_regions : & ' a UniversalRegions < ' tcx > ,
3838 region_bound_pairs : & ' a RegionBoundPairs < ' tcx > ,
39- implicit_region_bound : Option < ty:: Region < ' tcx > > ,
39+ implicit_region_bound : ty:: Region < ' tcx > ,
4040 param_env : ty:: ParamEnv < ' tcx > ,
4141 locations : Locations ,
4242 span : Span ,
@@ -108,7 +108,7 @@ impl<'a, 'tcx> ConstraintConversion<'a, 'tcx> {
108108 // create new region variables, which can't be done later when
109109 // verifying these bounds.
110110 if t1. has_placeholders ( ) {
111- t1 = tcx. fold_regions ( t1, & mut false , |r, _| match * r {
111+ t1 = tcx. fold_regions ( t1, |r, _| match * r {
112112 ty:: RePlaceholder ( placeholder) => {
113113 self . constraints . placeholder_region ( self . infcx , placeholder)
114114 }
@@ -120,7 +120,7 @@ impl<'a, 'tcx> ConstraintConversion<'a, 'tcx> {
120120 & mut * self ,
121121 tcx,
122122 region_bound_pairs,
123- implicit_region_bound,
123+ Some ( implicit_region_bound) ,
124124 param_env,
125125 )
126126 . type_must_outlive ( origin, t1, r2) ;
0 commit comments