Skip to content

Commit 8b69b7b

Browse files
committed
---
yaml --- r: 38599 b: refs/heads/incoming c: e18c6bb h: refs/heads/master i: 38597: d07137a 38595: 94ebd39 38591: 8e2c7af v: v3
1 parent e6a1209 commit 8b69b7b

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9-
refs/heads/incoming: d52f988dbb8c147d310926434b7ed2415a4a8719
9+
refs/heads/incoming: e18c6bb3b6f9daab455227dae384d9a3b961aa1c
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/test/auxiliary/cci_class_6.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn cat<U>(in_x : uint, in_y : int, -in_info: ~[U]) -> cat<U> {
2121
cat {
2222
meows: in_x,
2323
how_hungry: in_y,
24-
info: in_info
24+
info: move in_info
2525
}
2626
}
2727

branches/incoming/src/test/auxiliary/test_comm.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
use libc::size_t;
99

10-
export port::{};
1110
export port;
1211
export recv;
1312

@@ -65,21 +64,21 @@ fn recv<T: Send>(p: port<T>) -> T { recv_((**p).po) }
6564

6665
/// Receive on a raw port pointer
6766
fn recv_<T: Send>(p: *rust_port) -> T {
68-
let yield = 0u;
67+
let yield = 0;
6968
let yieldp = ptr::addr_of(&yield);
7069
let mut res;
7170
res = rusti::init::<T>();
7271
rustrt::port_recv(ptr::addr_of(&res) as *uint, p, yieldp);
7372

74-
if yield != 0u {
73+
if yield != 0 {
7574
// Data isn't available yet, so res has not been initialized.
7675
task::yield();
7776
} else {
7877
// In the absense of compiler-generated preemption points
7978
// this is a good place to yield
8079
task::yield();
8180
}
82-
return res;
81+
move res
8382
}
8483

8584

0 commit comments

Comments
 (0)