We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed80815 commit 01c2520Copy full SHA for 01c2520
compiler/rustc_middle/src/ty/relate.rs
@@ -616,6 +616,7 @@ impl<'tcx> Relate<'tcx> for &'tcx ty::List<ty::Binder<ty::ExistentialPredicate<'
616
// in `a`.
617
let mut a_v: Vec<_> = a.into_iter().collect();
618
let mut b_v: Vec<_> = b.into_iter().collect();
619
+ // `skip_binder` here is okay because `stable_cmp` doesn't look at binders
620
a_v.sort_by(|a, b| a.skip_binder().stable_cmp(tcx, &b.skip_binder()));
621
a_v.dedup();
622
b_v.sort_by(|a, b| a.skip_binder().stable_cmp(tcx, &b.skip_binder()));
0 commit comments