Vec's IntoIter should be Send/Sync when Vec is (fixes #21027)
This commit is contained in:
parent
055cc2ee74
commit
d6e67e938b
@ -1511,6 +1511,9 @@ pub struct IntoIter<T> {
|
||||
end: *const T
|
||||
}
|
||||
|
||||
unsafe impl<T: Send> Send for IntoIter<T> { }
|
||||
unsafe impl<T: Sync> Sync for IntoIter<T> { }
|
||||
|
||||
impl<T> IntoIter<T> {
|
||||
#[inline]
|
||||
/// Drops all items that have not yet been moved and returns the empty vector.
|
||||
|
Loading…
x
Reference in New Issue
Block a user