about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/run-pass/child-outlives-parent.rs4
-rw-r--r--src/test/run-pass/spawn-fn.rs8
-rw-r--r--src/test/run-pass/task-life-0.rs4
3 files changed, 8 insertions, 8 deletions
diff --git a/src/test/run-pass/child-outlives-parent.rs b/src/test/run-pass/child-outlives-parent.rs
index 12aec5b8ad8..c902809e447 100644
--- a/src/test/run-pass/child-outlives-parent.rs
+++ b/src/test/run-pass/child-outlives-parent.rs
@@ -3,6 +3,6 @@
 use std;
 import std::task;
 
-fn child2(s: str) { }
+fn child2(s: -istr) { }
 
-fn main() { let x = task::spawn(bind child2("hi")); }
+fn main() { let x = task::spawn(bind child2(~"hi")); }
diff --git a/src/test/run-pass/spawn-fn.rs b/src/test/run-pass/spawn-fn.rs
index fdaa6703c17..bfaba60bcd1 100644
--- a/src/test/run-pass/spawn-fn.rs
+++ b/src/test/run-pass/spawn-fn.rs
@@ -4,12 +4,12 @@ use std;
 import std::task::yield;
 import std::task;
 
-fn x(s: str, n: int) { log s; log n; }
+fn x(s: -istr, n: int) { log s; log n; }
 
 fn main() {
-    task::spawn(bind x("hello from first spawned fn", 65));
-    task::spawn(bind x("hello from second spawned fn", 66));
-    task::spawn(bind x("hello from third spawned fn", 67));
+    task::spawn(bind x(~"hello from first spawned fn", 65));
+    task::spawn(bind x(~"hello from second spawned fn", 66));
+    task::spawn(bind x(~"hello from third spawned fn", 67));
     let i: int = 30;
     while i > 0 { i = i - 1; log "parent sleeping"; yield(); }
 }
diff --git a/src/test/run-pass/task-life-0.rs b/src/test/run-pass/task-life-0.rs
index 1d40010d296..b8c78ecd12b 100644
--- a/src/test/run-pass/task-life-0.rs
+++ b/src/test/run-pass/task-life-0.rs
@@ -1,7 +1,7 @@
 use std;
 import std::task;
-fn main() { task::spawn(bind child("Hello")); }
+fn main() { task::spawn(bind child(~"Hello")); }
 
-fn child(s: str) {
+fn child(s: -str) {
 
 }