]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/derive.rs
Update for rustc 1.19.0-nightly (4bf5c99af 2017-06-10).
[rust.git] / clippy_lints / src / derive.rs
index 1710871a31f7244eabb4658f66fa96d07335ecff..d8e2f0872630bf20aae3814703826118a7eb0be6 100644 (file)
@@ -136,7 +136,7 @@ fn check_hash_peq<'a, 'tcx>(
 /// Implementation of the `EXPL_IMPL_CLONE_ON_COPY` lint.
 fn check_copy_clone<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, item: &Item, trait_ref: &TraitRef, ty: ty::Ty<'tcx>) {
     if match_path_old(&trait_ref.path, &paths::CLONE_TRAIT) {
-        if !is_copy(cx, ty, item.id) {
+        if !is_copy(cx, ty) {
             return;
         }