Skip to content

Commit 61b498c

Browse files
author
Eric Holk
committed
---
yaml --- r: 4669 b: refs/heads/master c: 7ad1339 h: refs/heads/master i: 4667: c414f1e v: v3
1 parent 182ef3c commit 61b498c

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b9f1f77622c7a52b0eba39eb05c7841f5407f938
2+
refs/heads/master: 7ad13392bde8b47415ecf4e685e499a2201ad278

trunk/src/test/run-pass/spawn-types.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@
77
use std;
88

99
import std::str;
10+
import std::comm;
11+
import std::task;
1012

11-
type ctx = chan[int];
13+
type ctx = comm::chan_t[int];
1214

1315
fn iotask(cx: ctx, ip: str) { assert (str::eq(ip, "localhost")); }
1416

15-
fn main() { let p: port[int] = port(); spawn iotask(chan(p), "localhost"); }
17+
fn main() {
18+
let p = comm::mk_port[int]();
19+
task::_spawn(bind iotask(p.mk_chan2(), "localhost"));
20+
}

trunk/src/test/run-pass/spawn2.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// -*- rust -*-
22

3-
fn main() { spawn child(10, 20, 30, 40, 50, 60, 70, 80, 90); }
3+
use std;
4+
import std::task::_spawn;
5+
6+
fn main() { _spawn(bind child(10, 20, 30, 40, 50, 60, 70, 80, 90)); }
47

58
fn child(i1: int, i2: int, i3: int, i4: int, i5: int, i6: int, i7: int,
69
i8: int, i9: int) {

0 commit comments

Comments
 (0)