@@ -158,10 +158,13 @@ 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 , A , COOP_PREFERRED > {
161
+ impl < T , const COOP_PREFERRED : bool > Default for VecDeque < T , Global , COOP_PREFERRED >
162
+ where
163
+ [ ( ) ; crate :: co_alloc_metadata_num_slots_with_preference_global ( COOP_PREFERRED ) ] : ,
164
+ {
162
165
/// Creates an empty deque.
163
166
#[ inline]
164
- fn default ( ) -> VecDeque < T , A , COOP_PREFERRED > {
167
+ fn default ( ) -> VecDeque < T , Global , COOP_PREFERRED > {
165
168
VecDeque :: new ( )
166
169
}
167
170
}
@@ -2978,10 +2981,10 @@ where
2978
2981
}
2979
2982
2980
2983
#[ stable( feature = "std_collections_from_array" , since = "1.56.0" ) ]
2981
- impl < T , const N : usize , A : Allocator , const COOP_PREFERRED : bool > From < [ T ; N ] >
2982
- for VecDeque < T , A , COOP_PREFERRED >
2984
+ impl < T , const N : usize , const COOP_PREFERRED : bool > From < [ T ; N ] >
2985
+ for VecDeque < T , Global , COOP_PREFERRED >
2983
2986
where
2984
- [ ( ) ; alloc :: co_alloc_metadata_num_slots_with_preference_specific :: < A > ( COOP_PREFERRED ) ] : ,
2987
+ [ ( ) ; crate :: co_alloc_metadata_num_slots_with_preference_global ( COOP_PREFERRED ) ] : ,
2985
2988
{
2986
2989
/// Converts a `[T; N]` into a `VecDeque<T>`.
2987
2990
///
0 commit comments