-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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/IoSliceMut should be Send and Sync #70342
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Hm, I wonder if this is the right approach - I would personally prefer to add them to each sys module where it's easier to audit (particularly when adding new things). What do you think about that? (Obviously more work) (Sorry about closing/opening, misclicked) |
I think adding them at the top level is the right way to go - we're going to inevitably have this problem on random obscure targets going forward otherwise. The types are semantically just byte slices, so I can't imagine there would exist a platform that could possibly need to not have these impls. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Hm, seems like the random target platform would be avoided with an assert that it's Send/Sync. But I agree that in this case it probably won't matter so I'm happy to approve this (with CI passing); r=me |
@bors r=Mark-Simulacrum |
📌 Commit 03c64bf has been approved by |
…Mark-Simulacrum IoSlice/IoSliceMut should be Send and Sync Closes rust-lang#70308
Rollup of 8 pull requests Successful merges: - rust-lang#70023 (clean up E0436 explanation) - rust-lang#70234 (#[track_caller] on core::ops::{Index, IndexMut}.) - rust-lang#70241 (Miri: move ModifiedStatic to ConstEval errors) - rust-lang#70342 (IoSlice/IoSliceMut should be Send and Sync) - rust-lang#70350 (Request "-Z unstable-options" for unstable options) - rust-lang#70355 (Clean up E0454) - rust-lang#70359 (must_use on split_off) - rust-lang#70368 (Mark hotplug_codegen_backend as ignore-stage1) Failed merges: r? @ghost
Closes #70308