Skip to content

Commit 53e7776

Browse files
CoAlloc: VecDeque: Renamed ::core::alloc::co_alloc_metadata_num_slots_with_preference to ::core::alloc::co_alloc_metadata_num_slots_with_preference_specific. ICE
1 parent b0d74e7 commit 53e7776

File tree

6 files changed

+52
-50
lines changed

6 files changed

+52
-50
lines changed

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

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

4040
impl<'a, T, A: Allocator, const COOP_PREFERRED: bool> Drain<'a, T, A, COOP_PREFERRED>
4141
where
42-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
42+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
4343
{
4444
pub(super) unsafe fn new(
4545
deque: &'a mut VecDeque<T, A, COOP_PREFERRED>,
@@ -97,7 +97,7 @@ where
9797
impl<T: fmt::Debug, A: Allocator, const COOP_PREFERRED: bool> fmt::Debug
9898
for Drain<'_, T, A, COOP_PREFERRED>
9999
where
100-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
100+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
101101
{
102102
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
103103
f.debug_tuple("Drain")
@@ -113,33 +113,33 @@ where
113113
unsafe impl<T: Sync, A: Allocator + Sync, const COOP_PREFERRED: bool> Sync
114114
for Drain<'_, T, A, COOP_PREFERRED>
115115
where
116-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
116+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
117117
{
118118
}
119119
#[stable(feature = "drain", since = "1.6.0")]
120120
unsafe impl<T: Send, A: Allocator + Send, const COOP_PREFERRED: bool> Send
121121
for Drain<'_, T, A, COOP_PREFERRED>
122122
where
123-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
123+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
124124
{
125125
}
126126

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

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

@@ -249,7 +249,7 @@ where
249249
impl<T, A: Allocator, const COOP_PREFERRED: bool> DoubleEndedIterator
250250
for Drain<'_, T, A, COOP_PREFERRED>
251251
where
252-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
252+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
253253
{
254254
#[inline]
255255
fn next_back(&mut self) -> Option<T> {
@@ -266,12 +266,12 @@ where
266266
impl<T, A: Allocator, const COOP_PREFERRED: bool> ExactSizeIterator
267267
for Drain<'_, T, A, COOP_PREFERRED>
268268
where
269-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
269+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
270270
{
271271
}
272272

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

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::<A>(COOP_PREFERRED)]:,
22+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
2323
{
2424
inner: VecDeque<T, A, COOP_PREFERRED>,
2525
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ macro_rules! __impl_slice_eq1 {
44
impl<T, U, A: Allocator, const COOP_PREFERRED: bool, $($vars)*> PartialEq<$rhs> for $lhs
55
where
66
T: PartialEq<U>,
7-
[(); core::alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
7+
[(); core::alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
88
$($constraints)*
99
{
1010
fn eq(&self, other: &$rhs) -> bool {

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

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub struct VecDeque<
9898
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
9999
const COOP_PREFERRED: bool = DEFAULT_COOP_PREFERRED,
100100
> where
101-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
101+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
102102
{
103103
// `self[0]`, if it exists, is `buf[head]`.
104104
// `head < buf.capacity()`, unless `buf.capacity() == 0` when `head == 0`.
@@ -114,7 +114,7 @@ pub struct VecDeque<
114114
impl<T: Clone, A: Allocator + Clone, const COOP_PREFERRED: bool> Clone
115115
for VecDeque<T, A, COOP_PREFERRED>
116116
where
117-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
117+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
118118
{
119119
fn clone(&self) -> Self {
120120
let mut deq = Self::with_capacity_in(self.len(), self.allocator().clone());
@@ -132,7 +132,7 @@ where
132132
unsafe impl<#[may_dangle] T, A: Allocator, const COOP_PREFERRED: bool> Drop
133133
for VecDeque<T, A, COOP_PREFERRED>
134134
where
135-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
135+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
136136
{
137137
fn drop(&mut self) {
138138
/// Runs the destructor for all items in the slice when it gets dropped (normally or
@@ -168,7 +168,7 @@ impl<T, A: Allocator, const COOP_PREFERRED: bool> Default for VecDeque<T, A, COO
168168

169169
impl<T, A: Allocator, const COOP_PREFERRED: bool> VecDeque<T, A, COOP_PREFERRED>
170170
where
171-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
171+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
172172
{
173173
/// Marginally more convenient
174174
#[inline]
@@ -460,15 +460,15 @@ where
460460
) -> usize {
461461
struct Guard<'a, T, A: Allocator, const COOP_PREFERRED: bool>
462462
where
463-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
463+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
464464
{
465465
deque: &'a mut VecDeque<T, A, COOP_PREFERRED>,
466466
written: usize,
467467
}
468468

469469
impl<'a, T, A: Allocator, const COOP_PREFERRED: bool> Drop for Guard<'a, T, A, COOP_PREFERRED>
470470
where
471-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
471+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
472472
{
473473
fn drop(&mut self) {
474474
self.deque.len += self.written;
@@ -549,7 +549,7 @@ where
549549

550550
impl<T, A: Allocator, const COOP_PREFERRED: bool> VecDeque<T, A, COOP_PREFERRED>
551551
where
552-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
552+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
553553
{
554554
/// Creates an empty deque.
555555
///
@@ -588,7 +588,7 @@ where
588588

589589
impl<T, A: Allocator, const COOP_PREFERRED: bool> VecDeque<T, A, COOP_PREFERRED>
590590
where
591-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
591+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
592592
{
593593
/// Creates an empty deque.
594594
///
@@ -2626,7 +2626,7 @@ where
26262626

26272627
impl<T: Clone, A: Allocator, const COOP_PREFERRED: bool> VecDeque<T, A, COOP_PREFERRED>
26282628
where
2629-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2629+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
26302630
{
26312631
/// Modifies the deque in-place so that `len()` is equal to new_len,
26322632
/// either by removing excess elements from the back or by appending clones of `value`
@@ -2675,7 +2675,7 @@ fn wrap_index(logical_index: usize, capacity: usize) -> usize {
26752675
impl<T: PartialEq, A: Allocator, const COOP_PREFERRED: bool> PartialEq
26762676
for VecDeque<T, A, COOP_PREFERRED>
26772677
where
2678-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2678+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
26792679
{
26802680
fn eq(&self, other: &Self) -> bool {
26812681
if self.len != other.len() {
@@ -2716,7 +2716,7 @@ where
27162716

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

@@ -2731,7 +2731,7 @@ __impl_slice_eq1! { [const N: usize] VecDeque<T, A, COOP_PREFERRED>, &mut [U; N]
27312731
impl<T: PartialOrd, A: Allocator, const COOP_PREFERRED: bool> PartialOrd
27322732
for VecDeque<T, A, COOP_PREFERRED>
27332733
where
2734-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2734+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
27352735
{
27362736
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
27372737
self.iter().partial_cmp(other.iter())
@@ -2741,7 +2741,7 @@ where
27412741
#[stable(feature = "rust1", since = "1.0.0")]
27422742
impl<T: Ord, A: Allocator, const COOP_PREFERRED: bool> Ord for VecDeque<T, A, COOP_PREFERRED>
27432743
where
2744-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2744+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
27452745
{
27462746
#[inline]
27472747
fn cmp(&self, other: &Self) -> Ordering {
@@ -2752,7 +2752,7 @@ where
27522752
#[stable(feature = "rust1", since = "1.0.0")]
27532753
impl<T: Hash, A: Allocator, const COOP_PREFERRED: bool> Hash for VecDeque<T, A, COOP_PREFERRED>
27542754
where
2755-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2755+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
27562756
{
27572757
fn hash<H: Hasher>(&self, state: &mut H) {
27582758
state.write_length_prefix(self.len);
@@ -2769,7 +2769,7 @@ where
27692769
#[stable(feature = "rust1", since = "1.0.0")]
27702770
impl<T, A: Allocator, const COOP_PREFERRED: bool> Index<usize> for VecDeque<T, A, COOP_PREFERRED>
27712771
where
2772-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2772+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
27732773
{
27742774
type Output = T;
27752775

@@ -2782,7 +2782,7 @@ where
27822782
#[stable(feature = "rust1", since = "1.0.0")]
27832783
impl<T, A: Allocator, const COOP_PREFERRED: bool> IndexMut<usize> for VecDeque<T, A, COOP_PREFERRED>
27842784
where
2785-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2785+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
27862786
{
27872787
#[inline]
27882788
fn index_mut(&mut self, index: usize) -> &mut T {
@@ -2793,7 +2793,7 @@ where
27932793
#[stable(feature = "rust1", since = "1.0.0")]
27942794
impl<T, A: Allocator, const COOP_PREFERRED: bool> FromIterator<T> for VecDeque<T, A, COOP_PREFERRED>
27952795
where
2796-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2796+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
27972797
{
27982798
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> VecDeque<T, Global, COOP_PREFERRED> {
27992799
SpecFromIter::spec_from_iter(iter.into_iter())
@@ -2803,7 +2803,7 @@ where
28032803
#[stable(feature = "rust1", since = "1.0.0")]
28042804
impl<T, A: Allocator, const COOP_PREFERRED: bool> IntoIterator for VecDeque<T, A, COOP_PREFERRED>
28052805
where
2806-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2806+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
28072807
{
28082808
type Item = T;
28092809
type IntoIter = IntoIter<T, A>;
@@ -2819,7 +2819,7 @@ where
28192819
impl<'a, T, A: Allocator, const COOP_PREFERRED: bool> IntoIterator
28202820
for &'a VecDeque<T, A, COOP_PREFERRED>
28212821
where
2822-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2822+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
28232823
{
28242824
type Item = &'a T;
28252825
type IntoIter = Iter<'a, T>;
@@ -2833,7 +2833,7 @@ where
28332833
impl<'a, T, A: Allocator, const COOP_PREFERRED: bool> IntoIterator
28342834
for &'a mut VecDeque<T, A, COOP_PREFERRED>
28352835
where
2836-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2836+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
28372837
{
28382838
type Item = &'a mut T;
28392839
type IntoIter = IterMut<'a, T>;
@@ -2846,7 +2846,7 @@ where
28462846
#[stable(feature = "rust1", since = "1.0.0")]
28472847
impl<T, A: Allocator, const COOP_PREFERRED: bool> Extend<T> for VecDeque<T, A, COOP_PREFERRED>
28482848
where
2849-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2849+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
28502850
{
28512851
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I) {
28522852
<Self as SpecExtend<T, I::IntoIter>>::spec_extend(self, iter.into_iter());
@@ -2867,7 +2867,7 @@ where
28672867
impl<'a, T: 'a + Copy, A: Allocator, const COOP_PREFERRED: bool> Extend<&'a T>
28682868
for VecDeque<T, A, COOP_PREFERRED>
28692869
where
2870-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2870+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
28712871
{
28722872
fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I) {
28732873
self.spec_extend(iter.into_iter());
@@ -2888,7 +2888,7 @@ where
28882888
impl<T: fmt::Debug, A: Allocator, const COOP_PREFERRED: bool> fmt::Debug
28892889
for VecDeque<T, A, COOP_PREFERRED>
28902890
where
2891-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2891+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
28922892
{
28932893
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
28942894
f.debug_list().entries(self.iter()).finish()
@@ -2899,7 +2899,7 @@ where
28992899
impl<T, A: Allocator, const COOP_PREFERRED: bool> From<Vec<T, A, COOP_PREFERRED>>
29002900
for VecDeque<T, A, COOP_PREFERRED>
29012901
where
2902-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2902+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
29032903
{
29042904
/// Turn a [`Vec<T>`] into a [`VecDeque<T>`].
29052905
///
@@ -2912,7 +2912,9 @@ where
29122912
#[inline]
29132913
fn from<const OTHER_COOP_PREFERRED: bool>(other: Vec<T, A, OTHER_COOP_PREFERRED>) -> Self
29142914
where
2915-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(OTHER_COOP_PREFERRED)]:,
2915+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(
2916+
OTHER_COOP_PREFERRED,
2917+
)]:,
29162918
{
29172919
let (ptr, len, cap, alloc) = other.into_raw_parts_with_alloc();
29182920
Self { head: 0, len, buf: unsafe { RawVec::from_raw_parts_in(ptr, cap, alloc) } }
@@ -2923,7 +2925,7 @@ where
29232925
impl<T, A: Allocator, const COOP_PREFERRED: bool> From<VecDeque<T, A, COOP_PREFERRED>>
29242926
for Vec<T, A, COOP_PREFERRED>
29252927
where
2926-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2928+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
29272929
{
29282930
/// Turn a [`VecDeque<T>`] into a [`Vec<T>`].
29292931
///
@@ -2979,7 +2981,7 @@ where
29792981
impl<T, const N: usize, A: Allocator, const COOP_PREFERRED: bool> From<[T; N]>
29802982
for VecDeque<T, A, COOP_PREFERRED>
29812983
where
2982-
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2984+
[(); alloc::co_alloc_metadata_num_slots_with_preference_specific::<A>(COOP_PREFERRED)]:,
29832985
{
29842986
/// Converts a `[T; N]` into a `VecDeque<T>`.
29852987
///

0 commit comments

Comments
 (0)