Skip to content

Commit 4e14196

Browse files
Renamed co_alloc_metadata_num_slots_with_preference_specific(...) to co_alloc_metadata_num_slots_with_preference(...)
1 parent 8bf943d commit 4e14196

File tree

16 files changed

+173
-173
lines changed

16 files changed

+173
-173
lines changed

library/alloc/src/collections/vec_deque/drain.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct Drain<
2222
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
2323
const COOP_PREFERRED: bool = { SHORT_TERM_VEC_PREFERS_COOP!() },
2424
> where
25-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
25+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2626
{
2727
// We can't just use a &mut VecDeque<T, A>, as that would make Drain invariant over T
2828
// and we want it to be covariant instead
@@ -40,7 +40,7 @@ pub struct Drain<
4040

4141
impl<'a, T, A: Allocator, const COOP_PREFERRED: bool> Drain<'a, T, A, COOP_PREFERRED>
4242
where
43-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
43+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
4444
{
4545
pub(super) unsafe fn new(
4646
deque: &'a mut VecDeque<T, A, COOP_PREFERRED>,
@@ -98,7 +98,7 @@ where
9898
impl<T: fmt::Debug, A: Allocator, const COOP_PREFERRED: bool> fmt::Debug
9999
for Drain<'_, T, A, COOP_PREFERRED>
100100
where
101-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
101+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
102102
{
103103
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
104104
f.debug_tuple("Drain")
@@ -114,33 +114,33 @@ where
114114
unsafe impl<T: Sync, A: Allocator + Sync, const COOP_PREFERRED: bool> Sync
115115
for Drain<'_, T, A, COOP_PREFERRED>
116116
where
117-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
117+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
118118
{
119119
}
120120
#[stable(feature = "drain", since = "1.6.0")]
121121
unsafe impl<T: Send, A: Allocator + Send, const COOP_PREFERRED: bool> Send
122122
for Drain<'_, T, A, COOP_PREFERRED>
123123
where
124-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
124+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
125125
{
126126
}
127127

128128
#[stable(feature = "drain", since = "1.6.0")]
129129
impl<T, A: Allocator, const COOP_PREFERRED: bool> Drop for Drain<'_, T, A, COOP_PREFERRED>
130130
where
131-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
131+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
132132
{
133133
fn drop(&mut self) {
134134
struct DropGuard<'r, 'a, T, A: Allocator, const COOP_PREFERRED: bool>(
135135
&'r mut Drain<'a, T, A, COOP_PREFERRED>,
136136
)
137137
where
138-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:;
138+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:;
139139

140140
impl<'r, 'a, T, A: Allocator, const COOP_PREFERRED: bool> Drop
141141
for DropGuard<'r, 'a, T, A, COOP_PREFERRED>
142142
where
143-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
143+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
144144
{
145145
fn drop(&mut self) {
146146
if self.0.remaining != 0 {
@@ -224,7 +224,7 @@ where
224224
#[stable(feature = "drain", since = "1.6.0")]
225225
impl<T, A: Allocator, const COOP_PREFERRED: bool> Iterator for Drain<'_, T, A, COOP_PREFERRED>
226226
where
227-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
227+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
228228
{
229229
type Item = T;
230230

@@ -250,7 +250,7 @@ where
250250
impl<T, A: Allocator, const COOP_PREFERRED: bool> DoubleEndedIterator
251251
for Drain<'_, T, A, COOP_PREFERRED>
252252
where
253-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
253+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
254254
{
255255
#[inline]
256256
fn next_back(&mut self) -> Option<T> {
@@ -267,12 +267,12 @@ where
267267
impl<T, A: Allocator, const COOP_PREFERRED: bool> ExactSizeIterator
268268
for Drain<'_, T, A, COOP_PREFERRED>
269269
where
270-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
270+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
271271
{
272272
}
273273

274274
#[stable(feature = "fused", since = "1.26.0")]
275275
impl<T, A: Allocator, const COOP_PREFERRED: bool> FusedIterator for Drain<'_, T, A, COOP_PREFERRED> where
276-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:
276+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:
277277
{
278278
}

library/alloc/src/collections/vec_deque/into_iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub struct IntoIter<
1919
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
2020
const COOP_PREFERRED: bool = true,
2121
> where
22-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
22+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2323
{
2424
inner: VecDeque<T, A, COOP_PREFERRED>,
2525
}

library/alloc/src/collections/vec_deque/mod.rs

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub struct VecDeque<
9999
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
100100
const COOP_PREFERRED: bool = {DEFAULT_COOP_PREFERRED!()},
101101
> where
102-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
102+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
103103
{
104104
// `self[0]`, if it exists, is `buf[head]`.
105105
// `head < buf.capacity()`, unless `buf.capacity() == 0` when `head == 0`.
@@ -115,7 +115,7 @@ pub struct VecDeque<
115115
impl<T: Clone, A: Allocator + Clone, const COOP_PREFERRED: bool> Clone
116116
for VecDeque<T, A, COOP_PREFERRED>
117117
where
118-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
118+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
119119
{
120120
fn clone(&self) -> Self {
121121
let mut deq = Self::with_capacity_in(self.len(), self.allocator().clone());
@@ -133,7 +133,7 @@ where
133133
unsafe impl<#[may_dangle] T, A: Allocator, const COOP_PREFERRED: bool> Drop
134134
for VecDeque<T, A, COOP_PREFERRED>
135135
where
136-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
136+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
137137
{
138138
fn drop(&mut self) {
139139
/// Runs the destructor for all items in the slice when it gets dropped (normally or
@@ -172,7 +172,7 @@ where
172172

173173
impl<T, A: Allocator, const COOP_PREFERRED: bool> VecDeque<T, A, COOP_PREFERRED>
174174
where
175-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
175+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
176176
{
177177
/// Marginally more convenient
178178
#[inline]
@@ -464,15 +464,15 @@ where
464464
) -> usize {
465465
struct Guard<'a, T, A: Allocator, const COOP_PREFERRED: bool>
466466
where
467-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
467+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
468468
{
469469
deque: &'a mut VecDeque<T, A, COOP_PREFERRED>,
470470
written: usize,
471471
}
472472

473473
impl<'a, T, A: Allocator, const COOP_PREFERRED: bool> Drop for Guard<'a, T, A, COOP_PREFERRED>
474474
where
475-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
475+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
476476
{
477477
fn drop(&mut self) {
478478
self.deque.len += self.written;
@@ -553,7 +553,7 @@ where
553553

554554
impl<T, A: Allocator, const COOP_PREFERRED: bool> VecDeque<T, A, COOP_PREFERRED>
555555
where
556-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
556+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
557557
{
558558
/// Creates an empty deque.
559559
///
@@ -592,7 +592,7 @@ where
592592

593593
impl<T, A: Allocator, const COOP_PREFERRED: bool> VecDeque<T, A, COOP_PREFERRED>
594594
where
595-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
595+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
596596
{
597597
/// Creates an empty deque.
598598
///
@@ -2630,7 +2630,7 @@ where
26302630

26312631
impl<T: Clone, A: Allocator, const COOP_PREFERRED: bool> VecDeque<T, A, COOP_PREFERRED>
26322632
where
2633-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2633+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
26342634
{
26352635
/// Modifies the deque in-place so that `len()` is equal to new_len,
26362636
/// either by removing excess elements from the back or by appending clones of `value`
@@ -2679,7 +2679,7 @@ fn wrap_index(logical_index: usize, capacity: usize) -> usize {
26792679
impl<T: PartialEq, A: Allocator, const COOP_PREFERRED: bool> PartialEq
26802680
for VecDeque<T, A, COOP_PREFERRED>
26812681
where
2682-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2682+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
26832683
{
26842684
fn eq(&self, other: &Self) -> bool {
26852685
if self.len != other.len() {
@@ -2720,7 +2720,7 @@ where
27202720

27212721
#[stable(feature = "rust1", since = "1.0.0")]
27222722
impl<T: Eq, A: Allocator, const COOP_PREFERRED: bool> Eq for VecDeque<T, A, COOP_PREFERRED> where
2723-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:
2723+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:
27242724
{
27252725
}
27262726

@@ -2735,7 +2735,7 @@ __impl_slice_eq1! { [const N: usize] VecDeque<T, A, COOP_PREFERRED>, &mut [U; N]
27352735
impl<T: PartialOrd, A: Allocator, const COOP_PREFERRED: bool> PartialOrd
27362736
for VecDeque<T, A, COOP_PREFERRED>
27372737
where
2738-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2738+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
27392739
{
27402740
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
27412741
self.iter().partial_cmp(other.iter())
@@ -2745,7 +2745,7 @@ where
27452745
#[stable(feature = "rust1", since = "1.0.0")]
27462746
impl<T: Ord, A: Allocator, const COOP_PREFERRED: bool> Ord for VecDeque<T, A, COOP_PREFERRED>
27472747
where
2748-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2748+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
27492749
{
27502750
#[inline]
27512751
fn cmp(&self, other: &Self) -> Ordering {
@@ -2756,7 +2756,7 @@ where
27562756
#[stable(feature = "rust1", since = "1.0.0")]
27572757
impl<T: Hash, A: Allocator, const COOP_PREFERRED: bool> Hash for VecDeque<T, A, COOP_PREFERRED>
27582758
where
2759-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2759+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
27602760
{
27612761
fn hash<H: Hasher>(&self, state: &mut H) {
27622762
state.write_length_prefix(self.len);
@@ -2773,7 +2773,7 @@ where
27732773
#[stable(feature = "rust1", since = "1.0.0")]
27742774
impl<T, A: Allocator, const COOP_PREFERRED: bool> Index<usize> for VecDeque<T, A, COOP_PREFERRED>
27752775
where
2776-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2776+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
27772777
{
27782778
type Output = T;
27792779

@@ -2786,7 +2786,7 @@ where
27862786
#[stable(feature = "rust1", since = "1.0.0")]
27872787
impl<T, A: Allocator, const COOP_PREFERRED: bool> IndexMut<usize> for VecDeque<T, A, COOP_PREFERRED>
27882788
where
2789-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2789+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
27902790
{
27912791
#[inline]
27922792
fn index_mut(&mut self, index: usize) -> &mut T {
@@ -2797,7 +2797,7 @@ where
27972797
#[stable(feature = "rust1", since = "1.0.0")]
27982798
impl<T, A: Allocator, const COOP_PREFERRED: bool> FromIterator<T> for VecDeque<T, A, COOP_PREFERRED>
27992799
where
2800-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2800+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
28012801
{
28022802
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> VecDeque<T, Global, COOP_PREFERRED> {
28032803
SpecFromIter::spec_from_iter(iter.into_iter())
@@ -2807,7 +2807,7 @@ where
28072807
#[stable(feature = "rust1", since = "1.0.0")]
28082808
impl<T, A: Allocator, const COOP_PREFERRED: bool> IntoIterator for VecDeque<T, A, COOP_PREFERRED>
28092809
where
2810-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2810+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
28112811
{
28122812
type Item = T;
28132813
type IntoIter = IntoIter<T, A>;
@@ -2823,7 +2823,7 @@ where
28232823
impl<'a, T, A: Allocator, const COOP_PREFERRED: bool> IntoIterator
28242824
for &'a VecDeque<T, A, COOP_PREFERRED>
28252825
where
2826-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2826+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
28272827
{
28282828
type Item = &'a T;
28292829
type IntoIter = Iter<'a, T>;
@@ -2837,7 +2837,7 @@ where
28372837
impl<'a, T, A: Allocator, const COOP_PREFERRED: bool> IntoIterator
28382838
for &'a mut VecDeque<T, A, COOP_PREFERRED>
28392839
where
2840-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2840+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
28412841
{
28422842
type Item = &'a mut T;
28432843
type IntoIter = IterMut<'a, T>;
@@ -2850,7 +2850,7 @@ where
28502850
#[stable(feature = "rust1", since = "1.0.0")]
28512851
impl<T, A: Allocator, const COOP_PREFERRED: bool> Extend<T> for VecDeque<T, A, COOP_PREFERRED>
28522852
where
2853-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2853+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
28542854
{
28552855
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I) {
28562856
<Self as SpecExtend<T, I::IntoIter>>::spec_extend(self, iter.into_iter());
@@ -2871,7 +2871,7 @@ where
28712871
impl<'a, T: 'a + Copy, A: Allocator, const COOP_PREFERRED: bool> Extend<&'a T>
28722872
for VecDeque<T, A, COOP_PREFERRED>
28732873
where
2874-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2874+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
28752875
{
28762876
fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I) {
28772877
self.spec_extend(iter.into_iter());
@@ -2892,7 +2892,7 @@ where
28922892
impl<T: fmt::Debug, A: Allocator, const COOP_PREFERRED: bool> fmt::Debug
28932893
for VecDeque<T, A, COOP_PREFERRED>
28942894
where
2895-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2895+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
28962896
{
28972897
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
28982898
f.debug_list().entries(self.iter()).finish()
@@ -2903,7 +2903,7 @@ where
29032903
impl<T, A: Allocator, const COOP_PREFERRED: bool> From<Vec<T, A, COOP_PREFERRED>>
29042904
for VecDeque<T, A, COOP_PREFERRED>
29052905
where
2906-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2906+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
29072907
{
29082908
/// Turn a [`Vec<T>`] into a [`VecDeque<T>`].
29092909
///
@@ -2916,7 +2916,7 @@ where
29162916
#[inline]
29172917
fn from<const OTHER_COOP_PREFERRED: bool>(other: Vec<T, A, OTHER_COOP_PREFERRED>) -> Self
29182918
where
2919-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(
2919+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(
29202920
OTHER_COOP_PREFERRED,
29212921
)]:,
29222922
{
@@ -2929,7 +2929,7 @@ where
29292929
impl<T, A: Allocator, const COOP_PREFERRED: bool> From<VecDeque<T, A, COOP_PREFERRED>>
29302930
for Vec<T, A, COOP_PREFERRED>
29312931
where
2932-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2932+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
29332933
{
29342934
/// Turn a [`VecDeque<T>`] into a [`Vec<T>`].
29352935
///

library/alloc/src/collections/vec_deque/spec_extend.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl<T, I, A: Allocator, const COOP_PREFERRED: bool> SpecExtend<T, I>
1717
for VecDeque<T, A, COOP_PREFERRED>
1818
where
1919
I: Iterator<Item = T>,
20-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
20+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2121
{
2222
default fn spec_extend(&mut self, mut iter: I) {
2323
// This function should be the moral equivalent of:
@@ -31,7 +31,7 @@ where
3131
deque: &mut VecDeque<T, A, COOP_PREFERRED>,
3232
element: T,
3333
) where
34-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
34+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
3535
{
3636
// SAFETY: Because of the precondition, it's guaranteed that there is space
3737
// in the logical array after the last element.
@@ -63,7 +63,7 @@ impl<T, I, A: Allocator, const COOP_PREFERRED: bool> SpecExtend<T, I>
6363
for VecDeque<T, A, COOP_PREFERRED>
6464
where
6565
I: TrustedLen<Item = T>,
66-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
66+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
6767
{
6868
default fn spec_extend(&mut self, iter: I) {
6969
// This is the case for a TrustedLen iterator.
@@ -99,7 +99,7 @@ where
9999
impl<T, A: Allocator, const COOP_PREFERRED: bool> SpecExtend<T, vec::IntoIter<T>>
100100
for VecDeque<T, A, COOP_PREFERRED>
101101
where
102-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
102+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
103103
{
104104
fn spec_extend(&mut self, mut iterator: vec::IntoIter<T>) {
105105
let slice = iterator.as_slice();
@@ -118,7 +118,7 @@ impl<'a, T: 'a, I, A: Allocator, const COOP_PREFERRED: bool> SpecExtend<&'a T, I
118118
where
119119
I: Iterator<Item = &'a T>,
120120
T: Copy,
121-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
121+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
122122
{
123123
default fn spec_extend(&mut self, iterator: I) {
124124
self.spec_extend(iterator.copied())
@@ -129,7 +129,7 @@ impl<'a, T: 'a, A: Allocator, const COOP_PREFERRED: bool> SpecExtend<&'a T, slic
129129
for VecDeque<T, A, COOP_PREFERRED>
130130
where
131131
T: Copy,
132-
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
132+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
133133
{
134134
fn spec_extend(&mut self, iterator: slice::Iter<'a, T>) {
135135
let slice = iterator.as_slice();

0 commit comments

Comments
 (0)