// *arg impls PartialEq<other>
if !arg_ty
- .builtin_deref(true, ty::LvaluePreference::NoPreference)
+ .builtin_deref(true)
.map_or(false, |tam| implements_trait(cx, tam.ty, partial_eq_trait_id, &[other_ty]))
// arg impls PartialEq<*other>
&& !other_ty
- .builtin_deref(true, ty::LvaluePreference::NoPreference)
+ .builtin_deref(true)
.map_or(false, |tam| implements_trait(cx, arg_ty, partial_eq_trait_id, &[tam.ty]))
// arg impls PartialEq<other>
&& !implements_trait(cx, arg_ty, partial_eq_trait_id, &[other_ty])