Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--Cargo.toml1
-rw-r--r--crates/hir-def/src/lib.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index ebda681d9d..c7d7c695b5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -169,7 +169,6 @@ useless_asref = "allow"
## Following lints should be tackled at some point
borrowed_box = "allow"
-derived_hash_with_manual_eq = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
wrong_self_convention = "allow"
diff --git a/crates/hir-def/src/lib.rs b/crates/hir-def/src/lib.rs
index 6a39e0b695..ef4f538785 100644
--- a/crates/hir-def/src/lib.rs
+++ b/crates/hir-def/src/lib.rs
@@ -721,6 +721,9 @@ impl Clone for Box<dyn OpaqueInternableThing> {
pub struct InTypeConstId(salsa::InternId);
impl_intern!(InTypeConstId, InTypeConstLoc, intern_in_type_const, lookup_intern_in_type_const);
+// We would like to set `derive(PartialEq)`
+// but the compiler complains about that `.expected_ty` does not implement the `Copy` trait.
+#[allow(clippy::derived_hash_with_manual_eq)]
#[derive(Debug, Hash, Eq, Clone)]
pub struct InTypeConstLoc {
pub id: AstId<ast::ConstArg>,