1. 05 4月, 2015 1 次提交
  2. 03 4月, 2015 5 次提交
  3. 02 4月, 2015 9 次提交
  4. 01 4月, 2015 17 次提交
  5. 31 3月, 2015 8 次提交
    • A
      Stabilize std::num · 232424d9
      Aaron Turon 提交于
      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]
      232424d9
    • N
      8403b82d
    • N
      Combine `try` and `commit_if_ok` and make some details of inference · 4b0edb96
      Niko Matsakis 提交于
      context private.
      4b0edb96
    • H
      Lex binary and octal literals more eagerly. · 606f50c4
      Huon Wilson 提交于
      Previously 0b12 was considered two tokens, 0b1 and 2, as 2 isn't a valid
      base 2 digit. This patch changes that to collapse them into one (and
      makes `0b12` etc. an error: 2 isn't a valid base 2 digit).
      
      This may break some macro invocations of macros with `tt` (or syntax
      extensions) that rely on adjacent digits being separate tokens and hence
      is a
      
      [breaking-change]
      
      The fix is to separate the tokens, e.g. `0b12` -> `0b1 2`.
      
      cc https://github.com/rust-lang/rfcs/pull/879
      606f50c4
    • A
      std: Stabilize the rest of Any/BoxAny · f19e763e
      Alex Crichton 提交于
      This commit stabilizes the following APIs:
      
      * `TypeId::of` - now that it has an `Any` bound it's ready to be stable.
      * `Box<Any>::downcast` - now that an inherent impl on `Box<Any>` as well as
        `Box<Any+Send>` is allowed the `BoxAny` trait is removed in favor of these
        inherent methods.
      
      This is a breaking change due to the removal of the `BoxAny` trait, but
      consumers can simply remove imports to fix crates.
      
      [breaking-change]
      f19e763e
    • K
    • C
      lint: handle private traits better · 31a52852
      Corey Richardson 提交于
      Due to a long-standing conservative approach to trait exports, all traits are
      considered exported. However, the missing_docs lint uses the export map to
      determine if something is public and ought to have documentation. This commit
      modifies the lint to check if traits are private before emitting the warning.
      
      Closes #11592
      31a52852
    • E
      replace deprecated as_slice() · df65f59f
      Emeliov Dmitrii 提交于
      df65f59f