|
143 | 143 | #![allow(missing_docs)] |
144 | 144 | #![stable(feature = "rust1", since = "1.0.0")] |
145 | 145 |
|
| 146 | +use core::fmt; |
146 | 147 | use core::iter::{FromIterator, FusedIterator, InPlaceIterable, SourceIter, TrustedLen}; |
147 | 148 | use core::mem::{self, swap, ManuallyDrop}; |
148 | 149 | use core::num::NonZeroUsize; |
149 | 150 | use core::ops::{Deref, DerefMut}; |
150 | 151 | use core::ptr; |
151 | | -use core::fmt; |
152 | 152 |
|
153 | 153 | use crate::alloc::Global; |
154 | 154 |
|
@@ -1572,10 +1572,10 @@ where |
1572 | 1572 | } |
1573 | 1573 |
|
1574 | 1574 | #[stable(feature = "fused", since = "1.26.0")] |
1575 | | -impl<T, const COOP_PREFERRED: bool> FusedIterator for Drain<'_, T, COOP_PREFERRED> |
1576 | | -where |
1577 | | - [(); core::alloc::co_alloc_metadata_num_slots_with_preference::<Global>(COOP_PREFERRED)]:, |
1578 | | -{} |
| 1575 | +impl<T, const COOP_PREFERRED: bool> FusedIterator for Drain<'_, T, COOP_PREFERRED> where |
| 1576 | + [(); core::alloc::co_alloc_metadata_num_slots_with_preference::<Global>(COOP_PREFERRED)]: |
| 1577 | +{ |
| 1578 | +} |
1579 | 1579 |
|
1580 | 1580 | /// A draining iterator over the elements of a `BinaryHeap`. |
1581 | 1581 | /// |
@@ -1664,7 +1664,7 @@ impl<T: Ord, const N: usize> From<[T; N]> for BinaryHeap<T> { |
1664 | 1664 |
|
1665 | 1665 | #[stable(feature = "binary_heap_extras_15", since = "1.5.0")] |
1666 | 1666 | #[allow(unused_braces)] |
1667 | | -impl<T> From<BinaryHeap<T>> for Vec<T, Global, {DEFAULT_COOP_PREFERRED!()}> { |
| 1667 | +impl<T> From<BinaryHeap<T>> for Vec<T, Global, { DEFAULT_COOP_PREFERRED!() }> { |
1668 | 1668 | /// Converts a `BinaryHeap<T>` into a `Vec<T>`. |
1669 | 1669 | /// |
1670 | 1670 | /// This conversion requires no data movement or allocation, and has |
|
0 commit comments