Skip to content

Commit 0e882f2

Browse files
committed
Un-broke benchmarks
1 parent 6b37b5b commit 0e882f2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/test/bench/core-map.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn timed(label: &str, f: &fn()) {
2727
io::println(fmt!(" %s: %f", label, end - start));
2828
}
2929

30-
fn ascending<M: Map<uint, uint>>(map: &mut M, n_keys: uint) {
30+
fn ascending<M: MutableMap<uint, uint>>(map: &mut M, n_keys: uint) {
3131
io::println(" Ascending integers:");
3232

3333
do timed("insert") {
@@ -49,7 +49,7 @@ fn ascending<M: Map<uint, uint>>(map: &mut M, n_keys: uint) {
4949
}
5050
}
5151

52-
fn descending<M: Map<uint, uint>>(map: &mut M, n_keys: uint) {
52+
fn descending<M: MutableMap<uint, uint>>(map: &mut M, n_keys: uint) {
5353
io::println(" Descending integers:");
5454

5555
do timed("insert") {
@@ -71,7 +71,7 @@ fn descending<M: Map<uint, uint>>(map: &mut M, n_keys: uint) {
7171
}
7272
}
7373

74-
fn vector<M: Map<uint, uint>>(map: &mut M, n_keys: uint, dist: &[uint]) {
74+
fn vector<M: MutableMap<uint, uint>>(map: &mut M, n_keys: uint, dist: &[uint]) {
7575

7676
do timed("insert") {
7777
for uint::range(0, n_keys) |i| {

src/test/bench/core-set.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn timed(result: &mut float, op: &fn()) {
3636
}
3737

3838
impl Results {
39-
pub fn bench_int<T:Set<uint>,
39+
pub fn bench_int<T:MutableSet<uint>,
4040
R: rand::Rng>(
4141
&mut self,
4242
rng: &mut R,
@@ -79,7 +79,7 @@ impl Results {
7979
}
8080
}
8181

82-
pub fn bench_str<T:Set<~str>,
82+
pub fn bench_str<T:MutableSet<~str>,
8383
R:rand::Rng>(
8484
&mut self,
8585
rng: &mut R,

0 commit comments

Comments
 (0)