We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ec0b1 commit d39ca85Copy full SHA for d39ca85
src/test/bench/shootout/fannkuchredux.rs
@@ -7,14 +7,14 @@ import std.Vec;
7
8
fn fannkuch(int n) -> int {
9
10
- fn perm1init(uint i) -> mutable int {
+ fn perm1init(uint i) -> int {
11
ret i as int;
12
}
13
auto perm1init_ = perm1init; // Rustboot workaround
14
15
- auto perm = Vec.init_elt[mutable int](0, n as uint);
16
- auto perm1 = Vec.init_fn[mutable int](perm1init_, n as uint);
17
- auto count = Vec.init_elt[mutable int](0, n as uint);
+ auto perm = Vec.init_elt(0, n as uint);
+ auto perm1 = Vec.init_fn(perm1init_, n as uint);
+ auto count = Vec.init_elt(0, n as uint);
18
19
auto f = 0;
20
auto i = 0;
0 commit comments