1. 04 4月, 2015 1 次提交
  2. 03 4月, 2015 1 次提交
  3. 02 4月, 2015 12 次提交
  4. 01 4月, 2015 14 次提交
  5. 31 3月, 2015 10 次提交
    • 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
    • C
      Indicate select! is code-like · 5872ae4a
      Corey Farwell 提交于
      5872ae4a
    • S
      Last docs for std::env · fe8a6604
      Steve Klabnik 提交于
      fe8a6604
    • C
      Update lib.rs · a78d3832
      Camille Roussel 提交于
      Removed duplicate words
      a78d3832
    • S
      convert: remove FromError, use From<E> instead · e17f4fc1
      Sean McArthur 提交于
      This removes the FromError trait, since it can now be expressed using
      the new convert::Into trait. All implementations of FromError<E> where
      changed to From<E>, and `try!` was changed to use From::from instead.
      
      Because this removes FromError, it is a breaking change, but fixing it
      simply requires changing the words `FromError` to `From`, and
      `from_error` to `from`.
      
      [breaking-change]
      e17f4fc1
    • 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
    • E
      replace deprecated as_slice() · df65f59f
      Emeliov Dmitrii 提交于
      df65f59f
    • A
      std: Standardize (input, output) param orderings · acd48a2b
      Alex Crichton 提交于
      This functions swaps the order of arguments to a few functions that previously
      took (output, input) parameters, but now take (input, output) parameters (in
      that order).
      
      The affected functions are:
      
      * ptr::copy
      * ptr::copy_nonoverlapping
      * slice::bytes::copy_memory
      * intrinsics::copy
      * intrinsics::copy_nonoverlapping
      
      Closes #22890
      [breaking-change]
      acd48a2b
    • R
      6e8693b2
    • B
      Only zero at most 64k at a time. We still use the doubling · 240734c3
      bcoopers 提交于
      reallocation strategy since extend() calls reserve() and/or
      push() for us.
      240734c3
  6. 30 3月, 2015 2 次提交