mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
Fix wrong reported lint for EXPL_IMPL_CLONE_ON_COPY
This commit is contained in:
parent
2a0a35c6d0
commit
cd35b9e38d
1 changed files with 2 additions and 2 deletions
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue