diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-03-20 19:24:42 +0100 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-08-10 12:07:17 +0200 |
| commit | cd40769c02e31649bae3422ec7215783bc9d416f (patch) | |
| tree | cd897fae6890a79ee25013735b4d1875c34b1067 /library/alloc/src/collections | |
| parent | 19469cb536af8cdd7b0d3f6960e7815b218577c2 (diff) | |
| download | rust-cd40769c02e31649bae3422ec7215783bc9d416f.tar.gz rust-cd40769c02e31649bae3422ec7215783bc9d416f.zip | |
Stabilize `min_exhaustive_patterns`
Diffstat (limited to 'library/alloc/src/collections')
| -rw-r--r-- | library/alloc/src/collections/vec_deque/into_iter.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/alloc/src/collections/vec_deque/into_iter.rs b/library/alloc/src/collections/vec_deque/into_iter.rs index 2d283dac9a9..7be3de16b2d 100644 --- a/library/alloc/src/collections/vec_deque/into_iter.rs +++ b/library/alloc/src/collections/vec_deque/into_iter.rs @@ -121,6 +121,7 @@ impl<T, A: Allocator> Iterator for IntoIter<T, A> { { match self.try_fold(init, |b, item| Ok::<B, !>(f(b, item))) { Ok(b) => b, + #[cfg(bootstrap)] Err(e) => match e {}, } } @@ -242,6 +243,7 @@ impl<T, A: Allocator> DoubleEndedIterator for IntoIter<T, A> { { match self.try_rfold(init, |b, item| Ok::<B, !>(f(b, item))) { Ok(b) => b, + #[cfg(bootstrap)] Err(e) => match e {}, } } |
