File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
branches/try2/src/libstd/rt Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: ece38b3c7e16be1bedb45e552a127fe75bdb726a
8
+ refs/heads/try2: 80849e78a847f7834f71b36a66251ba0ea37a982
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -399,6 +399,12 @@ impl<T: Owned> GenericChan<T> for SharedChan<T> {
399
399
}
400
400
401
401
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) ) ]
402
408
fn try_send ( & self , val : T ) -> bool {
403
409
unsafe {
404
410
let ( next_pone, next_cone) = oneshot ( ) ;
@@ -442,6 +448,12 @@ impl<T: Owned> GenericPort<T> for SharedPort<T> {
442
448
}
443
449
}
444
450
451
+ #[ cfg( stage0) ] // odd type checking errors
452
+ fn try_recv ( & self ) -> Option < T > {
453
+ fail ! ( )
454
+ }
455
+
456
+ #[ cfg( not( stage0) ) ]
445
457
fn try_recv ( & self ) -> Option < T > {
446
458
unsafe {
447
459
let ( next_link_port, next_link_chan) = oneshot ( ) ;
You can’t perform that action at this time.
0 commit comments