You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IntoIter iterator on Vecs (and possibly other collections, though I haven't checked) isn't Send anymore, even though I think it could be - it seems to drop the remaining elements and deallocate the memory when dropped, and doesn't refer to anything on the stack.
The program above produces following error message when compiled:
sender.rs:3:5: 3:17 error: the trait `core::marker::Send` is not implemented for the type `*mut _`
sender.rs:3 typecheck_me(vec.into_iter());
^~~~~~~~~~~~
sender.rs:3:5: 3:17 error: the trait `core::marker::Send` is not implemented for the type `*const _`
sender.rs:3 typecheck_me(vec.into_iter());
Which is not very helpful, especially when IntoIter is several levels deep on the object being sent (which was my case)
The text was updated successfully, but these errors were encountered:
The
IntoIter
iterator onVec
s (and possibly other collections, though I haven't checked) isn'tSend
anymore, even though I think it could be - it seems to drop the remaining elements and deallocate the memory when dropped, and doesn't refer to anything on the stack.Reproduction:
The program above produces following error message when compiled:
Which is not very helpful, especially when
IntoIter
is several levels deep on the object being sent (which was my case)The text was updated successfully, but these errors were encountered: