Vec's IntoIter should be Send/Sync when Vec is (fixes #21027)
This commit is contained in:
parent
055cc2ee74
commit
d6e67e938b
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue