Uh oh!
There was an error while loading. Please reload this page.
IoSlice/IoSliceMut should be Send and Sync - #70342
Conversation
rust-highfive
commented
Mar 23, 2020
(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) |
sfackler
commented
Mar 24, 2020
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. |
rust-highfive
commented
Mar 24, 2020
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 |
Mark-Simulacrum
commented
Mar 24, 2020
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 |
withoutboats
commented
Mar 24, 2020
@bors r=Mark-Simulacrum |
bors
commented
Mar 24, 2020
📌 Commit 03c64bf has been approved by |
…Mark-Simulacrum IoSlice/IoSliceMut should be Send and Sync Closesrust-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