rust/src/libcore
Manish Goregaokar efb487b503 Rollup merge of #22980 - alexcrichton:debug-assertions, r=pnkfelix
This commit is an implementation of [RFC 563][rfc] which adds a new
`cfg(debug_assertions)` directive which is specially recognized and calculated
by the compiler. The flag is turned off at any optimization level greater than 1
and may also be explicitly controlled through the `-C debug-assertions`
flag.

[rfc]: https://github.com/rust-lang/rfcs/pull/563

The `debug_assert!` and `debug_assert_eq!` macros now respect this instead of
the `ndebug` variable and `ndebug` no longer holds any meaning to the standard
library.

Code which was previously relying on `not(ndebug)` to gate expensive code should
be updated to rely on `debug_assertions` instead.

Closes #22492
[breaking-change]
2015-03-06 08:58:30 +05:30
..
fmt Remove integer suffixes where the types in compiled code are identical. 2015-03-05 12:38:33 +05:30
hash Remove integer suffixes where the types in compiled code are identical. 2015-03-05 12:38:33 +05:30
num Add #[allow_internal_unstable] to track stability for macros better. 2015-03-06 00:18:28 +11:00
str Remove integer suffixes where the types in compiled code are identical. 2015-03-05 12:38:33 +05:30
any.rs Rename Show to Debug, String to Display 2015-02-08 20:00:30 +03:00
array.rs Rollup merge of #22320 - petrochenkov:eq, r=alexcrichton 2015-02-23 11:43:59 -08:00
atomic.rs Enable recursion for visit_ty in lint visitor 2015-03-02 15:35:48 -08:00
cell.rs Add negative impls for Sync 2015-02-22 02:14:24 +01:00
char.rs Remove integer suffixes where the types in compiled code are identical. 2015-03-05 12:38:33 +05:30
clone.rs core: Use int/isize in Clone boilerplate 2015-02-14 15:50:26 -08:00
cmp.rs Audit core::cmp for int/uint. 2015-02-18 14:39:06 +01:00
cmp_macros.rs Tweaks to equality comparisons for slices/arrays/vectors 2015-02-20 20:32:55 +03:00
default.rs Audit core::default for int/uint usage. 2015-02-18 14:41:13 +01:00
error.rs Rename std::path to std::old_path 2015-02-03 14:34:42 -08:00
finally.rs Audit integer types in finally. 2015-02-15 10:25:13 -05:00
intrinsics.rs Remove integer suffixes where the types in compiled code are identical. 2015-03-05 12:38:33 +05:30
iter.rs Remove integer suffixes where the types in compiled code are identical. 2015-03-05 12:38:33 +05:30
lib.rs Added OverflowingOps trait to core::num::wrapping. 2015-03-03 12:10:19 +01:00
macros.rs Rollup merge of #22980 - alexcrichton:debug-assertions, r=pnkfelix 2015-03-06 08:58:30 +05:30
marker.rs Change MarkerTrait to be invariant. This is a (small) loss of expressiveness, 2015-02-25 12:21:15 -05:00
mem.rs std: Stabilize some ptr functions 2015-02-24 14:22:33 -08:00
nonzero.rs Rewrite Unique<T> so that it is covariant in T, implies NonZero and ownership, 2015-02-18 10:25:12 -05:00
ops.rs std: Mark Index::Output as a stable associated type 2015-03-03 11:28:57 -08:00
option.rs Remove integer suffixes where the types in compiled code are identical. 2015-03-05 12:38:33 +05:30
panicking.rs register snapshot 880fb89 2015-02-27 01:48:49 +01:00
prelude.rs register snapshots 2015-02-02 13:38:32 -05:00
ptr.rs std: Stabilize some ptr functions 2015-02-24 14:22:33 -08:00
raw.rs Enable recursion for visit_ty in lint visitor 2015-03-02 15:35:48 -08:00
result.rs Rollup merge of #22817 - jmesmon:result-or-type, r=huonw 2015-02-27 22:07:03 +05:30
simd.rs s/Show/Debug/g 2015-01-29 07:49:02 -05:00
slice.rs Rollup merge of #22988 - dcrewi:slice-swap-inline, r=alexcrichton 2015-03-03 17:02:24 +05:30
tuple.rs Set up docs for missing core types 2015-02-09 22:26:33 -05:00
ty.rs markers -> marker 2015-01-07 12:10:31 +13:00