Silence clippy::derived_hash_with_manual_eq for now
This commit is contained in:
parent
17c4e4a923
commit
59f88d3db9
5 changed files with 15 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::derived_hash_with_manual_eq)]
|
||||
|
||||
use derive_where::derive_where;
|
||||
#[cfg(feature = "nightly")]
|
||||
use rustc_macros::{HashStable_NoContext, TyDecodable, TyEncodable};
|
||||
|
|
@ -167,6 +169,7 @@ pub enum CanonicalVarKind<I: Interner> {
|
|||
PlaceholderConst(I::PlaceholderConst),
|
||||
}
|
||||
|
||||
// FIXME(GrigorenkoPV): consider not implementing PartialEq manually
|
||||
impl<I: Interner> PartialEq for CanonicalVarKind<I> {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
match (self, other) {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::derived_hash_with_manual_eq)]
|
||||
|
||||
use derive_where::derive_where;
|
||||
#[cfg(feature = "nightly")]
|
||||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
|
||||
|
|
@ -43,6 +45,7 @@ pub enum ConstKind<I: Interner> {
|
|||
Expr(I::ExprConst),
|
||||
}
|
||||
|
||||
// FIXME(GrigorenkoPV): consider not implementing PartialEq manually
|
||||
impl<I: Interner> PartialEq for ConstKind<I> {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
match (self, other) {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::derived_hash_with_manual_eq)]
|
||||
|
||||
use derive_where::derive_where;
|
||||
#[cfg(feature = "nightly")]
|
||||
use rustc_macros::{Decodable, Encodable, HashStable_NoContext, TyDecodable, TyEncodable};
|
||||
|
|
@ -38,6 +40,7 @@ pub enum ClauseKind<I: Interner> {
|
|||
ConstEvaluatable(I::Const),
|
||||
}
|
||||
|
||||
// FIXME(GrigorenkoPV): consider not implementing PartialEq manually
|
||||
impl<I: Interner> PartialEq for ClauseKind<I> {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
match (self, other) {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::derived_hash_with_manual_eq)]
|
||||
|
||||
use derive_where::derive_where;
|
||||
#[cfg(feature = "nightly")]
|
||||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
|
||||
|
|
@ -193,6 +195,7 @@ const fn regionkind_discriminant<I: Interner>(value: &RegionKind<I>) -> usize {
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME(GrigorenkoPV): consider not implementing PartialEq manually
|
||||
// This is manually implemented because a derive would require `I: PartialEq`
|
||||
impl<I: Interner> PartialEq for RegionKind<I> {
|
||||
#[inline]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::derived_hash_with_manual_eq)]
|
||||
|
||||
use derive_where::derive_where;
|
||||
|
||||
#[cfg(feature = "nightly")]
|
||||
|
|
@ -293,6 +295,7 @@ const fn tykind_discriminant<I: Interner>(value: &TyKind<I>) -> usize {
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME(GrigorenkoPV): consider not implementing PartialEq manually
|
||||
// This is manually implemented because a derive would require `I: PartialEq`
|
||||
impl<I: Interner> PartialEq for TyKind<I> {
|
||||
#[inline]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue