]> git.lizzy.rs Git - rust.git/commit
Remove `'static` bound from sync::mpsc, Mutex and RwLock.
authorHuon Wilson <dbau.pp+github@gmail.com>
Fri, 20 Feb 2015 06:33:11 +0000 (17:33 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Sat, 21 Feb 2015 05:51:49 +0000 (16:51 +1100)
commit380d23b5d4b9fb8f5f0ebf178590f61528b2483e
tree7e9378152fc5c721cba355b8007b2a7cd202fa69
parent522d09dfecbeca1595f25ac58c6d0178bbd21d7d
Remove `'static` bound from sync::mpsc, Mutex and RwLock.

Adds some basic tests to check that the types still catch the most
glaring errors that could occur.

cc #22444.
12 files changed:
src/libstd/sync/mpsc/mod.rs
src/libstd/sync/mpsc/mpsc_queue.rs
src/libstd/sync/mpsc/oneshot.rs
src/libstd/sync/mpsc/select.rs
src/libstd/sync/mpsc/shared.rs
src/libstd/sync/mpsc/spsc_queue.rs
src/libstd/sync/mpsc/stream.rs
src/libstd/sync/mpsc/sync.rs
src/libstd/sync/mutex.rs
src/libstd/sync/rwlock.rs
src/test/compile-fail/send-is-not-static-std-sync-2.rs [new file with mode: 0644]
src/test/compile-fail/send-is-not-static-std-sync.rs [new file with mode: 0644]