Skip to content

Commit 59f88d3

Browse files
committed
Silence clippy::derived_hash_with_manual_eq for now
1 parent 17c4e4a commit 59f88d3

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

Diff for: compiler/rustc_type_ir/src/canonical.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::derived_hash_with_manual_eq)]
2+
13
use derive_where::derive_where;
24
#[cfg(feature = "nightly")]
35
use rustc_macros::{HashStable_NoContext, TyDecodable, TyEncodable};
@@ -167,6 +169,7 @@ pub enum CanonicalVarKind<I: Interner> {
167169
PlaceholderConst(I::PlaceholderConst),
168170
}
169171

172+
// FIXME(GrigorenkoPV): consider not implementing PartialEq manually
170173
impl<I: Interner> PartialEq for CanonicalVarKind<I> {
171174
fn eq(&self, other: &Self) -> bool {
172175
match (self, other) {

Diff for: compiler/rustc_type_ir/src/const_kind.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::derived_hash_with_manual_eq)]
2+
13
use derive_where::derive_where;
24
#[cfg(feature = "nightly")]
35
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
@@ -43,6 +45,7 @@ pub enum ConstKind<I: Interner> {
4345
Expr(I::ExprConst),
4446
}
4547

48+
// FIXME(GrigorenkoPV): consider not implementing PartialEq manually
4649
impl<I: Interner> PartialEq for ConstKind<I> {
4750
fn eq(&self, other: &Self) -> bool {
4851
match (self, other) {

Diff for: compiler/rustc_type_ir/src/predicate_kind.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::derived_hash_with_manual_eq)]
2+
13
use derive_where::derive_where;
24
#[cfg(feature = "nightly")]
35
use rustc_macros::{Decodable, Encodable, HashStable_NoContext, TyDecodable, TyEncodable};
@@ -38,6 +40,7 @@ pub enum ClauseKind<I: Interner> {
3840
ConstEvaluatable(I::Const),
3941
}
4042

43+
// FIXME(GrigorenkoPV): consider not implementing PartialEq manually
4144
impl<I: Interner> PartialEq for ClauseKind<I> {
4245
fn eq(&self, other: &Self) -> bool {
4346
match (self, other) {

Diff for: compiler/rustc_type_ir/src/region_kind.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::derived_hash_with_manual_eq)]
2+
13
use derive_where::derive_where;
24
#[cfg(feature = "nightly")]
35
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
@@ -193,6 +195,7 @@ const fn regionkind_discriminant<I: Interner>(value: &RegionKind<I>) -> usize {
193195
}
194196
}
195197

198+
// FIXME(GrigorenkoPV): consider not implementing PartialEq manually
196199
// This is manually implemented because a derive would require `I: PartialEq`
197200
impl<I: Interner> PartialEq for RegionKind<I> {
198201
#[inline]

Diff for: compiler/rustc_type_ir/src/ty_kind.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::derived_hash_with_manual_eq)]
2+
13
use derive_where::derive_where;
24

35
#[cfg(feature = "nightly")]
@@ -293,6 +295,7 @@ const fn tykind_discriminant<I: Interner>(value: &TyKind<I>) -> usize {
293295
}
294296
}
295297

298+
// FIXME(GrigorenkoPV): consider not implementing PartialEq manually
296299
// This is manually implemented because a derive would require `I: PartialEq`
297300
impl<I: Interner> PartialEq for TyKind<I> {
298301
#[inline]

0 commit comments

Comments
 (0)