From c3e9ec65a1be17aa3bfb139659be34f969be3ce6 Mon Sep 17 00:00:00 2001 From: Seiichi Uchida <seuchida@gmail.com> Date: Tue, 30 Jan 2018 10:35:22 +0900 Subject: [PATCH] Rustup to rustc 1.25.0-nightly (90eb44a58 2018-01-29) --- clippy_lints/src/misc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/misc.rs b/clippy_lints/src/misc.rs index 50ae695f4c5..04cc488d562 100644 --- a/clippy_lints/src/misc.rs +++ b/clippy_lints/src/misc.rs @@ -545,11 +545,11 @@ fn check_to_owned(cx: &LateContext, expr: &Expr, other: &Expr) { // *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])