Skip to content

Commit 7288dab

Browse files
committed
---
yaml --- r: 27864 b: refs/heads/try c: b245289 h: refs/heads/master v: v3
1 parent 8c873b9 commit 7288dab

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: 942649a26073bb84797f8831d39d0b35018e931b
5+
refs/heads/try: b2452896d195ce2e8409244e177e04c55cf8a75c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/src/libcore/pipes.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,10 +1043,14 @@ struct port_set<T: send> : recv<T> {
10431043
let mut ports = ~[];
10441044
ports <-> self.ports;
10451045
while result == none && ports.len() > 0 {
1046-
let i = wait_many(ports.map(|p| p.header()));
1046+
let i = wait_many(ports);
10471047
match move ports[i].try_recv() {
1048-
some(copy m) => {
1049-
result = some(move m);
1048+
// FIXME (#2329): use this version once move from enum works.
1049+
//some(copy m) => {
1050+
// result = some(move m);
1051+
//}
1052+
some(m) => {
1053+
result = some(move_it!(m));
10501054
}
10511055
none => {
10521056
// Remove this port.
@@ -1065,7 +1069,9 @@ struct port_set<T: send> : recv<T> {
10651069

10661070
fn recv() -> T {
10671071
match move self.try_recv() {
1068-
some(copy x) => move x,
1072+
// FIXME (#2329): use this version once move from enum works.
1073+
//some(copy x) => move x,
1074+
some(x) => move_it!(x),
10691075
none => fail ~"port_set: endpoints closed"
10701076
}
10711077
}

0 commit comments

Comments
 (0)