@@ -112,7 +112,7 @@ impl<'infcx, 'tcx> InferCtxt<'infcx, 'tcx> {
112112
113113 // All other cases of inference are errors
114114 ( & 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) ) )
116116 }
117117
118118 _ => ty:: relate:: super_relate_tys ( relation, a, b) ,
@@ -701,21 +701,21 @@ pub fn const_unification_error<'tcx>(
701701 a_is_expected : bool ,
702702 ( a, b) : ( & ' tcx ty:: Const < ' tcx > , & ' tcx ty:: Const < ' tcx > ) ,
703703) -> 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) )
705705}
706706
707707fn int_unification_error < ' tcx > (
708708 a_is_expected : bool ,
709709 v : ( ty:: IntVarValue , ty:: IntVarValue ) ,
710710) -> TypeError < ' tcx > {
711711 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) )
713713}
714714
715715fn float_unification_error < ' tcx > (
716716 a_is_expected : bool ,
717717 v : ( ty:: FloatVarValue , ty:: FloatVarValue ) ,
718718) -> TypeError < ' tcx > {
719719 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) )
721721}
0 commit comments