We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ece38b3 commit 80849e7Copy full SHA for 80849e7
src/libstd/rt/comm.rs
@@ -399,6 +399,12 @@ impl<T: Owned> GenericChan<T> for SharedChan<T> {
399
}
400
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))]
408
fn try_send(&self, val: T) -> bool {
409
unsafe {
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
452
+ fn try_recv(&self) -> Option<T> {
453
454
455
456
445
457
fn try_recv(&self) -> Option<T> {
446
458
447
459
let (next_link_port, next_link_chan) = oneshot();
0 commit comments