@@ -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
}
@@ -2976,10 +2979,10 @@ where
2976
2979
}
2977
2980
2978
2981
#[ stable( feature = "std_collections_from_array" , since = "1.56.0" ) ]
2979
- impl < T , const N : usize , A : Allocator , const COOP_PREFERRED : bool > From < [ T ; N ] >
2980
- for VecDeque < T , A , COOP_PREFERRED >
2982
+ impl < T , const N : usize , const COOP_PREFERRED : bool > From < [ T ; N ] >
2983
+ for VecDeque < T , Global , COOP_PREFERRED >
2981
2984
where
2982
- [ ( ) ; alloc :: co_alloc_metadata_num_slots_with_preference_specific :: < A > ( COOP_PREFERRED ) ] : ,
2985
+ [ ( ) ; crate :: co_alloc_metadata_num_slots_with_preference_global ( COOP_PREFERRED ) ] : ,
2983
2986
{
2984
2987
/// Converts a `[T; N]` into a `VecDeque<T>`.
2985
2988
///
0 commit comments