diff options
| author | bors <bors@rust-lang.org> | 2015-02-22 10:27:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-22 10:27:08 +0000 |
| commit | dcc6ce2c772cb851ac35cbc2ddafcae9bf2fa9fd (patch) | |
| tree | 5c395b9b0e9b905648ed6de581ec601f4cc2ba9f /src/libstd/sync/mpsc/shared.rs | |
| parent | eb1b500a9a69b149295c37c2fe2c9409f406f9ea (diff) | |
| parent | 380d23b5d4b9fb8f5f0ebf178590f61528b2483e (diff) | |
| download | rust-dcc6ce2c772cb851ac35cbc2ddafcae9bf2fa9fd.tar.gz rust-dcc6ce2c772cb851ac35cbc2ddafcae9bf2fa9fd.zip | |
Auto merge of #22574 - huonw:remove-lame-statics, r=alexcirchton
Add a basic test that checks that the types catch the most glaring errors that could occur. cc #22444
Diffstat (limited to 'src/libstd/sync/mpsc/shared.rs')
| -rw-r--r-- | src/libstd/sync/mpsc/shared.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sync/mpsc/shared.rs b/src/libstd/sync/mpsc/shared.rs index bc9c73585c2..729e7991f97 100644 --- a/src/libstd/sync/mpsc/shared.rs +++ b/src/libstd/sync/mpsc/shared.rs @@ -64,7 +64,7 @@ pub enum Failure { Disconnected, } -impl<T: Send + 'static> Packet<T> { +impl<T: Send> Packet<T> { // Creation of a packet *must* be followed by a call to postinit_lock // and later by inherit_blocker pub fn new() -> Packet<T> { @@ -474,7 +474,7 @@ impl<T: Send + 'static> Packet<T> { } #[unsafe_destructor] -impl<T: Send + 'static> Drop for Packet<T> { +impl<T: Send> Drop for Packet<T> { fn drop(&mut self) { // Note that this load is not only an assert for correctness about // disconnection, but also a proper fence before the read of |
