]> 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 e9fd654eebf80c99af129a387ceb23989a1d544b..d8e2f0872630bf20aae3814703826118a7eb0be6 100644 (file)
@@ -136,8 +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) {
-        let def_id = cx.tcx.hir.local_def_id(item.id);
-        if !is_copy(cx, ty, def_id) {
+        if !is_copy(cx, ty) {
             return;
         }