about summary refs log tree commit diff
path: root/library/alloc/src/collections/vec_deque
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2021-04-14 16:40:23 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2021-05-06 11:37:44 -0700
commitc10eec3a1ca0a328f406f6b752eb0fd3a90dca91 (patch)
tree128a2ba89c6537a210def5130447fdafa8ce7fcc /library/alloc/src/collections/vec_deque
parentd44f647ffcff0e1ff2c0f45b6a0ce9796d80f1ca (diff)
downloadrust-c10eec3a1ca0a328f406f6b752eb0fd3a90dca91.tar.gz
rust-c10eec3a1ca0a328f406f6b752eb0fd3a90dca91.zip
Bootstrapping preparation for the library
Since just `ops::Try` will need to change meaning.
Diffstat (limited to 'library/alloc/src/collections/vec_deque')
-rw-r--r--library/alloc/src/collections/vec_deque/iter.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/alloc/src/collections/vec_deque/iter.rs b/library/alloc/src/collections/vec_deque/iter.rs
index e4cfb3acdfd..793adfb0c0f 100644
--- a/library/alloc/src/collections/vec_deque/iter.rs
+++ b/library/alloc/src/collections/vec_deque/iter.rs
@@ -1,6 +1,6 @@
 use core::fmt;
 use core::iter::{FusedIterator, TrustedLen, TrustedRandomAccess};
-use core::ops::Try;
+use core::ops::TryWhereOutputEquals;
 
 use super::{count, wrap_index, RingSlices};
 
@@ -66,7 +66,7 @@ impl<'a, T> Iterator for Iter<'a, T> {
     where
         Self: Sized,
         F: FnMut(B, Self::Item) -> R,
-        R: Try<Ok = B>,
+        R: TryWhereOutputEquals<B>,
     {
         let (mut iter, final_res);
         if self.tail <= self.head {
@@ -140,7 +140,7 @@ impl<'a, T> DoubleEndedIterator for Iter<'a, T> {
     where
         Self: Sized,
         F: FnMut(B, Self::Item) -> R,
-        R: Try<Ok = B>,
+        R: TryWhereOutputEquals<B>,
     {
         let (mut iter, final_res);
         if self.tail <= self.head {