rust/src/libsyntax
Aaron Turon 232424d995 Stabilize std::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]
2015-03-31 07:50:25 -07:00
..
ast_map cleanup: Remove unused braces in use statements 2015-03-28 02:23:20 -07:00
diagnostics Change span_help calls to fileline_help where appropriate 2015-03-03 15:18:33 +02:00
ext Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
parse Stabilize std::num 2015-03-31 07:50:25 -07:00
print Auto merge of #23359 - erickt:quote, r=pnkfelix 2015-03-26 18:43:56 +00:00
util cleanup: Remove unused braces in use statements 2015-03-28 02:23:20 -07:00
abi.rs Use consts instead of statics where appropriate 2015-03-02 17:11:51 +01:00
ast_util.rs rustc: Remove support for int/uint 2015-03-25 16:39:00 -07:00
ast.rs Stabilize std::num 2015-03-31 07:50:25 -07:00
attr.rs rustc: Remove support for int/uint 2015-03-25 16:39:00 -07:00
codemap.rs Add trivial cast lints. 2015-03-25 10:03:57 +13:00
config.rs syntax: gather common fields of impl & trait items into their respective types. 2015-03-11 23:39:16 +02:00
diagnostic.rs Fallout of std::old_io deprecation 2015-03-13 10:00:28 -07:00
feature_gate.rs Port of pcwalton removal of #[unsafe_destructor] check. 2015-03-29 00:19:19 +01:00
fold.rs Switch drop-flag to u8 to allow special tags to instrument state. 2015-03-26 14:08:54 +01:00
lib.rs rollup merge of #23794: brson/slicegate 2015-03-27 16:09:52 -07:00
owned_slice.rs Switched to Box::new in many places. 2015-03-03 21:05:55 +01:00
ptr.rs Switch drop-flag to u8 to allow special tags to instrument state. 2015-03-26 14:08:54 +01:00
show_span.rs std: Stabilize FromStr and parse 2015-01-30 08:52:44 -08:00
std_inject.rs Unquote all crate names without underscores 2015-03-27 10:58:12 -07:00
test.rs syntax: Remove support for #[should_fail] 2015-03-26 13:53:52 -07:00
visit.rs syntax: move MethMac to MacImplItem and combine {Provided,Required}Method into MethodTraitItem. 2015-03-11 23:39:16 +02:00