Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IoSlice and IoSliceMut should be Sync and Send #70308

Closed
sfackler opened this issue Mar 23, 2020 · 0 comments · Fixed by #70342
Closed

IoSlice and IoSliceMut should be Sync and Send #70308

sfackler opened this issue Mar 23, 2020 · 0 comments · Fixed by #70342
Labels
C-bug Category: This is a bug.

Comments

@sfackler
Copy link
Member

Since they contain *mut u8 on many platforms, they are neither Sync + Send by default, but they're semantically just slices so they should!

@sfackler sfackler added the C-bug Category: This is a bug. label Mar 23, 2020
Centril added a commit to Centril/rust that referenced this issue Mar 24, 2020
…Mark-Simulacrum

IoSlice/IoSliceMut should be Send and Sync

Closes rust-lang#70308
@bors bors closed this as completed in 8d4b5ff Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant