test: Remove non-procedure uses of do from compiletest, libstd tests,

compile-fail tests, run-fail tests, and run-pass tests.
This commit is contained in:
Patrick Walton
2013-11-21 17:23:21 -08:00
parent 8ceb374ab7
commit f571e46ddb
128 changed files with 579 additions and 641 deletions

View File

@@ -3878,13 +3878,17 @@ mod bench {
#[bench]
fn concat(bh: &mut BenchHarness) {
let xss: &[~[uint]] = vec::from_fn(100, |i| range(0, i).collect());
bh.iter(|| xss.concat_vec());
bh.iter(|| {
let _ = xss.concat_vec();
});
}
#[bench]
fn connect(bh: &mut BenchHarness) {
let xss: &[~[uint]] = vec::from_fn(100, |i| range(0, i).collect());
bh.iter(|| xss.connect_vec(&0));
bh.iter(|| {
let _ = xss.connect_vec(&0);
});
}
#[bench]