mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
clippy: Enable derived_hash_with_manual_eq
rule
This commit is contained in:
parent
adddd14afb
commit
d45cabd029
@ -169,7 +169,6 @@ useless_asref = "allow"
|
|||||||
|
|
||||||
## Following lints should be tackled at some point
|
## Following lints should be tackled at some point
|
||||||
borrowed_box = "allow"
|
borrowed_box = "allow"
|
||||||
derived_hash_with_manual_eq = "allow"
|
|
||||||
too_many_arguments = "allow"
|
too_many_arguments = "allow"
|
||||||
type_complexity = "allow"
|
type_complexity = "allow"
|
||||||
wrong_self_convention = "allow"
|
wrong_self_convention = "allow"
|
||||||
|
@ -721,6 +721,9 @@ impl Clone for Box<dyn OpaqueInternableThing> {
|
|||||||
pub struct InTypeConstId(salsa::InternId);
|
pub struct InTypeConstId(salsa::InternId);
|
||||||
impl_intern!(InTypeConstId, InTypeConstLoc, intern_in_type_const, lookup_intern_in_type_const);
|
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)]
|
#[derive(Debug, Hash, Eq, Clone)]
|
||||||
pub struct InTypeConstLoc {
|
pub struct InTypeConstLoc {
|
||||||
pub id: AstId<ast::ConstArg>,
|
pub id: AstId<ast::ConstArg>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user