|
8 | 8 | #![feature(global_co_alloc)]
|
9 | 9 | #![stable(feature = "rust1", since = "1.0.0")]
|
10 | 10 | use crate::vec::DEFAULT_COOP_PREFERRED;
|
11 |
| -use core::alloc::{self, GlobalAlloc}; |
| 11 | +use core::alloc; |
12 | 12 | use core::cmp::{self, Ordering};
|
13 | 13 | use core::fmt;
|
14 | 14 | use core::hash::{Hash, Hasher};
|
@@ -158,10 +158,10 @@ where
|
158 | 158 | }
|
159 | 159 |
|
160 | 160 | #[stable(feature = "rust1", since = "1.0.0")]
|
161 |
| -impl<T, A: Allocator, const COOP_PREFERRED: bool> Default for VecDeque<T, Global, COOP_PREFERRED> { |
| 161 | +impl<T, A: Allocator, const COOP_PREFERRED: bool> Default for VecDeque<T, A, COOP_PREFERRED> { |
162 | 162 | /// Creates an empty deque.
|
163 | 163 | #[inline]
|
164 |
| - fn default() -> VecDeque<T, Global, COOP_PREFERRED> { |
| 164 | + fn default() -> VecDeque<T, A, COOP_PREFERRED> { |
165 | 165 | VecDeque::new()
|
166 | 166 | }
|
167 | 167 | }
|
@@ -2974,8 +2974,8 @@ where
|
2974 | 2974 | }
|
2975 | 2975 |
|
2976 | 2976 | #[stable(feature = "std_collections_from_array", since = "1.56.0")]
|
2977 |
| -impl<T, const N: usize, A: Allocator = Global, const COOP_PREFERRED: bool = DEFAULT_COOP_PREFERRED> |
2978 |
| - From<[T; N]> for VecDeque<T, A, COOP_PREFERRED> |
| 2977 | +impl<T, const N: usize, A: Allocator, const COOP_PREFERRED: bool> From<[T; N]> |
| 2978 | + for VecDeque<T, A, COOP_PREFERRED> |
2979 | 2979 | where
|
2980 | 2980 | [(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
|
2981 | 2981 | {
|
|
0 commit comments