rust/src/test
bors 8dbc369921 Auto merge of #25441 - alexcrichton:debug-panic-neg, r=aturon
Debug overflow checks for arithmetic negation landed in #24500, at which time
the `abs` method on signed integers was changed to using `wrapping_neg` to
ensure that the function never panicked. This implied that `abs` of `INT_MIN`
would return `INT_MIN`, another negative value. When this change was back-ported
to beta, however, in #24708, the `wrapping_neg` function had not yet been
backported, so the implementation was changed in #24785 to `!self + 1`. This
change had the unintended side effect of enabling debug overflow checks for the
`abs` function. Consequently, the current state of affairs is that the beta
branch checks for overflow in debug mode for `abs` and the nightly branch does
not.

This commit alters the behavior of nightly to have `abs` always check for
overflow in debug mode. This change is more consistent with the way the standard
library treats overflow as well, and it is also not a breaking change as it's
what the beta branch currently does (albeit if by accident).

cc #25378
2015-05-19 01:08:54 +00:00
..
auxiliary Allow #[derive()] to generate unsafe methods 2015-05-17 14:56:13 +05:30
bench Auto merge of #24920 - alexcrichton:duration, r=aturon 2015-05-14 18:18:39 +00:00
codegen Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
compile-fail Add error explanations for E0072, E0073, E0121, E0178, E0371, E0372. 2015-05-17 15:53:12 -05:00
compile-fail-fulldeps Auto merge of #25387 - eddyb:syn-file-loader, r=nikomatsakis 2015-05-17 00:05:34 +00:00
debuginfo Update tests to not use old ~ syntax 2015-05-03 20:16:03 -04:00
parse-fail Clarify the error message for malformed extern crate statements 2015-05-16 22:35:59 +12:00
pretty Correct pretty-printing of type Foo<T> where T: Bound = ...; 2015-05-04 10:21:39 +02:00
run-fail Fix the tests broken by replacing task with thread 2015-05-09 04:04:08 +09:00
run-fail-fulldeps syntax: refactor (Span)Handler and ParseSess constructors to be methods. 2015-05-14 01:47:56 +03:00
run-make save-analysis: fix a bracket counting bug 2015-05-14 22:05:52 +12:00
run-pass Auto merge of #25441 - alexcrichton:debug-panic-neg, r=aturon 2015-05-19 01:08:54 +00:00
run-pass-fulldeps Auto merge of #25387 - eddyb:syn-file-loader, r=nikomatsakis 2015-05-17 00:05:34 +00:00
run-pass-valgrind test: Fix fallout in run-pass tests 2015-04-14 10:14:19 -07:00
rustdoc rustdoc: Add Associated Constants section 2015-05-09 12:20:45 +02:00