Uh oh!
There was an error while loading. Please reload this page.
fix silent overflows on Step impls - #36365
Conversation
| #[test] | ||
| #[should_panic] | ||
| fn test_range_overflow_unsigned() { |
There was a problem hiding this comment.
Won't these tests fail if compiled in release mode?
There was a problem hiding this comment.
Ahh, that's a good point. Then these have to be run-fail with the overflow checking forced on (see src/test/run-fail/*overflow*.rs).
eddyb
commented
Sep 13, 2016
@bors r+ Thanks! |
bors
commented
Sep 13, 2016
📌 Commit 065bf4b has been approved by |
bors
commented
Sep 14, 2016
⌛ Testing commit 065bf4b with merge 0154682... |
bors
commented
Sep 14, 2016
💔 Test failed - auto-win-msvc-64-opt-rustbuild |
alexcrichton
commented
Sep 14, 2016
@bors: retry On Tue, Sep 13, 2016 at 7:18 PM, bors notifications@github.com wrote:
|
bors
commented
Sep 15, 2016
⌛ Testing commit 065bf4b with merge 16ca4ec... |
bors
commented
Sep 15, 2016
💔 Test failed - auto-win-gnu-32-opt-rustbuild |
bluss
commented
Sep 24, 2016
Test doesn't pass and needs update |
alexcrichton
commented
Sep 26, 2016
Could this also use the strategy in another PR to use |
matthew-piziak
commented
Oct 8, 2016
Sorry for the inactivity. I've been traveling for a few weeks. @alexcrichton Can you elaborate, or link the PR if you remember which one it was? |
| #[inline] | ||
| #[rustc_inherit_overflow_checks] | ||
| fn add_one(&self) -> Self { | ||
| *self + 1 |
There was a problem hiding this comment.
Add::add(*self, 1) is what @alexcrichton meant. Similar situation on the rest.
MIN and MAX were breaking the build for me. min_value and max_value do not.
alexcrichton
commented
Oct 11, 2016
Looks like travis failures may be legit? |
matthew-piziak
commented
Oct 23, 2016
I'm missing something here. My tests are failing on explicit panic instead of overflowing as expected. |
alexcrichton
commented
Oct 25, 2016
The current failures look like: I think these tests should be |
alexcrichton
commented
Oct 31, 2016
Looks like travis may unfortunately still be failing? |
steveklabnik
commented
Nov 7, 2016
Looks like travis is passing now, r? @eddyb |
eddyb
commented
Nov 7, 2016
@bors r+ |
bors
commented
Nov 7, 2016
📌 Commit 8f19d5c has been approved by |
Part of #36110
r? @eddyb