@@ -776,8 +776,8 @@ fn float_unification_error<'tcx>(
776776 TypeError :: FloatMismatch ( ty:: relate:: expected_found_bool ( a_is_expected, a, b) )
777777}
778778
779- struct ConstInferUnifier < ' cx , ' tcx > {
780- infcx : & ' cx InferCtxt < ' cx , ' tcx > ,
779+ struct ConstInferUnifier < ' a , ' cx , ' tcx > {
780+ infcx : & ' a mut InferCtxt < ' cx , ' tcx > ,
781781
782782 span : Span ,
783783
@@ -794,7 +794,7 @@ struct ConstInferUnifier<'cx, 'tcx> {
794794// We use `TypeRelation` here to propagate `RelateResult` upwards.
795795//
796796// Both inputs are expected to be the same.
797- impl TypeRelation < ' tcx > for ConstInferUnifier < ' _ , ' tcx > {
797+ impl TypeRelation < ' tcx > for ConstInferUnifier < ' _ , ' _ , ' tcx > {
798798 fn tcx ( & self ) -> TyCtxt < ' tcx > {
799799 self . infcx . tcx
800800 }
@@ -920,8 +920,7 @@ impl TypeRelation<'tcx> for ConstInferUnifier<'_, 'tcx> {
920920
921921 match c. val {
922922 ty:: ConstKind :: Infer ( InferConst :: Var ( vid) ) => {
923- let mut inner = self . infcx . inner ;
924- let variable_table = & mut inner. const_unification_table ( ) ;
923+ let mut variable_table = self . infcx . inner . const_unification_table ( ) ;
925924
926925 // Check if the current unification would end up
927926 // unifying `target_vid` with a const which contains
0 commit comments