diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-03-08 22:01:01 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-03-08 22:01:01 +1100 |
| commit | 25d070f228a101a806165a434b150a59a54f08ba (patch) | |
| tree | 3f6b4510213965d22c41f8787ff74dbbbfebdf08 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 35275076f52d53c3dcd9dee85d92a2059a663225 (diff) | |
| download | rust-25d070f228a101a806165a434b150a59a54f08ba.tar.gz rust-25d070f228a101a806165a434b150a59a54f08ba.zip | |
Remove unneeded `Send`/`Sync` bounds from `Mutex`/`RwLock`.
The requirements `T: Send` and `T: Send + Sync` for `Mutex` and `RwLock` respectively only matter if those types are shared/sent across thread boundaries, and that is adequately controlled by the impls of `Send`/`Sync` for them. If `T` doesn't satisfy the bounds, then the types cannot cross thread boundaries and so everything is still safe (the two types just act like an expensive `RefCell`).
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
