Skip to content

Commit 0bf3e21

Browse files
committed
Rm Ord impl for RecordedItemId<I>
1 parent 80309d2 commit 0bf3e21

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

chalk-solve/src/logging_db.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//! `.chalk` files containing those definitions.
33
use std::{
44
borrow::Borrow,
5-
cmp::{Ord, Ordering},
65
collections::BTreeSet,
76
fmt::{self, Debug, Display},
87
io::Write,
@@ -581,13 +580,6 @@ impl<I: Interner> From<GeneratorId<I>> for RecordedItemId<I> {
581580
}
582581
}
583582

584-
/// Utility for implementing Ord for RecordedItemId.
585-
#[derive(PartialEq, Eq, PartialOrd, Ord)]
586-
enum OrderedItemId<'a, DefId, AdtId> {
587-
DefId(&'a DefId),
588-
AdtId(&'a AdtId),
589-
}
590-
591583
impl<I: Interner> RecordedItemId<I> {
592584
/// Extract internal identifier. Allows for absolute ordering matching the
593585
/// order in which chalk saw things (and thus reproducing that order in
@@ -603,15 +595,3 @@ impl<I: Interner> RecordedItemId<I> {
603595
}
604596
}
605597
}
606-
607-
impl<I: Interner> PartialOrd for RecordedItemId<I> {
608-
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
609-
Some(self.cmp(other))
610-
}
611-
}
612-
613-
impl<I: Interner> Ord for RecordedItemId<I> {
614-
fn cmp(&self, other: &Self) -> Ordering {
615-
self.ordered_item_id().cmp(&other.ordered_item_id())
616-
}
617-
}

0 commit comments

Comments
 (0)