Fix wrong reported lint for EXPL_IMPL_CLONE_ON_COPY

This commit is contained in:
mcarton 2016-02-15 22:26:20 +01:00
parent 2a0a35c6d0
commit cd35b9e38d

View file

@ -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: /// an explicitely defined `PartialEq`. In particular, the following must hold for any type:
/// ///
/// ```rust /// ```rust
/// k1 == k2 -> hash(k1) == hash(k2) /// k1 == k2 hash(k1) == hash(k2)
/// ``` /// ```
/// ///
/// **Known problems:** None. /// **Known problems:** None.
@ -161,7 +161,7 @@ fn check_copy_clone<'a, 'tcx>(cx: &LateContext<'a, 'tcx>,
} }
span_lint_and_then(cx, span_lint_and_then(cx,
DERIVE_HASH_NOT_EQ, EXPL_IMPL_CLONE_ON_COPY,
item.span, item.span,
"you are implementing `Clone` explicitly on a `Copy` type", "you are implementing `Clone` explicitly on a `Copy` type",
|db| { |db| {