Skip to content

Commit 087a9dd

Browse files
committed
---
yaml --- r: 142599 b: refs/heads/try2 c: 80849e7 h: refs/heads/master i: 142597: 33f06f6 142595: f726f0d 142591: dc0a883 v: v3
1 parent 93fa5fb commit 087a9dd

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: ece38b3c7e16be1bedb45e552a127fe75bdb726a
8+
refs/heads/try2: 80849e78a847f7834f71b36a66251ba0ea37a982
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/rt/comm.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,12 @@ impl<T: Owned> GenericChan<T> for SharedChan<T> {
399399
}
400400

401401
impl<T: Owned> GenericSmartChan<T> for SharedChan<T> {
402+
#[cfg(stage0)] // odd type checking errors
403+
fn try_send(&self, _val: T) -> bool {
404+
fail!()
405+
}
406+
407+
#[cfg(not(stage0))]
402408
fn try_send(&self, val: T) -> bool {
403409
unsafe {
404410
let (next_pone, next_cone) = oneshot();
@@ -442,6 +448,12 @@ impl<T: Owned> GenericPort<T> for SharedPort<T> {
442448
}
443449
}
444450

451+
#[cfg(stage0)] // odd type checking errors
452+
fn try_recv(&self) -> Option<T> {
453+
fail!()
454+
}
455+
456+
#[cfg(not(stage0))]
445457
fn try_recv(&self) -> Option<T> {
446458
unsafe {
447459
let (next_link_port, next_link_chan) = oneshot();

0 commit comments

Comments
 (0)