rust/src/librustc/middle
bors 80bf31dd51 Auto merge of #23549 - aturon:stab-num, r=alexcrichton
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 14:50:46 +00:00
..
cfg don't use Result::ok just to be able to use unwrap/unwrap_or 2015-03-20 08:19:13 +01:00
infer Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
traits Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
astconv_util.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
astencode.rs Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
check_const.rs Address arith-overflow and error-handling in const_eval.rs. 2015-03-03 12:10:57 +01:00
check_loop.rs Remove the explicit closure kind syntax from the parser and AST; 2015-02-03 11:56:16 -05:00
check_match.rs Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
check_rvalues.rs core: split into fmt::Show and fmt::String 2015-01-06 14:49:42 -08:00
check_static_recursion.rs Implement <T>::method UFCS expression syntax. 2015-02-24 14:16:02 +02:00
const_eval.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
dataflow.rs rollup merge of #23741: alexcrichton/remove-int-uint 2015-03-27 10:10:05 -07:00
dead.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
def.rs rustc: combine partial_def_map and last_private_map into def_map. 2015-02-24 14:16:02 +02:00
dependency_format.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
effect.rs Fallout in stdlib, rustdoc, rustc, etc. For most maps, converted uses of 2015-03-23 16:55:45 -04:00
entry.rs Revert #22051 2015-02-11 19:28:02 +02:00
expr_use_visitor.rs Rollup merge of #23859 - pnkfelix:fsk-lesser-box, r=nikomatsakis 2015-03-31 09:04:38 +05:30
fast_reject.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
graph.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
intrinsicck.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
lang_items.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
liveness.rs Fallout in stdlib, rustdoc, rustc, etc. For most maps, converted uses of 2015-03-23 16:55:45 -04:00
mem_categorization.rs Rollup merge of #23859 - pnkfelix:fsk-lesser-box, r=nikomatsakis 2015-03-31 09:04:38 +05:30
pat_util.rs cleanup: Remove unused braces in use statements 2015-03-28 02:23:20 -07:00
privacy.rs rustc: combine partial_def_map and last_private_map into def_map. 2015-02-24 14:16:02 +02:00
reachable.rs Fallout in stdlib, rustdoc, rustc, etc. For most maps, converted uses of 2015-03-23 16:55:45 -04:00
recursion_limit.rs for x in xs.iter() -> for x in &xs 2015-02-02 13:40:18 -05:00
region.rs Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
resolve_lifetime.rs cleanup: Remove unused braces in use statements 2015-03-28 02:23:20 -07:00
stability.rs rollup merge of #23598: brson/gate 2015-03-23 15:13:15 -07:00
subst.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
ty.rs Auto merge of #23549 - aturon:stab-num, r=alexcrichton 2015-03-31 14:50:46 +00:00
ty_fold.rs Remove subtyping for object types and replace with an *upcast* coercion. 2015-03-17 08:34:25 -04:00
ty_walk.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
weak_lang_items.rs Replace all uses of &foo[] with &foo[..] en masse. 2015-02-18 17:36:03 -05:00