@@ -776,8 +776,8 @@ fn float_unification_error<'tcx>(
776
776
TypeError :: FloatMismatch ( ty:: relate:: expected_found_bool ( a_is_expected, a, b) )
777
777
}
778
778
779
- struct ConstInferUnifier < ' cx , ' tcx > {
780
- infcx : & ' cx InferCtxt < ' cx , ' tcx > ,
779
+ struct ConstInferUnifier < ' a , ' cx , ' tcx > {
780
+ infcx : & ' a mut InferCtxt < ' cx , ' tcx > ,
781
781
782
782
span : Span ,
783
783
@@ -794,7 +794,7 @@ struct ConstInferUnifier<'cx, 'tcx> {
794
794
// We use `TypeRelation` here to propagate `RelateResult` upwards.
795
795
//
796
796
// Both inputs are expected to be the same.
797
- impl TypeRelation < ' tcx > for ConstInferUnifier < ' _ , ' tcx > {
797
+ impl TypeRelation < ' tcx > for ConstInferUnifier < ' _ , ' _ , ' tcx > {
798
798
fn tcx ( & self ) -> TyCtxt < ' tcx > {
799
799
self . infcx . tcx
800
800
}
@@ -920,8 +920,7 @@ impl TypeRelation<'tcx> for ConstInferUnifier<'_, 'tcx> {
920
920
921
921
match c. val {
922
922
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 ( ) ;
925
924
926
925
// Check if the current unification would end up
927
926
// unifying `target_vid` with a const which contains
0 commit comments