1. 08 1月, 2015 4 次提交
  2. 07 1月, 2015 8 次提交
  3. 06 1月, 2015 3 次提交
  4. 05 1月, 2015 2 次提交
  5. 04 1月, 2015 2 次提交
    • A
      Remove deprecated functionality · 7d8d06f8
      Alex Crichton 提交于
      This removes a large array of deprecated functionality, regardless of how
      recently it was deprecated. The purpose of this commit is to clean out the
      standard libraries and compiler for the upcoming alpha release.
      
      Some notable compiler changes were to enable warnings for all now-deprecated
      command line arguments (previously the deprecated versions were silently
      accepted) as well as removing deriving(Zero) entirely (the trait was removed).
      
      The distribution no longer contains the libtime or libregex_macros crates. Both
      of these have been deprecated for some time and are available externally.
      7d8d06f8
    • J
      sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rs · 351409a6
      Jorge Aparicio 提交于
      351409a6
  6. 03 1月, 2015 6 次提交
  7. 02 1月, 2015 2 次提交
    • A
      std: Enforce Unicode in fmt::Writer · e423fcf0
      Alex Crichton 提交于
      This commit is an implementation of [RFC 526][rfc] which is a change to alter
      the definition of the old `fmt::FormatWriter`. The new trait, renamed to
      `Writer`, now only exposes one method `write_str` in order to guarantee that all
      implementations of the formatting traits can only produce valid Unicode.
      
      [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0526-fmt-text-writer.md
      
      One of the primary improvements of this patch is the performance of the
      `.to_string()` method by avoiding an almost-always redundant UTF-8 check. This
      is a breaking change due to the renaming of the trait as well as the loss of the
      `write` method, but migration paths should be relatively easy:
      
      * All usage of `write` should move to `write_str`. If truly binary data was
        being written in an implementation of `Show`, then it will need to use a
        different trait or an altogether different code path.
      
      * All usage of `write!` should continue to work as-is with no modifications.
      
      * All usage of `Show` where implementations just delegate to another should
        continue to work as-is.
      
      [breaking-change]
      
      Closes #20352
      e423fcf0
    • N
      Fallout - change array syntax to use `;` · 7e2b9ea2
      Nick Cameron 提交于
      7e2b9ea2
  8. 31 12月, 2014 1 次提交
  9. 30 12月, 2014 3 次提交
    • N
      Fallout from mut slices · 3bf40568
      Nick Cameron 提交于
      3bf40568
    • A
      std: Second pass stabilization for `ptr` · 54452cdd
      Alex Crichton 提交于
      This commit performs a second pass for stabilization over the `std::ptr` module.
      The specific actions taken were:
      
      * The `RawPtr` trait was renamed to `PtrExt`
      * The `RawMutPtr` trait was renamed to `MutPtrExt`
      * The module name `ptr` is now stable.
      * These functions were all marked `#[stable]` with no modification:
        * `null`
        * `null_mut`
        * `swap`
        * `replace`
        * `read`
        * `write`
        * `PtrExt::is_null`
        * `PtrExt::offset`
      * These functions remain unstable:
        * `as_ref`, `as_mut` - the return value of an `Option` is not fully expressive
                               as null isn't the only bad value, and it's unclear
                               whether we want to commit to these functions at this
                               time. The reference/lifetime semantics as written are
                               also problematic in how they encourage arbitrary
                               lifetimes.
        * `zero_memory` - This function is currently not used at all in the
                          distribution, and in general it plays a broader role in the
                          "working with unsafe pointers" story. This story is not yet
                          fully developed, so at this time the function remains
                          unstable for now.
        * `read_and_zero` - This function remains unstable for largely the same
                            reasons as `zero_memory`.
      * These functions are now all deprecated:
        * `PtrExt::null` - call `ptr::null` or `ptr::null_mut` instead.
        * `PtrExt::to_uint` - use an `as` expression instead.
        * `PtrExt::is_not_null` - use `!p.is_null()` instead.
      54452cdd
    • A
      std: Stabilize the prelude module · c32d03f4
      Alex Crichton 提交于
      This commit is an implementation of [RFC 503][rfc] which is a stabilization
      story for the prelude. Most of the RFC was directly applied, removing reexports.
      Some reexports are kept around, however:
      
      * `range` remains until range syntax has landed to reduce churn.
      * `Path` and `GenericPath` remain until path reform lands. This is done to
        prevent many imports of `GenericPath` which will soon be removed.
      * All `io` traits remain until I/O reform lands so imports can be rewritten all
        at once to `std::io::prelude::*`.
      
      This is a breaking change because many prelude reexports have been removed, and
      the RFC can be consulted for the exact list of removed reexports, as well as to
      find the locations of where to import them.
      
      [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
      [breaking-change]
      
      Closes #20068
      c32d03f4
  10. 29 12月, 2014 1 次提交
  11. 28 12月, 2014 1 次提交
  12. 27 12月, 2014 1 次提交
  13. 22 12月, 2014 1 次提交
  14. 19 12月, 2014 2 次提交
    • J
      libstd: use `#[deriving(Copy)]` · a77e8a63
      Jorge Aparicio 提交于
      a77e8a63
    • A
      Revise std::thread API to join by default · a27fbac8
      Aaron Turon 提交于
      This commit is part of a series that introduces a `std::thread` API to
      replace `std::task`.
      
      In the new API, `spawn` returns a `JoinGuard`, which by default will
      join the spawned thread when dropped. It can also be used to join
      explicitly at any time, returning the thread's result. Alternatively,
      the spawned thread can be explicitly detached (so no join takes place).
      
      As part of this change, Rust processes now terminate when the main
      thread exits, even if other detached threads are still running, moving
      Rust closer to standard threading models. This new behavior may break code
      that was relying on the previously implicit join-all.
      
      In addition to the above, the new thread API also offers some built-in
      support for building blocking abstractions in user space; see the module
      doc for details.
      
      Closes #18000
      
      [breaking-change]
      a27fbac8
  15. 16 12月, 2014 1 次提交
    • A
      std: Second pass stabilization of `default` · 9021f61e
      Alex Crichton 提交于
      This commit performs a second pass stabilization of the `std::default` module.
      The module was already marked `#[stable]`, and the inheritance of `#[stable]`
      was removed since this attribute was applied. This commit adds the `#[stable]`
      attribute to the trait definition and one method name, along with all
      implementations found in the standard distribution.
      9021f61e
  16. 15 12月, 2014 2 次提交
    • N
      Remove all shadowed lifetimes. · 1718cd6e
      Niko Matsakis 提交于
      1718cd6e
    • A
      std: Collapse SlicePrelude traits · 7741516a
      Alex Crichton 提交于
      This commit collapses the various prelude traits for slices into just one trait:
      
      * SlicePrelude/SliceAllocPrelude => SliceExt
      * CloneSlicePrelude/CloneSliceAllocPrelude => CloneSliceExt
      * OrdSlicePrelude/OrdSliceAllocPrelude => OrdSliceExt
      * PartialEqSlicePrelude => PartialEqSliceExt
      7741516a