aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/preempt.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-04-19 13:35:49 -0700
committerGraydon Hoare <[email protected]>2011-04-19 13:35:49 -0700
commitd2bd07dcb02783063375b6c8532fceaf9fa9d50f (patch)
treea253b5eadb140d14bc99d1456e316ce1e210a6be /src/test/run-pass/preempt.rs
parentrustc: Allow glue to be emitted even for scalar types; this is necessary to s... (diff)
downloadrust-d2bd07dcb02783063375b6c8532fceaf9fa9d50f.tar.xz
rust-d2bd07dcb02783063375b6c8532fceaf9fa9d50f.zip
Remove effect system from src.
Diffstat (limited to 'src/test/run-pass/preempt.rs')
-rw-r--r--src/test/run-pass/preempt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/preempt.rs b/src/test/run-pass/preempt.rs
index 42d6229d..cbbe1a0a 100644
--- a/src/test/run-pass/preempt.rs
+++ b/src/test/run-pass/preempt.rs
@@ -1,7 +1,7 @@
// xfail-stage0
// This checks that preemption works.
-impure fn starve_main(chan[int] alive) {
+fn starve_main(chan[int] alive) {
log "signalling main";
alive <| 1;
log "starving main";
@@ -11,7 +11,7 @@ impure fn starve_main(chan[int] alive) {
}
}
-impure fn main() {
+fn main() {
let port[int] alive = port();
log "main started";
let task s = spawn starve_main(chan(alive));