Skip to content

Commit bcdc498

Browse files
huonwthestinger
authored andcommitted
---
yaml --- r: 65013 b: refs/heads/snap-stage3 c: 1992765 h: refs/heads/master i: 65011: 674bf9c v: v3
1 parent 7ffbf12 commit bcdc498

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: fbb7cd32c3be0c36ff50046325a6e958d5980393
4+
refs/heads/snap-stage3: 1992765dd3b689fa62764eba99ed0610654b070f
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/vec.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3595,4 +3595,17 @@ mod bench {
35953595
if sum == 0 {fail!()}
35963596
}
35973597
}
3598+
3599+
#[bench]
3600+
fn mut_iterator(bh: &mut BenchHarness) {
3601+
let mut v = vec::from_elem(100, 0);
3602+
3603+
do bh.iter {
3604+
let mut i = 0;
3605+
foreach x in v.mut_iter() {
3606+
*x = i;
3607+
i += 1;
3608+
}
3609+
}
3610+
}
35983611
}

0 commit comments

Comments
 (0)