@@ -108,9 +108,6 @@ pub fn stream<T:Owned>() -> (Port<T>, Chan<T>) {
108108
109109// Add an inherent method so that imports of GenericChan are not
110110// required.
111- #[cfg(stage1)]
112- #[cfg(stage2)]
113- #[cfg(stage3)]
114111pub impl<T: Owned> Chan<T> {
115112 fn send(&self, x: T) { chan_send(self, x) }
116113 fn try_send(&self, x: T) -> bool { chan_try_send(self, x) }
@@ -148,9 +145,6 @@ fn chan_try_send<T:Owned>(self: &Chan<T>, x: T) -> bool {
148145}
149146
150147// Use an inherent impl so that imports are not required:
151- #[cfg(stage1)]
152- #[cfg(stage2)]
153- #[cfg(stage3)]
154148pub impl<T: Owned> Port<T> {
155149 fn recv(&self) -> T { port_recv(self) }
156150 fn try_recv(&self) -> Option<T> { port_try_recv(self) }
@@ -226,9 +220,6 @@ pub fn PortSet<T: Owned>() -> PortSet<T>{
226220}
227221
228222// Use an inherent impl so that imports are not required:
229- #[cfg(stage1)]
230- #[cfg(stage2)]
231- #[cfg(stage3)]
232223pub impl<T:Owned> PortSet<T> {
233224 fn recv(&self) -> T { port_set_recv(self) }
234225 fn try_recv(&self) -> Option<T> { port_set_try_recv(self) }
@@ -302,9 +293,6 @@ pure fn port_set_peek<T:Owned>(self: &PortSet<T>) -> bool {
302293/// A channel that can be shared between many senders.
303294pub type SharedChan<T> = unstable::Exclusive<Chan<T>>;
304295
305- #[cfg(stage1)]
306- #[cfg(stage2)]
307- #[cfg(stage3)]
308296pub impl<T: Owned> SharedChan<T> {
309297 fn send(&self, x: T) { shared_chan_send(self, x) }
310298 fn try_send(&self, x: T) -> bool { shared_chan_try_send(self, x) }
0 commit comments