]> git.lizzy.rs Git - rust.git/commit
Update the libraries to reflect Send loosing the 'static bound.
authorHuon Wilson <dbau.pp+github@gmail.com>
Fri, 13 Feb 2015 11:58:37 +0000 (22:58 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Tue, 17 Feb 2015 21:19:21 +0000 (08:19 +1100)
commitd7b5bc3c2f673ac3edd818cb7bd42555c2cbc2a2
tree9fc5d0740225f18a41e9dda8ef5bfbc132a858c2
parentcae969e2a755bd7e8ec22758a8a02146ddb599a4
Update the libraries to reflect Send loosing the 'static bound.

In most places this preserves the current API by adding an explicit
`'static` bound.

Notably absent are some impls like `unsafe impl<T: Send> Send for
Foo<T>` and the `std::thread` module. It is likely that it will be
possible to remove these after auditing the code to ensure restricted
lifetimes are safe.

More progress on #22251.
20 files changed:
src/libstd/rt/at_exit_imp.rs
src/libstd/rt/mod.rs
src/libstd/rt/unwind.rs
src/libstd/sync/future.rs
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/task_pool.rs
src/libstd/sys/common/helper_thread.rs
src/libstd/thread.rs
src/libstd/thunk.rs
src/libterm/terminfo/mod.rs
src/libterm/win.rs
src/libtest/lib.rs