Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Upgrade to rustc 1.0.0-nightly (fed12499e 2015-03-03) (built 2015-03-04) #69

Merged
merged 3 commits into from
Mar 4, 2015

Conversation

SimonSapin
Copy link
Contributor

There is one failure left in cargo test because of rust-random/rand#21

The previous code only detected overflow to exactly zero (`u64::MAX + 1`).

Tested on `multirust override nightly-2015-03-01`
(before rust-lang/rust#22532)
Used checked arithmetic rather than checking for overflow after the fact.

Another option is to keep checking after the fact and use wrapping arithmetic.
…ex_escape

The overflow was introduced accidentally in 49d4958 and happened to cancel out.
@rust-highfive
Copy link

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Contributor

I personally like this approach, thanks!

alexcrichton added a commit that referenced this pull request Mar 4, 2015
Upgrade to rustc 1.0.0-nightly (fed12499e 2015-03-03) (built 2015-03-04)
@alexcrichton alexcrichton merged commit 6a28a88 into rust-lang-deprecated:master Mar 4, 2015
@SimonSapin SimonSapin deleted the overflow branch March 6, 2015 06:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants