Skip to content

Commit 201b51a

Browse files
committed
remove ord/partialord from some HIR types
1 parent 57ee03f commit 201b51a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

compiler/rustc_hir/src/hir.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ pub enum UnsafeSource {
11901190
UserProvided,
11911191
}
11921192

1193-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Encodable, Hash, Debug)]
1193+
#[derive(Copy, Clone, PartialEq, Eq, Encodable, Hash, Debug)]
11941194
pub struct BodyId {
11951195
pub hir_id: HirId,
11961196
}
@@ -1969,7 +1969,7 @@ pub struct FnSig<'hir> {
19691969
// The bodies for items are stored "out of line", in a separate
19701970
// hashmap in the `Crate`. Here we just record the hir-id of the item
19711971
// so it can fetched later.
1972-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Encodable, Debug)]
1972+
#[derive(Copy, Clone, PartialEq, Eq, Encodable, Debug)]
19731973
pub struct TraitItemId {
19741974
pub def_id: LocalDefId,
19751975
}
@@ -2032,7 +2032,7 @@ pub enum TraitItemKind<'hir> {
20322032
// The bodies for items are stored "out of line", in a separate
20332033
// hashmap in the `Crate`. Here we just record the hir-id of the item
20342034
// so it can fetched later.
2035-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Encodable, Debug)]
2035+
#[derive(Copy, Clone, PartialEq, Eq, Encodable, Debug)]
20362036
pub struct ImplItemId {
20372037
pub def_id: LocalDefId,
20382038
}
@@ -2634,7 +2634,7 @@ impl VariantData<'hir> {
26342634
// The bodies for items are stored "out of line", in a separate
26352635
// hashmap in the `Crate`. Here we just record the hir-id of the item
26362636
// so it can fetched later.
2637-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Encodable, Debug, Hash)]
2637+
#[derive(Copy, Clone, PartialEq, Eq, Encodable, Debug, Hash)]
26382638
pub struct ItemId {
26392639
pub def_id: LocalDefId,
26402640
}
@@ -2871,7 +2871,7 @@ pub enum AssocItemKind {
28712871
// The bodies for items are stored "out of line", in a separate
28722872
// hashmap in the `Crate`. Here we just record the hir-id of the item
28732873
// so it can fetched later.
2874-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Encodable, Debug)]
2874+
#[derive(Copy, Clone, PartialEq, Eq, Encodable, Debug)]
28752875
pub struct ForeignItemId {
28762876
pub def_id: LocalDefId,
28772877
}

compiler/rustc_hir/src/hir_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt;
1111
/// the `local_id` part of the `HirId` changing, which is a very useful property in
1212
/// incremental compilation where we have to persist things through changes to
1313
/// the code base.
14-
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug, PartialOrd, Ord)]
14+
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
1515
#[derive(Encodable, Decodable)]
1616
pub struct HirId {
1717
pub owner: LocalDefId,

0 commit comments

Comments
 (0)