@@ -450,7 +450,10 @@ impl<K: Debug, V: Debug, A: Allocator + Clone> Debug for IntoIter<K, V, A> {
450450}
451451
452452#[ stable( feature = "default_iters" , since = "CURRENT_RUSTC_VERSION" ) ]
453- impl < K , V > Default for IntoIter < K , V > {
453+ impl < K , V , A > Default for IntoIter < K , V , A >
454+ where
455+ A : Allocator + Default + Clone ,
456+ {
454457 /// Creates an empty `btree_map::IntoIter`.
455458 ///
456459 /// ```
@@ -459,7 +462,7 @@ impl<K, V> Default for IntoIter<K, V> {
459462 /// assert_eq!(iter.len(), 0);
460463 /// ```
461464 fn default ( ) -> Self {
462- IntoIter { range : Default :: default ( ) , length : 0 , alloc : Global }
465+ IntoIter { range : Default :: default ( ) , length : 0 , alloc : Default :: default ( ) }
463466 }
464467}
465468
@@ -2106,7 +2109,10 @@ impl<K, V, A: Allocator + Clone> ExactSizeIterator for IntoKeys<K, V, A> {
21062109impl < K , V , A : Allocator + Clone > FusedIterator for IntoKeys < K , V , A > { }
21072110
21082111#[ stable( feature = "default_iters" , since = "CURRENT_RUSTC_VERSION" ) ]
2109- impl < K , V > Default for IntoKeys < K , V > {
2112+ impl < K , V , A > Default for IntoKeys < K , V , A >
2113+ where
2114+ A : Allocator + Default + Clone ,
2115+ {
21102116 /// Creates an empty `btree_map::IntoKeys`.
21112117 ///
21122118 /// ```
@@ -2154,7 +2160,10 @@ impl<K, V, A: Allocator + Clone> ExactSizeIterator for IntoValues<K, V, A> {
21542160impl < K , V , A : Allocator + Clone > FusedIterator for IntoValues < K , V , A > { }
21552161
21562162#[ stable( feature = "default_iters" , since = "CURRENT_RUSTC_VERSION" ) ]
2157- impl < K , V > Default for IntoValues < K , V > {
2163+ impl < K , V , A > Default for IntoValues < K , V , A >
2164+ where
2165+ A : Allocator + Default + Clone ,
2166+ {
21582167 /// Creates an empty `btree_map::IntoValues`.
21592168 ///
21602169 /// ```
0 commit comments