about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-06-01 20:31:33 -0700
committerBrian Anderson <banderson@mozilla.com>2013-06-06 17:53:13 -0700
commit80849e78a847f7834f71b36a66251ba0ea37a982 (patch)
tree19dd5be6f419bf2d534e98a9f64f25d3acbe7d92 /src/libstd/rt
parentece38b3c7e16be1bedb45e552a127fe75bdb726a (diff)
downloadrust-80849e78a847f7834f71b36a66251ba0ea37a982.tar.gz
rust-80849e78a847f7834f71b36a66251ba0ea37a982.zip
std: Fix stage0 build
Conflicts:
	src/libstd/rt/comm.rs
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/comm.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstd/rt/comm.rs b/src/libstd/rt/comm.rs
index ef2091f789c..449ac9e14a4 100644
--- a/src/libstd/rt/comm.rs
+++ b/src/libstd/rt/comm.rs
@@ -399,6 +399,12 @@ impl<T: Owned> GenericChan<T> for SharedChan<T> {
 }
 
 impl<T: Owned> GenericSmartChan<T> for SharedChan<T> {
+    #[cfg(stage0)] // odd type checking errors
+    fn try_send(&self, _val: T) -> bool {
+        fail!()
+    }
+
+    #[cfg(not(stage0))]
     fn try_send(&self, val: T) -> bool {
         unsafe {
             let (next_pone, next_cone) = oneshot();
@@ -442,6 +448,12 @@ impl<T: Owned> GenericPort<T> for SharedPort<T> {
         }
     }
 
+    #[cfg(stage0)] // odd type checking errors
+    fn try_recv(&self) -> Option<T> {
+        fail!()
+    }
+
+    #[cfg(not(stage0))]
     fn try_recv(&self) -> Option<T> {
         unsafe {
             let (next_link_port, next_link_chan) = oneshot();