@@ -345,7 +345,7 @@ pub struct Receiver<T> {
345345
346346// The receiver port can be sent from place to place, so long as it
347347// is not used to receive non-sendable things.
348- unsafe impl < T : Send + ' static > Send for Receiver < T > { }
348+ unsafe impl < T : Send > Send for Receiver < T > { }
349349
350350/// An iterator over messages on a receiver, this iterator will block
351351/// whenever `next` is called, waiting for a new message, and `None` will be
@@ -364,7 +364,7 @@ pub struct Sender<T> {
364364
365365// The send port can be sent from place to place, so long as it
366366// is not used to send non-sendable things.
367- unsafe impl < T : Send + ' static > Send for Sender < T > { }
367+ unsafe impl < T : Send > Send for Sender < T > { }
368368
369369/// The sending-half of Rust's synchronous channel type. This half can only be
370370/// owned by one task, but it can be cloned to send to other tasks.
@@ -373,7 +373,7 @@ pub struct SyncSender<T> {
373373 inner : Arc < UnsafeCell < sync:: Packet < T > > > ,
374374}
375375
376- unsafe impl < T : Send + ' static > Send for SyncSender < T > { }
376+ unsafe impl < T : Send > Send for SyncSender < T > { }
377377
378378impl < T > !Sync for SyncSender < T > { }
379379
@@ -485,7 +485,7 @@ impl<T> UnsafeFlavor<T> for Receiver<T> {
485485/// println!("{:?}", rx.recv().unwrap());
486486/// ```
487487#[ stable( feature = "rust1" , since = "1.0.0" ) ]
488- pub fn channel < T : Send + ' static > ( ) -> ( Sender < T > , Receiver < T > ) {
488+ pub fn channel < T : Send > ( ) -> ( Sender < T > , Receiver < T > ) {
489489 let a = Arc :: new ( UnsafeCell :: new ( oneshot:: Packet :: new ( ) ) ) ;
490490 ( Sender :: new ( Flavor :: Oneshot ( a. clone ( ) ) ) , Receiver :: new ( Flavor :: Oneshot ( a) ) )
491491}
@@ -525,7 +525,7 @@ pub fn channel<T: Send + 'static>() -> (Sender<T>, Receiver<T>) {
525525/// assert_eq!(rx.recv().unwrap(), 2);
526526/// ```
527527#[ stable( feature = "rust1" , since = "1.0.0" ) ]
528- pub fn sync_channel < T : Send + ' static > ( bound : uint ) -> ( SyncSender < T > , Receiver < T > ) {
528+ pub fn sync_channel < T : Send > ( bound : uint ) -> ( SyncSender < T > , Receiver < T > ) {
529529 let a = Arc :: new ( UnsafeCell :: new ( sync:: Packet :: new ( bound) ) ) ;
530530 ( SyncSender :: new ( a. clone ( ) ) , Receiver :: new ( Flavor :: Sync ( a) ) )
531531}
@@ -534,7 +534,7 @@ pub fn sync_channel<T: Send + 'static>(bound: uint) -> (SyncSender<T>, Receiver<
534534// Sender
535535////////////////////////////////////////////////////////////////////////////////
536536
537- impl < T : Send + ' static > Sender < T > {
537+ impl < T : Send > Sender < T > {
538538 fn new ( inner : Flavor < T > ) -> Sender < T > {
539539 Sender {
540540 inner : UnsafeCell :: new ( inner) ,
@@ -616,7 +616,7 @@ impl<T: Send + 'static> Sender<T> {
616616}
617617
618618#[ stable( feature = "rust1" , since = "1.0.0" ) ]
619- impl < T : Send + ' static > Clone for Sender < T > {
619+ impl < T : Send > Clone for Sender < T > {
620620 fn clone ( & self ) -> Sender < T > {
621621 let ( packet, sleeper, guard) = match * unsafe { self . inner ( ) } {
622622 Flavor :: Oneshot ( ref p) => {
@@ -662,7 +662,7 @@ impl<T: Send + 'static> Clone for Sender<T> {
662662
663663#[ unsafe_destructor]
664664#[ stable( feature = "rust1" , since = "1.0.0" ) ]
665- impl < T : Send + ' static > Drop for Sender < T > {
665+ impl < T : Send > Drop for Sender < T > {
666666 fn drop ( & mut self ) {
667667 match * unsafe { self . inner_mut ( ) } {
668668 Flavor :: Oneshot ( ref mut p) => unsafe { ( * p. get ( ) ) . drop_chan ( ) ; } ,
@@ -677,7 +677,7 @@ impl<T: Send + 'static> Drop for Sender<T> {
677677// SyncSender
678678////////////////////////////////////////////////////////////////////////////////
679679
680- impl < T : Send + ' static > SyncSender < T > {
680+ impl < T : Send > SyncSender < T > {
681681 fn new ( inner : Arc < UnsafeCell < sync:: Packet < T > > > ) -> SyncSender < T > {
682682 SyncSender { inner : inner }
683683 }
@@ -717,7 +717,7 @@ impl<T: Send + 'static> SyncSender<T> {
717717}
718718
719719#[ stable( feature = "rust1" , since = "1.0.0" ) ]
720- impl < T : Send + ' static > Clone for SyncSender < T > {
720+ impl < T : Send > Clone for SyncSender < T > {
721721 fn clone ( & self ) -> SyncSender < T > {
722722 unsafe { ( * self . inner . get ( ) ) . clone_chan ( ) ; }
723723 return SyncSender :: new ( self . inner . clone ( ) ) ;
@@ -726,7 +726,7 @@ impl<T: Send + 'static> Clone for SyncSender<T> {
726726
727727#[ unsafe_destructor]
728728#[ stable( feature = "rust1" , since = "1.0.0" ) ]
729- impl < T : Send + ' static > Drop for SyncSender < T > {
729+ impl < T : Send > Drop for SyncSender < T > {
730730 fn drop ( & mut self ) {
731731 unsafe { ( * self . inner . get ( ) ) . drop_chan ( ) ; }
732732 }
@@ -736,7 +736,7 @@ impl<T: Send + 'static> Drop for SyncSender<T> {
736736// Receiver
737737////////////////////////////////////////////////////////////////////////////////
738738
739- impl < T : Send + ' static > Receiver < T > {
739+ impl < T : Send > Receiver < T > {
740740 fn new ( inner : Flavor < T > ) -> Receiver < T > {
741741 Receiver { inner : UnsafeCell :: new ( inner) }
742742 }
@@ -855,7 +855,7 @@ impl<T: Send + 'static> Receiver<T> {
855855 }
856856}
857857
858- impl < T : Send + ' static > select:: Packet for Receiver < T > {
858+ impl < T : Send > select:: Packet for Receiver < T > {
859859 fn can_recv ( & self ) -> bool {
860860 loop {
861861 let new_port = match * unsafe { self . inner ( ) } {
@@ -942,15 +942,15 @@ impl<T: Send + 'static> select::Packet for Receiver<T> {
942942}
943943
944944#[ stable( feature = "rust1" , since = "1.0.0" ) ]
945- impl < ' a , T : Send + ' static > Iterator for Iter < ' a , T > {
945+ impl < ' a , T : Send > Iterator for Iter < ' a , T > {
946946 type Item = T ;
947947
948948 fn next ( & mut self ) -> Option < T > { self . rx . recv ( ) . ok ( ) }
949949}
950950
951951#[ unsafe_destructor]
952952#[ stable( feature = "rust1" , since = "1.0.0" ) ]
953- impl < T : Send + ' static > Drop for Receiver < T > {
953+ impl < T : Send > Drop for Receiver < T > {
954954 fn drop ( & mut self ) {
955955 match * unsafe { self . inner_mut ( ) } {
956956 Flavor :: Oneshot ( ref mut p) => unsafe { ( * p. get ( ) ) . drop_port ( ) ; } ,
0 commit comments