@@ -108,9 +108,6 @@ pub fn stream<T:Owned>() -> (Port<T>, Chan<T>) {
108
108
109
109
// Add an inherent method so that imports of GenericChan are not
110
110
// required.
111
- #[cfg(stage1)]
112
- #[cfg(stage2)]
113
- #[cfg(stage3)]
114
111
pub impl<T: Owned> Chan<T> {
115
112
fn send(&self, x: T) { chan_send(self, x) }
116
113
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 {
148
145
}
149
146
150
147
// Use an inherent impl so that imports are not required:
151
- #[cfg(stage1)]
152
- #[cfg(stage2)]
153
- #[cfg(stage3)]
154
148
pub impl<T: Owned> Port<T> {
155
149
fn recv(&self) -> T { port_recv(self) }
156
150
fn try_recv(&self) -> Option<T> { port_try_recv(self) }
@@ -226,9 +220,6 @@ pub fn PortSet<T: Owned>() -> PortSet<T>{
226
220
}
227
221
228
222
// Use an inherent impl so that imports are not required:
229
- #[cfg(stage1)]
230
- #[cfg(stage2)]
231
- #[cfg(stage3)]
232
223
pub impl<T:Owned> PortSet<T> {
233
224
fn recv(&self) -> T { port_set_recv(self) }
234
225
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 {
302
293
/// A channel that can be shared between many senders.
303
294
pub type SharedChan<T> = unstable::Exclusive<Chan<T>>;
304
295
305
- #[cfg(stage1)]
306
- #[cfg(stage2)]
307
- #[cfg(stage3)]
308
296
pub impl<T: Owned> SharedChan<T> {
309
297
fn send(&self, x: T) { shared_chan_send(self, x) }
310
298
fn try_send(&self, x: T) -> bool { shared_chan_try_send(self, x) }
0 commit comments