mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-25 20:07:21 +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:
|
/// 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| {
|
||||||
|
|
Loading…
Add table
Reference in a new issue