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:02:21 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2015-03-08 22:16:32 +1100
commit0f6b43aa8f288d3d12adc8747fb5060956d7f0e5 (patch)
tree1639424ddb7202a5b6acefa7f75825d6f768bd5c /src/libstd/sys/unix/stack_overflow.rs
parent25d070f228a101a806165a434b150a59a54f08ba (diff)
downloadrust-0f6b43aa8f288d3d12adc8747fb5060956d7f0e5.tar.gz
rust-0f6b43aa8f288d3d12adc8747fb5060956d7f0e5.zip
Remove unneeded `Send` bounds from `std::sync::mpsc`.
The requirements `T: Send` only matter if the channel crosses thread
boundaries i.e. the `Sender` or `Reciever` are sent across thread
boundaries, and which is adequately controlled by the impls of `Send`
for them. If `T` doesn't satisfy the bounds, then the types cannot cross
thread boundaries and so everything is still safe (the pair of types
collectively behave like a `Rc<RefCell<VecDeque>>`, or something of that
nature).
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions