Skip to content

Warnings #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/test/compile-fail/spawn-non-nil-fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ fn f(int x) -> int {
}

fn main() {
spawn f(10);
auto taskf = spawn f(10);
}
2 changes: 1 addition & 1 deletion src/test/run-fail/linked-failure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn child() {

io fn main() {
let port[int] p = port();
spawn child();
auto child_task = spawn child();
let int x;
x <- p;
}
2 changes: 1 addition & 1 deletion src/test/run-pass/acyclic-unwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ io fn f(chan[int] c)

io fn main() {
let port[int] p = port();
spawn f(chan(p));
auto task_f = spawn f(chan(p));
let int i;

// synchronize on event from child.
Expand Down
4 changes: 2 additions & 2 deletions src/test/run-pass/basic-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ io fn a(chan[int] c) {

io fn main() {
let port[int] p = port();
spawn a(chan(p));
spawn b(chan(p));
auto task_a = spawn a(chan(p));
auto task_b = spawn b(chan(p));
let int n = 0;
n <- p;
n <- p;
Expand Down
4 changes: 2 additions & 2 deletions src/test/run-pass/basic-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ io fn a(chan[int] c) {

io fn main() {
let port[int] p = port();
spawn a(chan(p));
spawn b(chan(p));
auto task_a = spawn a(chan(p));
auto task_b = spawn b(chan(p));
let int n = 0;
n <- p;
n <- p;
Expand Down
4 changes: 2 additions & 2 deletions src/test/run-pass/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ io fn main() {
let int n = 2 + 3 * 7;
let str s = "hello there";
let port[int] p = port();
spawn a(chan(p));
spawn b(chan(p));
auto task_a = spawn a(chan(p));
auto task_b = spawn b(chan(p));
let int x = 10;
x = g(n,s);
log x;
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/comm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

io fn main() {
let port[int] p = port();
spawn child(chan(p));
auto child_task = spawn child(chan(p));
let int y;
y <- p;
log "received";
Expand Down
4 changes: 2 additions & 2 deletions src/test/run-pass/lazychan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ io fn main() {
auto c = chan(p);
let int y;

spawn child(c);
auto task1 = spawn child(c);
y <- p;
log "received 1";
log y;
check (y == 10);

spawn child(c);
auto task2 = spawn child(c);
y <- p;
log "received 2";
log y;
Expand Down
6 changes: 3 additions & 3 deletions src/test/run-pass/spawn-fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ fn x(str s, int n) {
}

fn main() {
spawn x("hello from first spawned fn", 65);
spawn x("hello from second spawned fn", 66);
spawn x("hello from third spawned fn", 67);
auto task1 = spawn x("hello from first spawned fn", 65);
auto task2 = spawn x("hello from second spawned fn", 66);
auto task3 = spawn x("hello from third spawned fn", 67);
let int i = 30;
while (i > 0) {
i = i - 1;
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/spawn.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// -*- rust -*-

fn main() {
spawn child(10);
auto child_task = spawn child(10);
}

fn child(int i) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/task-comm-0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ io fn test05_start(chan[int] ch) {
io fn test05() {
let port[int] po = port();
let chan[int] ch = chan(po);
spawn test05_start(chan(po));
auto task5 = spawn test05_start(chan(po));
let int value <- po;
value <- po;
value <- po;
Expand Down
4 changes: 2 additions & 2 deletions src/test/run-pass/task-comm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fn test04() {
let int i = 4;
while (i > 0) {
i = i - 1;
spawn thread test04_start();
auto task_i = spawn thread test04_start();
}
log "Finishing up.";
}
Expand All @@ -122,7 +122,7 @@ io fn test05_start(chan[int] ch) {
io fn test05() {
let port[int] po = port();
let chan[int] ch = chan(po);
spawn thread test05_start(ch);
auto task5 = spawn thread test05_start(ch);
let int value <- po;
value <- po;
value <- po;
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/task-life-0.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fn main() -> () {
spawn child("Hello");
auto child_task = spawn child("Hello");
}

fn child(str s) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/threads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fn main() {
let int i = 10;
while (i > 0) {
spawn thread "child" child(i);
auto child_task = spawn thread "child" child(i);
i = i - 1;
}
log "main thread exiting";
Expand Down