Skip to content

Commit 971df1c

Browse files
committed
Stabilize min_exhaustive_patterns
1 parent 5d5d8bc commit 971df1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: alloc/src/collections/vec_deque/into_iter.rs

+2
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ impl<T, A: Allocator> Iterator for IntoIter<T, A> {
121121
{
122122
match self.try_fold(init, |b, item| Ok::<B, !>(f(b, item))) {
123123
Ok(b) => b,
124+
#[cfg(bootstrap)]
124125
Err(e) => match e {},
125126
}
126127
}
@@ -242,6 +243,7 @@ impl<T, A: Allocator> DoubleEndedIterator for IntoIter<T, A> {
242243
{
243244
match self.try_rfold(init, |b, item| Ok::<B, !>(f(b, item))) {
244245
Ok(b) => b,
246+
#[cfg(bootstrap)]
245247
Err(e) => match e {},
246248
}
247249
}

0 commit comments

Comments
 (0)