@@ -813,8 +813,8 @@ pub struct SmallVec<T, const N: usize, #[cfg(feature = "allocator_api")] A: Allo
813813 _marker : PhantomData < T > ,
814814}
815815
816- unsafe impl < T : Send , const N : usize , #[ cfg( feature = "allocator_api" ) ] A : Send > Send for alloc_param ! ( SmallVec <T , N , A >) { }
817- unsafe impl < T : Sync , const N : usize , #[ cfg( feature = "allocator_api" ) ] A : Sync > Sync for alloc_param ! ( SmallVec <T , N , A >) { }
816+ unsafe impl < T : Send , const N : usize , #[ cfg( feature = "allocator_api" ) ] A : Allocator + Send > Send for alloc_param ! ( SmallVec <T , N , A >) { }
817+ unsafe impl < T : Sync , const N : usize , #[ cfg( feature = "allocator_api" ) ] A : Allocator + Sync > Sync for alloc_param ! ( SmallVec <T , N , A >) { }
818818
819819impl < T , const N : usize > Default for SmallVec < T , N > {
820820 #[ inline]
@@ -1198,8 +1198,8 @@ pub struct IntoIter<T, const N: usize, #[cfg(feature = "allocator_api")] A: Allo
11981198
11991199// SAFETY: IntoIter has unique ownership of its contents. Sending (or sharing) an `IntoIter<T, N>`
12001200// is equivalent to sending (or sharing) a `SmallVec<T, N>`.
1201- unsafe impl < T , const N : usize , #[ cfg( feature = "allocator_api" ) ] A : Send > Send for alloc_param ! ( IntoIter <T , N , A >) where T : Send { }
1202- unsafe impl < T , const N : usize , #[ cfg( feature = "allocator_api" ) ] A : Sync > Sync for alloc_param ! ( IntoIter <T , N , A >) where T : Sync { }
1201+ unsafe impl < T , const N : usize , #[ cfg( feature = "allocator_api" ) ] A : Allocator + Send > Send for alloc_param ! ( IntoIter <T , N , A >) where T : Send { }
1202+ unsafe impl < T , const N : usize , #[ cfg( feature = "allocator_api" ) ] A : Allocator + Sync > Sync for alloc_param ! ( IntoIter <T , N , A >) where T : Sync { }
12031203
12041204impl < T , const N : usize , #[ cfg( feature = "allocator_api" ) ] A : Allocator > alloc_param ! ( IntoIter <T , N , A >) {
12051205 #[ inline]
0 commit comments