File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ use std::iter;
33pub use rustc_type_ir:: relate:: * ;
44
55use crate :: ty:: error:: { ExpectedFound , TypeError } ;
6- use crate :: ty:: predicate:: ExistentialPredicateStableCmpExt as _;
76use crate :: ty:: { self as ty, Ty , TyCtxt } ;
87
98pub type RelateResult < ' tcx , T > = rustc_type_ir:: relate:: RelateResult < TyCtxt < ' tcx > , T > ;
@@ -86,10 +85,7 @@ impl<'tcx> Relate<TyCtxt<'tcx>> for &'tcx ty::List<ty::PolyExistentialPredicate<
8685 // in `a`.
8786 let mut a_v: Vec < _ > = a. into_iter ( ) . collect ( ) ;
8887 let mut b_v: Vec < _ > = b. into_iter ( ) . collect ( ) ;
89- // `skip_binder` here is okay because `stable_cmp` doesn't look at binders
90- a_v. sort_by ( |a, b| a. skip_binder ( ) . stable_cmp ( tcx, & b. skip_binder ( ) ) ) ;
9188 a_v. dedup ( ) ;
92- b_v. sort_by ( |a, b| a. skip_binder ( ) . stable_cmp ( tcx, & b. skip_binder ( ) ) ) ;
9389 b_v. dedup ( ) ;
9490 if a_v. len ( ) != b_v. len ( ) {
9591 return Err ( TypeError :: ExistentialMismatch ( ExpectedFound :: new ( true , a, b) ) ) ;
You can’t perform that action at this time.
0 commit comments