diff options
| author | bors <bors@rust-lang.org> | 2015-03-08 08:34:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-03-08 08:34:56 +0000 |
| commit | b2f09c1165db805ed00707257dd94bb309faf0fe (patch) | |
| tree | 969725212806a202df1089f8dbb9b1a7a7ed9d99 /src/libstd | |
| parent | d30609ffd782c941f38d62caaed8beb6fde965db (diff) | |
| parent | 946a3963f3cf3f6f4334e89793af77a4da163dc7 (diff) | |
| download | rust-b2f09c1165db805ed00707257dd94bb309faf0fe.tar.gz rust-b2f09c1165db805ed00707257dd94bb309faf0fe.zip | |
Auto merge of #23127 - alexcrichton:bench-wrapping, r=brson
Right now the rust upgrade in cargo is blocked on fixing this overflow. If a
this benchmark is run it will trigger an overflow error today:
#[bench]
fn foo(b: &mut test::Bencher) {}
This commit adds a check on each iteration of the loop that the maximum
multiplier (10) doesn't overflow, and if it does just return the results so far.
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions
