about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src/constraints
diff options
context:
space:
mode:
authorpierwill <pierwill@users.noreply.github.com>2022-01-19 13:12:26 -0600
committerpierwill <pierwill@users.noreply.github.com>2022-01-19 13:12:26 -0600
commit7f16d0ed54b3497e8b26bc68cdf9a7590f3be816 (patch)
treeea249f56bd0c753203edf32411bcacbe31e985ca /compiler/rustc_borrowck/src/constraints
parent2f004d2d401682e553af3984ebd9a3976885e752 (diff)
downloadrust-7f16d0ed54b3497e8b26bc68cdf9a7590f3be816.tar.gz
rust-7f16d0ed54b3497e8b26bc68cdf9a7590f3be816.zip
Remove ordering traits from `rustc_borrowck::constraints::OutlivesConstraint`
In two cases where this ordering was used, I've replaced the sorting
to use a key that does not include DefId. I'm not sure this is correct
in terms of our goals from #90317, or otherwise.
Diffstat (limited to 'compiler/rustc_borrowck/src/constraints')
-rw-r--r--compiler/rustc_borrowck/src/constraints/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/constraints/mod.rs b/compiler/rustc_borrowck/src/constraints/mod.rs
index 98378a98684..d41143ee763 100644
--- a/compiler/rustc_borrowck/src/constraints/mod.rs
+++ b/compiler/rustc_borrowck/src/constraints/mod.rs
@@ -72,7 +72,7 @@ impl<'tcx> Index<OutlivesConstraintIndex> for OutlivesConstraintSet<'tcx> {
     }
 }
 
-#[derive(Clone, PartialEq, Eq, PartialOrd, Ord)]
+#[derive(Clone, PartialEq, Eq)]
 pub struct OutlivesConstraint<'tcx> {
     // NB. The ordering here is not significant for correctness, but
     // it is for convenience. Before we dump the constraints in the