about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2015-03-08 22:01:01 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2015-03-08 22:01:01 +1100
commit25d070f228a101a806165a434b150a59a54f08ba (patch)
tree3f6b4510213965d22c41f8787ff74dbbbfebdf08 /src/libstd/sys/unix/stack_overflow.rs
parent35275076f52d53c3dcd9dee85d92a2059a663225 (diff)
downloadrust-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