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.
This commit is contained in:
pierwill 2022-01-19 13:12:26 -06:00
parent 2f004d2d40
commit 7f16d0ed54
3 changed files with 3 additions and 3 deletions

View file

@ -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