]> git.lizzy.rs Git - rust.git/commitdiff
Rustup to rustc 1.25.0-nightly (90eb44a58 2018-01-29)
authorSeiichi Uchida <seuchida@gmail.com>
Tue, 30 Jan 2018 01:35:22 +0000 (10:35 +0900)
committerSeiichi Uchida <seuchida@gmail.com>
Tue, 30 Jan 2018 01:35:22 +0000 (10:35 +0900)
clippy_lints/src/misc.rs

index 50ae695f4c51cacd51e630109e1e71dfbbe31a66..04cc488d562bf5fbe7ffef2df55e76602b36940e 100644 (file)
@@ -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])