Skip to content

Commit c094458

Browse files
Narrowed down: Triggers an internal compiler error from cargo 1.68.0-nightly (f6e737b1e 2022-12-02). WIP: probably NOT compilable.
1 parent 59a6c5c commit c094458

File tree

1 file changed

+2
-1
lines changed
  • library/alloc/src/collections/vec_deque

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ mod tests;
9797
pub struct VecDeque<
9898
T,
9999
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
100+
const COOP_PREFERRED: bool = true
100101
>
101102
where [(); alloc::co_alloc_metadata_num_slots::<A>()]:
102103
{
@@ -107,7 +108,7 @@ where [(); alloc::co_alloc_metadata_num_slots::<A>()]:
107108
// if `len == 0`, the exact value of `head` is unimportant.
108109
// if `T` is zero-Sized, then `self.len <= usize::MAX`, otherwise `self.len <= isize::MAX as usize`.
109110
len: usize,
110-
buf: RawVec<T, A>,
111+
buf: RawVec<T, A, COOP_PREFERRED>,
111112
}
112113

113114
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)