rust/src/libstd
Alex Crichton 5d0beb7d85 rollup merge of #23549: aturon/stab-num
This commit stabilizes the `std::num` module:

* The `Int` and `Float` traits are deprecated in favor of (1) the
  newly-added inherent methods and (2) the generic traits available in
  rust-lang/num.

* The `Zero` and `One` traits are reintroduced in `std::num`, which
  together with various other traits allow you to recover the most
  common forms of generic programming.

* The `FromStrRadix` trait, and associated free function, is deprecated
  in favor of inherent implementations.

* A wide range of methods and constants for both integers and floating
  point numbers are now `#[stable]`, having been adjusted for integer
  guidelines.

* `is_positive` and `is_negative` are renamed to `is_sign_positive` and
  `is_sign_negative`, in order to address #22985

* The `Wrapping` type is moved to `std::num` and stabilized;
  `WrappingOps` is deprecated in favor of inherent methods on the
  integer types, and direct implementation of operations on
  `Wrapping<X>` for each concrete integer type `X`.

Closes #22985
Closes #21069

[breaking-change]

r? @alexcrichton
2015-03-31 10:15:26 -07:00
..
collections std: Standardize (input, output) param orderings 2015-03-30 14:08:40 -07:00
ffi Remove IteratorExt 2015-03-28 13:53:45 -07:00
fs Fix some typos 2015-03-28 18:09:51 +03:00
io rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
net Stabilize std::num 2015-03-31 07:50:25 -07:00
num Stabilize std::num 2015-03-31 07:50:25 -07:00
old_io std: Standardize (input, output) param orderings 2015-03-30 14:08:40 -07:00
old_path Remove IteratorExt 2015-03-28 13:53:45 -07:00
prelude Stabilize std::num 2015-03-31 07:50:25 -07:00
rand Remove IteratorExt 2015-03-28 13:53:45 -07:00
rt Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
sync Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
sys rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
thread rollup merge of #23752: alexcrichton/remove-should-fail 2015-03-27 10:07:48 -07:00
time Stabilize std::num 2015-03-31 07:50:25 -07:00
array.rs rustdoc: Support for "array" primitive 2015-03-23 14:02:34 -07:00
ascii.rs Test fixes and rebase conflicts, round 3 2015-03-27 16:09:54 -07:00
bool.rs Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
dynamic_lib.rs Remove IteratorExt 2015-03-28 13:53:45 -07:00
env.rs Test fixes and rebase conflicts, round 3 2015-03-23 22:52:21 -07:00
lib.rs Fix massive performance issue in read_to_end 2015-03-28 22:32:08 -07:00
macros.rs std: Add a note about the print! macro and output buffering 2015-03-30 13:55:15 -07:00
os.rs Remove IteratorExt 2015-03-28 13:53:45 -07:00
panicking.rs Fallout of std::old_io deprecation 2015-03-13 10:00:28 -07:00
path.rs Revise use of conversion traits 2015-03-26 13:54:48 -07:00
process.rs syntax: Remove support for #[should_fail] 2015-03-26 13:53:52 -07:00
rtdeps.rs fixing trailing whitespace errors 2015-02-11 14:49:07 -08:00
thunk.rs Switched to Box::new in many places. 2015-03-03 21:05:55 +01:00
tuple.rs Remove integer suffixes where the types in compiled code are identical. 2015-03-05 12:38:33 +05:30
unit.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00