Skip to content

Commit d45cabd

Browse files
clippy: Enable derived_hash_with_manual_eq rule
1 parent adddd14 commit d45cabd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ useless_asref = "allow"
169169

170170
## Following lints should be tackled at some point
171171
borrowed_box = "allow"
172-
derived_hash_with_manual_eq = "allow"
173172
too_many_arguments = "allow"
174173
type_complexity = "allow"
175174
wrong_self_convention = "allow"

crates/hir-def/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,9 @@ impl Clone for Box<dyn OpaqueInternableThing> {
721721
pub struct InTypeConstId(salsa::InternId);
722722
impl_intern!(InTypeConstId, InTypeConstLoc, intern_in_type_const, lookup_intern_in_type_const);
723723

724+
// We would like to set `derive(PartialEq)`
725+
// but the compiler complains about that `.expected_ty` does not implement the `Copy` trait.
726+
#[allow(clippy::derived_hash_with_manual_eq)]
724727
#[derive(Debug, Hash, Eq, Clone)]
725728
pub struct InTypeConstLoc {
726729
pub id: AstId<ast::ConstArg>,

0 commit comments

Comments
 (0)