From 13a3d18016ac85a9c731ff8233077867e69a2741 Mon Sep 17 00:00:00 2001 From: pierwill Date: Tue, 5 Jul 2022 12:05:17 -0500 Subject: [PATCH] Remove `PartialOrd`, `Ord` from `AdtDefData` This implementation is unused. Helps with #90317. --- compiler/rustc_middle/src/ty/adt.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/compiler/rustc_middle/src/ty/adt.rs b/compiler/rustc_middle/src/ty/adt.rs index bf7cb610a9097..77ccecaf30971 100644 --- a/compiler/rustc_middle/src/ty/adt.rs +++ b/compiler/rustc_middle/src/ty/adt.rs @@ -100,20 +100,6 @@ pub struct AdtDefData { repr: ReprOptions, } -impl PartialOrd for AdtDefData { - fn partial_cmp(&self, other: &AdtDefData) -> Option { - Some(self.cmp(&other)) - } -} - -/// There should be only one AdtDef for each `did`, therefore -/// it is fine to implement `Ord` only based on `did`. -impl Ord for AdtDefData { - fn cmp(&self, other: &AdtDefData) -> Ordering { - self.did.cmp(&other.did) - } -} - /// There should be only one AdtDef for each `did`, therefore /// it is fine to implement `PartialEq` only based on `did`. impl PartialEq for AdtDefData {