aboutsummaryrefslogtreecommitdiff
path: root/src/test/bench
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/bench
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/bench')
-rw-r--r--src/test/bench/shootout/fannkuchredux.rs4
-rw-r--r--src/test/bench/shootout/nbody.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/bench/shootout/fannkuchredux.rs b/src/test/bench/shootout/fannkuchredux.rs
index 65f6bdb2..57a7d426 100644
--- a/src/test/bench/shootout/fannkuchredux.rs
+++ b/src/test/bench/shootout/fannkuchredux.rs
@@ -6,7 +6,7 @@ use std;
import std._int;
import std._vec;
-impure fn fannkuch(int n) -> int {
+fn fannkuch(int n) -> int {
fn perm1init(uint i) -> mutable int {
ret i as int;
@@ -94,7 +94,7 @@ impure fn fannkuch(int n) -> int {
ret flips;
}
-impure fn main(vec[str] args) {
+fn main(vec[str] args) {
auto n = 7;
log #fmt("Pfannkuchen(%d) = %d", n, fannkuch(n));
} \ No newline at end of file
diff --git a/src/test/bench/shootout/nbody.rs b/src/test/bench/shootout/nbody.rs
index f6f14f97..f2041c0e 100644
--- a/src/test/bench/shootout/nbody.rs
+++ b/src/test/bench/shootout/nbody.rs
@@ -218,7 +218,7 @@ mod Body {
);
}
- impure fn offsetMomentum(&Body.props props,
+ fn offsetMomentum(&Body.props props,
float px,
float py,
float pz) -> () {