1. 15 9月, 2013 30 次提交
  2. 14 9月, 2013 10 次提交
    • B
      auto merge of #9180 : blake2-ppc/rust/reduce-either, r=catamorphism · 1c26513e
      bors 提交于
      Work a bit towards #9157 "Remove Either". These instances don't need to use Either and are better expressed in other ways (removing allocations and simplifying types).
      1c26513e
    • B
      auto merge of #9178 : lkuper/rust/docs, r=catamorphism · 5d905f13
      bors 提交于
      5d905f13
    • H
      std::rt: Add a standalone sleep function. · f39ab75a
      Huon Wilson 提交于
      f39ab75a
    • B
      auto merge of #9174 : thestinger/rust/bot, r=catamorphism · 9792ec6d
      bors 提交于
      An expression such as `bottom == not_bottom` or `not_bottom == bottom`
      already compiled, but this fixes the case where both sides are `bottom`.
      9792ec6d
    • B
      auto merge of #9165 : klutzy/rust/newrt-file-fix, r=sanxiyn · 55b43fa2
      bors 提交于
      It was broken on win32 because of header inconsistency.
      55b43fa2
    • B
      auto merge of #9162 : alexcrichton/rust/issue-9123, r=catamorphism · 3d469c25
      bors 提交于
      Closes #9123
      3d469c25
    • B
      auto merge of #9160 : alexcrichton/rust/local-data-docs, r=huonw · f853f0b2
      bors 提交于
      Remove references to local_data::Key and only mention the macro for how to
      construct new keys into local data.
      f853f0b2
    • B
      auto merge of #9156 : sfackler/rust/buffered-fix, r=huonw · fbafb41f
      bors 提交于
      This is a workaround for #9155. Currently, any uses of BufferedStream
      outside of libstd ICE.
      fbafb41f
    • B
      auto merge of #9115 : erickt/rust/master, r=erickt · 2aa578ef
      bors 提交于
      This is a series of patches to modernize option and result. The highlights are:
      
      * rename `.unwrap_or_default(value)` and etc to `.unwrap_or(value)`
      * add `.unwrap_or_default()` that uses the `Default` trait
      * add `Default` implementations for vecs, HashMap, Option
      * add  `Option.and(T) -> Option<T>`, `Option.and_then(&fn() -> Option<T>) -> Option<T>`, `Option.or(T) -> Option<T>`, and `Option.or_else(&fn() -> Option<T>) -> Option<T>`
      * add `option::ToOption`, `option::IntoOption`, `option::AsOption`, `result::ToResult`, `result::IntoResult`, `result::AsResult`, `either::ToEither`, and `either::IntoEither`, `either::AsEither`
      * renamed `Option::chain*` and `Result::chain*` to `and_then` and `or_else` to avoid the eventual collision with `Iterator.chain`.
      * Added a bunch of impls of `Default`
      * Added a `#[deriving(Default)]` syntax extension
      * Removed impls of `Zero` for `Option<T>` and vecs. 
      2aa578ef
    • B
      auto merge of #9185 : alexcrichton/rust/less-changing-directories, r=huonw · 4ac10f8f
      bors 提交于
      While usage of change_dir_locked is synchronized against itself, it's not
      synchronized against other relative path usage, so I'm of the opinion that it
      just really doesn't help in running tests. In order to prevent the problems that
      have been cropping up, this completely removes the function.
      
      All existing tests (except one) using it have been moved to run-pass tests where
      they get their own process and don't need to be synchronized with anyone else.
      
      There is one now-ignored rustpkg test because when I moved it to a run-pass test
      apparently run-pass isn't set up to have 'extern mod rustc' (it ends up having
      linkage failures).
      4ac10f8f