From cd35b9e38d3520b59eb5ef219cec0f17f7d12f91 Mon Sep 17 00:00:00 2001 From: mcarton Date: Mon, 15 Feb 2016 22:26:20 +0100 Subject: [PATCH] Fix wrong reported lint for EXPL_IMPL_CLONE_ON_COPY --- src/derive.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/derive.rs b/src/derive.rs index 467d55fea..30ef2be93 100644 --- a/src/derive.rs +++ b/src/derive.rs @@ -16,7 +16,7 @@ use utils::{match_path, span_lint_and_then}; /// an explicitely defined `PartialEq`. In particular, the following must hold for any type: /// /// ```rust -/// k1 == k2 -> hash(k1) == hash(k2) +/// k1 == k2 ⇒ hash(k1) == hash(k2) /// ``` /// /// **Known problems:** None. @@ -161,7 +161,7 @@ fn check_copy_clone<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, } span_lint_and_then(cx, - DERIVE_HASH_NOT_EQ, + EXPL_IMPL_CLONE_ON_COPY, item.span, "you are implementing `Clone` explicitly on a `Copy` type", |db| {