Skip to content

Commit 2cd7416

Browse files
committed
rm a few Ord bounds
1 parent 977b0a5 commit 2cd7416

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

chalk-ir/src/interner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ use std::sync::Arc;
5757
/// (e.g., `SourceI` and `TargetI`) -- even if those type parameters
5858
/// wind up being mapped to the same underlying type families in the
5959
/// end.
60-
pub trait Interner: Debug + Copy + Eq + Ord + Hash + Sized {
60+
pub trait Interner: Debug + Copy + Eq + Hash + Sized {
6161
/// "Interned" representation of types. In normal user code,
6262
/// `Self::InternedType` is not referenced. Instead, we refer to
6363
/// `Ty<Self>`, which wraps this type.
@@ -188,7 +188,7 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash + Sized {
188188
type InternedVariances: Debug + Clone + Eq + Hash;
189189

190190
/// The core "id" type used for trait-ids and the like.
191-
type DefId: Debug + Copy + Eq + Ord + Hash;
191+
type DefId: Debug + Copy + Eq + Hash;
192192

193193
/// The ID type for ADTs
194194
type InternedAdtId: Debug + Copy + Eq + Ord + Hash;

chalk-solve/src/display/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ impl Display for InvertedBoundVar {
3636
}
3737
}
3838

39-
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
39+
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
4040
enum UnifiedId<I: Interner> {
4141
AdtId(I::InternedAdtId),
4242
DefId(I::DefId),
4343
}
4444

4545
#[derive(Debug)]
46-
pub struct IdAliasStore<T: Ord> {
46+
pub struct IdAliasStore<T> {
4747
/// Map from the DefIds we've encountered to a u32 alias id unique to all ids
4848
/// the same name.
4949
aliases: BTreeMap<T, u32>,

0 commit comments

Comments
 (0)