clippy: Enable derived_hash_with_manual_eq rule

This commit is contained in:
Tetsuharu Ohzeki 2024-02-09 23:36:47 +09:00
parent adddd14afb
commit d45cabd029
2 changed files with 3 additions and 1 deletions

View File

@ -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"

View File

@ -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>,