File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed 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