Skip to content

Commit 13a3d18

Browse files
committed
Remove PartialOrd, Ord from AdtDefData
This implementation is unused. Helps with rust-lang#90317.
1 parent 54f79ba commit 13a3d18

File tree

1 file changed

+0
-14
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+0
-14
lines changed

compiler/rustc_middle/src/ty/adt.rs

-14
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,6 @@ pub struct AdtDefData {
100100
repr: ReprOptions,
101101
}
102102

103-
impl PartialOrd for AdtDefData {
104-
fn partial_cmp(&self, other: &AdtDefData) -> Option<Ordering> {
105-
Some(self.cmp(&other))
106-
}
107-
}
108-
109-
/// There should be only one AdtDef for each `did`, therefore
110-
/// it is fine to implement `Ord` only based on `did`.
111-
impl Ord for AdtDefData {
112-
fn cmp(&self, other: &AdtDefData) -> Ordering {
113-
self.did.cmp(&other.did)
114-
}
115-
}
116-
117103
/// There should be only one AdtDef for each `did`, therefore
118104
/// it is fine to implement `PartialEq` only based on `did`.
119105
impl PartialEq for AdtDefData {

0 commit comments

Comments
 (0)