diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2013-03-20 13:48:05 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2013-03-20 13:48:57 -0700 |
| commit | 9350d14ecb025f963198e9baa39679f808496785 (patch) | |
| tree | 4ca6ca35465d94dea72c885b040c310297b7293d | |
| parent | bb9e1e2660990012c35ee975530b0b8b3136baf0 (diff) | |
| download | rust-9350d14ecb025f963198e9baa39679f808496785.tar.gz rust-9350d14ecb025f963198e9baa39679f808496785.zip | |
add stage3 markers where necessary for dist-snap
| -rw-r--r-- | src/libcore/comm.rs | 4 | ||||
| -rw-r--r-- | src/libcore/io.rs | 2 | ||||
| -rw-r--r-- | src/librustc/front/test.rs | 1 | ||||
| -rw-r--r-- | src/libstd/comm.rs | 1 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/libcore/comm.rs b/src/libcore/comm.rs index 12dc2d7e341..255e1966f37 100644 --- a/src/libcore/comm.rs +++ b/src/libcore/comm.rs @@ -110,6 +110,7 @@ pub fn stream<T:Owned>() -> (Port<T>, Chan<T>) { // required. #[cfg(stage1)] #[cfg(stage2)] +#[cfg(stage3)] pub impl<T: Owned> Chan<T> { fn send(&self, x: T) { chan_send(self, x) } 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 { // Use an inherent impl so that imports are not required: #[cfg(stage1)] #[cfg(stage2)] +#[cfg(stage3)] pub impl<T: Owned> Port<T> { fn recv(&self) -> T { port_recv(self) } fn try_recv(&self) -> Option<T> { port_try_recv(self) } @@ -226,6 +228,7 @@ pub fn PortSet<T: Owned>() -> PortSet<T>{ // Use an inherent impl so that imports are not required: #[cfg(stage1)] #[cfg(stage2)] +#[cfg(stage3)] pub impl<T:Owned> PortSet<T> { fn recv(&self) -> T { port_set_recv(self) } fn try_recv(&self) -> Option<T> { port_set_try_recv(self) } @@ -301,6 +304,7 @@ pub type SharedChan<T> = unstable::Exclusive<Chan<T>>; #[cfg(stage1)] #[cfg(stage2)] +#[cfg(stage3)] pub impl<T: Owned> SharedChan<T> { fn send(&self, x: T) { shared_chan_send(self, x) } fn try_send(&self, x: T) -> bool { shared_chan_try_send(self, x) } diff --git a/src/libcore/io.rs b/src/libcore/io.rs index 0879d1bd900..97dcc4030ff 100644 --- a/src/libcore/io.rs +++ b/src/libcore/io.rs @@ -77,6 +77,7 @@ pub trait Reader { #[cfg(stage1)] #[cfg(stage2)] +#[cfg(stage3)] impl Reader for @Reader { fn read(&self, bytes: &mut [u8], len: uint) -> uint { self.read(bytes, len) @@ -659,6 +660,7 @@ pub trait Writer { #[cfg(stage1)] #[cfg(stage2)] +#[cfg(stage3)] impl Writer for @Writer { fn write(&self, v: &[const u8]) { self.write(v) } fn seek(&self, a: int, b: SeekStyle) { self.seek(a, b) } diff --git a/src/librustc/front/test.rs b/src/librustc/front/test.rs index 434d992f501..8b08f5e4532 100644 --- a/src/librustc/front/test.rs +++ b/src/librustc/front/test.rs @@ -369,6 +369,7 @@ fn mk_tests(cx: &TestCtxt) -> @ast::item { #[cfg(stage1)] #[cfg(stage2)] +#[cfg(stage3)] fn mk_tests(cx: &TestCtxt) -> @ast::item { let ext_cx = cx.ext_cx; diff --git a/src/libstd/comm.rs b/src/libstd/comm.rs index 99f6fa4c8cf..23ae7666bb4 100644 --- a/src/libstd/comm.rs +++ b/src/libstd/comm.rs @@ -28,6 +28,7 @@ pub struct DuplexStream<T, U> { // Allow these methods to be used without import: #[cfg(stage1)] #[cfg(stage2)] +#[cfg(stage3)] pub impl<T:Owned,U:Owned> DuplexStream<T, U> { fn send(&self, x: T) { self.chan.send(x) |
