@@ -110,6 +110,7 @@ pub fn stream<T:Owned>() -> (Port<T>, Chan<T>) {
110110// required.
111111#[cfg(stage1)]
112112#[cfg(stage2)]
113+ #[cfg(stage3)]
113114pub impl<T: Owned> Chan<T> {
114115 fn send(&self, x: T) { chan_send(self, x) }
115116 fn try_send(&self, x: T) -> bool { chan_try_send(self, x) }
@@ -149,6 +150,7 @@ fn chan_try_send<T:Owned>(self: &Chan<T>, x: T) -> bool {
149150// Use an inherent impl so that imports are not required:
150151#[cfg(stage1)]
151152#[cfg(stage2)]
153+ #[cfg(stage3)]
152154pub impl<T: Owned> Port<T> {
153155 fn recv(&self) -> T { port_recv(self) }
154156 fn try_recv(&self) -> Option<T> { port_try_recv(self) }
@@ -226,6 +228,7 @@ pub fn PortSet<T: Owned>() -> PortSet<T>{
226228// Use an inherent impl so that imports are not required:
227229#[cfg(stage1)]
228230#[cfg(stage2)]
231+ #[cfg(stage3)]
229232pub impl<T:Owned> PortSet<T> {
230233 fn recv(&self) -> T { port_set_recv(self) }
231234 fn try_recv(&self) -> Option<T> { port_set_try_recv(self) }
@@ -301,6 +304,7 @@ pub type SharedChan<T> = unstable::Exclusive<Chan<T>>;
301304
302305#[cfg(stage1)]
303306#[cfg(stage2)]
307+ #[cfg(stage3)]
304308pub impl<T: Owned> SharedChan<T> {
305309 fn send(&self, x: T) { shared_chan_send(self, x) }
306310 fn try_send(&self, x: T) -> bool { shared_chan_try_send(self, x) }
0 commit comments