We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a6c5c commit c094458Copy full SHA for c094458
library/alloc/src/collections/vec_deque/mod.rs
@@ -97,6 +97,7 @@ mod tests;
97
pub struct VecDeque<
98
T,
99
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
100
+ const COOP_PREFERRED: bool = true
101
>
102
where [(); alloc::co_alloc_metadata_num_slots::<A>()]:
103
{
@@ -107,7 +108,7 @@ where [(); alloc::co_alloc_metadata_num_slots::<A>()]:
107
108
// if `len == 0`, the exact value of `head` is unimportant.
109
// if `T` is zero-Sized, then `self.len <= usize::MAX`, otherwise `self.len <= isize::MAX as usize`.
110
len: usize,
- buf: RawVec<T, A>,
111
+ buf: RawVec<T, A, COOP_PREFERRED>,
112
}
113
114
#[stable(feature = "rust1", since = "1.0.0")]
0 commit comments