use array_windows
instead of windows
in the compiler
This commit is contained in:
parent
255a4c58f5
commit
3435683fd5
11 changed files with 21 additions and 17 deletions
|
@ -23,6 +23,7 @@
|
|||
//! This API is completely unstable and subject to change.
|
||||
|
||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
|
||||
#![feature(array_windows)]
|
||||
#![feature(backtrace)]
|
||||
#![feature(bool_to_option)]
|
||||
#![feature(box_patterns)]
|
||||
|
|
|
@ -2419,7 +2419,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
eps: &[ExistentialPredicate<'tcx>],
|
||||
) -> &'tcx List<ExistentialPredicate<'tcx>> {
|
||||
assert!(!eps.is_empty());
|
||||
assert!(eps.windows(2).all(|w| w[0].stable_cmp(self, &w[1]) != Ordering::Greater));
|
||||
assert!(eps.array_windows().all(|[a, b]| a.stable_cmp(self, b) != Ordering::Greater));
|
||||
self._intern_existential_predicates(eps)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue