File tree 2 files changed +2
-4
lines changed
compiler/rustc_middle/src
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 60
60
#![ feature( result_option_inspect) ]
61
61
#![ feature( const_option) ]
62
62
#![ feature( trait_alias) ]
63
+ #![ feature( is_sorted) ]
63
64
#![ recursion_limit = "512" ]
64
65
#![ allow( rustc:: potential_query_instability) ]
65
66
Original file line number Diff line number Diff line change 1
1
#![ allow( rustc:: usage_of_ty_tykind) ]
2
2
3
- use std:: cmp:: Ordering ;
4
3
use std:: iter;
5
4
6
5
use rustc_error_messages:: MultiSpan ;
@@ -547,9 +546,7 @@ impl<'tcx> MkCtxt<'tcx> {
547
546
) -> & ' tcx List < PolyExistentialPredicate < ' tcx > > {
548
547
assert ! ( !eps. is_empty( ) ) ;
549
548
assert ! (
550
- eps. array_windows( )
551
- . all( |[ a, b] | a. skip_binder( ) . stable_cmp( self . tcx, & b. skip_binder( ) )
552
- != Ordering :: Greater )
549
+ eps. is_sorted_by( |a, b| Some ( a. skip_binder( ) . stable_cmp( self . tcx, & b. skip_binder( ) ) ) )
553
550
) ;
554
551
self . tcx . intern_poly_existential_predicates ( eps)
555
552
}
You can’t perform that action at this time.
0 commit comments