]> git.lizzy.rs Git - rust.git/commit
Explicitly opt out of `Sync` for `cell` and `mpsc` types
authorAndrew Paseltiner <apaseltiner@gmail.com>
Tue, 1 Mar 2016 03:03:23 +0000 (22:03 -0500)
committerAndrew Paseltiner <apaseltiner@gmail.com>
Tue, 1 Mar 2016 23:51:46 +0000 (18:51 -0500)
commitf522d882373067ab79ea0fdc30be6150eeccb1fd
tree16ba657f47d2e5fe3fcb0e5bc7b483062e400225
parent52cb8a9d39d05126a79e7b9a3adc31a5e3cdde94
Explicitly opt out of `Sync` for `cell` and `mpsc` types

These types were already `!Sync`, but this improves error messages when
they are used in contexts that require `Sync`, aligning them with
conventions used with `Rc`, among others.
src/libcore/cell.rs
src/libstd/sync/mpsc/mod.rs
src/test/compile-fail/comm-not-freeze-receiver.rs [deleted file]
src/test/compile-fail/comm-not-freeze.rs [deleted file]
src/test/compile-fail/no_share-rc.rs [deleted file]
src/test/compile-fail/not-sync.rs [new file with mode: 0644]