We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PartialOrd
Ord
AdtDefData
1 parent 54f79ba commit 13a3d18Copy full SHA for 13a3d18
compiler/rustc_middle/src/ty/adt.rs
@@ -100,20 +100,6 @@ pub struct AdtDefData {
100
repr: ReprOptions,
101
}
102
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
117
/// There should be only one AdtDef for each `did`, therefore
118
/// it is fine to implement `PartialEq` only based on `did`.
119
impl PartialEq for AdtDefData {
0 commit comments