@@ -112,7 +112,7 @@ impl<'infcx, 'tcx> InferCtxt<'infcx, 'tcx> {
112
112
113
113
// All other cases of inference are errors
114
114
( & ty:: Infer ( _) , _) | ( _, & ty:: Infer ( _) ) => {
115
- Err ( TypeError :: Sorts ( ty:: relate:: expected_found ( relation, & a, & b) ) )
115
+ Err ( TypeError :: Sorts ( ty:: relate:: expected_found ( relation, a, b) ) )
116
116
}
117
117
118
118
_ => ty:: relate:: super_relate_tys ( relation, a, b) ,
@@ -701,21 +701,21 @@ pub fn const_unification_error<'tcx>(
701
701
a_is_expected : bool ,
702
702
( a, b) : ( & ' tcx ty:: Const < ' tcx > , & ' tcx ty:: Const < ' tcx > ) ,
703
703
) -> TypeError < ' tcx > {
704
- TypeError :: ConstMismatch ( ty:: relate:: expected_found_bool ( a_is_expected, & a, & b) )
704
+ TypeError :: ConstMismatch ( ty:: relate:: expected_found_bool ( a_is_expected, a, b) )
705
705
}
706
706
707
707
fn int_unification_error < ' tcx > (
708
708
a_is_expected : bool ,
709
709
v : ( ty:: IntVarValue , ty:: IntVarValue ) ,
710
710
) -> TypeError < ' tcx > {
711
711
let ( a, b) = v;
712
- TypeError :: IntMismatch ( ty:: relate:: expected_found_bool ( a_is_expected, & a, & b) )
712
+ TypeError :: IntMismatch ( ty:: relate:: expected_found_bool ( a_is_expected, a, b) )
713
713
}
714
714
715
715
fn float_unification_error < ' tcx > (
716
716
a_is_expected : bool ,
717
717
v : ( ty:: FloatVarValue , ty:: FloatVarValue ) ,
718
718
) -> TypeError < ' tcx > {
719
719
let ( ty:: FloatVarValue ( a) , ty:: FloatVarValue ( b) ) = v;
720
- TypeError :: FloatMismatch ( ty:: relate:: expected_found_bool ( a_is_expected, & a, & b) )
720
+ TypeError :: FloatMismatch ( ty:: relate:: expected_found_bool ( a_is_expected, a, b) )
721
721
}
0 commit comments