@@ -1031,8 +1031,18 @@ impl<T, A: Allocator + Clone> RawTable<T, A> {
10311031 }
10321032}
10331033
1034- unsafe impl < T , A : Allocator + Clone > Send for RawTable < T , A > where T : Send { }
1035- unsafe impl < T , A : Allocator + Clone > Sync for RawTable < T , A > where T : Sync { }
1034+ unsafe impl < T , A : Allocator + Clone > Send for RawTable < T , A >
1035+ where
1036+ T : Send ,
1037+ A : Send ,
1038+ {
1039+ }
1040+ unsafe impl < T , A : Allocator + Clone > Sync for RawTable < T , A >
1041+ where
1042+ T : Sync ,
1043+ A : Sync ,
1044+ {
1045+ }
10361046
10371047impl < A > RawTableInner < A > {
10381048 #[ inline]
@@ -2156,8 +2166,18 @@ impl<T, A: Allocator + Clone> RawIntoIter<T, A> {
21562166 }
21572167}
21582168
2159- unsafe impl < T , A : Allocator + Clone > Send for RawIntoIter < T , A > where T : Send { }
2160- unsafe impl < T , A : Allocator + Clone > Sync for RawIntoIter < T , A > where T : Sync { }
2169+ unsafe impl < T , A : Allocator + Clone > Send for RawIntoIter < T , A >
2170+ where
2171+ T : Send ,
2172+ A : Send ,
2173+ {
2174+ }
2175+ unsafe impl < T , A : Allocator + Clone > Sync for RawIntoIter < T , A >
2176+ where
2177+ T : Sync ,
2178+ A : Sync ,
2179+ {
2180+ }
21612181
21622182#[ cfg( feature = "nightly" ) ]
21632183unsafe impl < #[ may_dangle] T , A : Allocator + Clone > Drop for RawIntoIter < T , A > {
@@ -2229,8 +2249,18 @@ impl<T, A: Allocator + Clone> RawDrain<'_, T, A> {
22292249 }
22302250}
22312251
2232- unsafe impl < T , A : Allocator + Copy > Send for RawDrain < ' _ , T , A > where T : Send { }
2233- unsafe impl < T , A : Allocator + Copy > Sync for RawDrain < ' _ , T , A > where T : Sync { }
2252+ unsafe impl < T , A : Allocator + Copy > Send for RawDrain < ' _ , T , A >
2253+ where
2254+ T : Send ,
2255+ A : Send ,
2256+ {
2257+ }
2258+ unsafe impl < T , A : Allocator + Copy > Sync for RawDrain < ' _ , T , A >
2259+ where
2260+ T : Sync ,
2261+ A : Sync ,
2262+ {
2263+ }
22342264
22352265impl < T , A : Allocator + Clone > Drop for RawDrain < ' _ , T , A > {
22362266 #[ cfg_attr( feature = "inline-more" , inline) ]
0 commit comments