]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sync/mpsc/shared.rs
rollup merge of #23176: huonw/rm-bounds
[rust.git] / src / libstd / sync / mpsc / shared.rs
index 80cbd0761638ff398bc2f4c79a69e7822161b7f7..be97302857777ca62889c6e19b81c86242937e7c 100644 (file)
@@ -64,7 +64,7 @@ pub enum Failure {
     Disconnected,
 }
 
-impl<T: Send> Packet<T> {
+impl<T> 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 @@ pub fn abort_selection(&mut self, _was_upgrade: bool) -> bool {
 }
 
 #[unsafe_destructor]
-impl<T: Send> Drop for Packet<T> {
+impl<T> 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