Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Fix an overflow on empty benchmarks #23127

Merged
merged 1 commit into from
Mar 8, 2015

Commits on Mar 6, 2015

  1. test: Fix an overflow on empty benchmarks

    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.
    alexcrichton committed Mar 6, 2015
    Configuration menu
    Copy the full SHA
    946a396 View commit details
    Browse the repository at this point in the history