rust/src
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
..
compiler-rt@58ab642c30 Updated compiler-rt 2015-01-09 18:38:30 +02:00
compiletest Test fixes and rebase conflicts, round 2 2015-03-27 13:43:42 -07:00
doc Rollup merge of #23869 - tshepang:more-complete-builder-pattern-example, r=alexcrichton 2015-03-31 09:04:39 +05:30
driver Unquote all crate names without underscores 2015-03-27 10:58:12 -07:00
etc Fix some typos 2015-03-28 18:09:51 +03:00
grammar Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
jemalloc@e24a1a025a bumping again to get the updated configure 2015-03-05 12:38:35 +05:30
liballoc rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
libarena Add trivial cast lints. 2015-03-25 10:03:57 +13:00
libbacktrace Strip trailing whitespace 2015-03-15 11:25:43 -07:00
libcollections rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
libcollectionstest Fallout where types must be specified. 2015-03-30 05:02:20 -04:00
libcore rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
libcoretest std: Standardize (input, output) param orderings 2015-03-30 14:08:40 -07:00
libflate Require feature attributes, and add them where necessary 2015-03-23 14:40:26 -07:00
libfmt_macros fix for new attributes failing. issue #22964 2015-03-05 11:53:51 -05:00
libgetopts Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
libgraphviz Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
liblibc libc: Don't use unstable apis 2015-03-28 10:49:45 -07:00
liblog Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
librand rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
librbml rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
librustc rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
librustc_back rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
librustc_bitflags Add #![feature] attributes to doctests 2015-03-23 14:40:26 -07:00
librustc_borrowck Rollup merge of #23859 - pnkfelix:fsk-lesser-box, r=nikomatsakis 2015-03-31 09:04:38 +05:30
librustc_driver Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
librustc_lint rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
librustc_llvm rollup merge of #23741: alexcrichton/remove-int-uint 2015-03-27 10:10:05 -07:00
librustc_privacy Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
librustc_resolve Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
librustc_trans rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
librustc_typeck rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
librustdoc Rollup merge of #23846 - rayglover:patch-rustdoc-stderr, r=alexcrichton 2015-03-31 09:04:37 +05:30
libserialize Stabilize std::num 2015-03-31 07:50:25 -07:00
libstd rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
libsyntax rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
libterm Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
libtest Stabilize std::num 2015-03-31 07:50:25 -07:00
libunicode Stabilize std::num 2015-03-31 07:50:25 -07:00
llvm@bff6907697 updating llvm submodule to include bitrig support 2015-03-05 12:38:34 +05:30
rt Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
rust-installer@49cc7f6fef Update rust-installer. Fixes --help and interop with NixOS 2015-03-26 16:09:46 -07:00
rustbook Add trivial cast lints. 2015-03-25 10:03:57 +13:00
rustllvm Drop support for LLVM < 3.5 and fix compile errors with 3.5 2015-03-14 13:14:04 +01:00
test rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00
snapshots.txt Register new snapshots 2015-03-26 09:57:05 -07:00