1. 09 3月, 2016 12 次提交
  2. 08 3月, 2016 14 次提交
    • B
      Auto merge of #32009 - alexcrichton:trim-fulldeps, r=brson · eabfc160
      bors 提交于
      mk: Distribute fewer TARGET_CRATES
      
      Right now everything in TARGET_CRATES is built by default for all non-fulldeps
      tests and is distributed by default for all target standard library packages.
      Currenly this includes a number of unstable crates which are rarely used such as
      `graphviz` and `rbml`>
      
      This commit trims down the set of `TARGET_CRATES`, moves a number of tests to
      `*-fulldeps` as a result, and trims down the dependencies of libtest so we can
      distribute fewer crates in the `rust-std` packages.
      eabfc160
    • B
      Auto merge of #31995 - alexcrichton:fix-make-clena-empty, r=brson · 8f0479b2
      bors 提交于
      rustbuild: Fix building from an empty directory
      
      A stray shutil.rmtree happened when it shouldn't have happened, causing the
      entire build to fail.
      8f0479b2
    • B
      Auto merge of #31957 - GuillaumeGomez:error_display, r=brson · 81e03236
      bors 提交于
      Add error file for E0152
      
      It completes #31818.
      
      However it is not complete yet:
       * test will need to be updated
       * the file name displayed is a bit too unclear.
      
      I'm not sure yet what's the "correct" file name to display. If anyone has an idea on this, it'd be very appreciated.
      
      r? @brson
      81e03236
    • B
      Auto merge of #31954 - japaric:rfc243, r=nikomatsakis · 3af60f83
      bors 提交于
      implement the `?` operator
      
      The `?` postfix operator is sugar equivalent to the try! macro, but is more amenable to chaining:
      `File::open("foo")?.metadata()?.is_dir()`.
      
      `?` is accepted on any *expression* that can return a `Result`, e.g. `x()?`, `y!()?`, `{z}?`,
      `(w)?`, etc. And binds more tightly than unary operators, e.g. `!x?` is parsed as `!(x?)`.
      
      cc #31436
      
      ---
      
      cc @aturon @EddyB
      3af60f83
    • B
      Auto merge of #31606 - Ms2ger:ClosureKind, r=eddyb · a9ffe67f
      bors 提交于
      Rename ClosureKind variants and stop re-exporting them.
      a9ffe67f
    • T
      Update a spelling inconsistency · dc829e2b
      Tang Chenglong 提交于
      L26: "zero cost" -> "zero-cost"
      dc829e2b
    • B
      Auto merge of #29734 - Ryman:whitespace_consistency, r=Aatch · 8b7c3f20
      bors 提交于
      libsyntax: be more accepting of whitespace in lexer
      
      Fixes #29590.
      
      Perhaps this may need more thorough testing?
      
      r? @Aatch
      8b7c3f20
    • J
      update error messages in parse-fail tests · 2de49324
      Jorge Aparicio 提交于
      2de49324
    • B
      Auto merge of #31986 - ashleysommer:emscripten_fixes, r=alexcrichton · 4352a855
      bors 提交于
      Fix building libstd on emscripten targets.
      
      The main cause of the problem is that libstd/os/mod.rs treats emscripten targets as an alias of linux targets, whereas liblibc treats emscripten targets as musl-compliant, so it gets a slightly different struct stat64 defined.
      This commit adds conditional compilation checks to use the correct timestamp format on fs metadata functions in the case of compiling to emscripten targets.
      
      This commit also depends needs https://github.com/ashleysommer/rust/commit/f1575cff2d631e977038fdba3fa3422ba5f8f2fe applied in order to successfully build libstd with emscripten target.
      4352a855
    • N
      reference.md: clarify the limitation of type alias on an enum · 790178f6
      NODA, Kai 提交于
      Cf. rust-lang/rust#26264
      Signed-off-by: NNODA, Kai <nodakai@gmail.com>
      790178f6
    • A
      mk: Distribute fewer TARGET_CRATES · 0d5cfd91
      Alex Crichton 提交于
      Right now everything in TARGET_CRATES is built by default for all non-fulldeps
      tests and is distributed by default for all target standard library packages.
      Currenly this includes a number of unstable crates which are rarely used such as
      `graphviz` and `rbml`>
      
      This commit trims down the set of `TARGET_CRATES`, moves a number of tests to
      `*-fulldeps` as a result, and trims down the dependencies of libtest so we can
      distribute fewer crates in the `rust-std` packages.
      0d5cfd91
    • U
      Clarify documentation for string slicing (Index impls) · 55671a02
      Ulrik Sverdrup 提交于
      - Mention the sugared syntax for the implementations, since it's not
        apparent from the docs that `Index<Range<usize>>` corresponds to
        `&self[a..b]`.
      - Be specific in that start <= end and end <= len
      55671a02
    • J
      implement the `?` operator · 210dd611
      Jorge Aparicio 提交于
      The `?` postfix operator is sugar equivalent to the try! macro, but is more amenable to chaining:
      `File::open("foo")?.metadata()?.is_dir()`.
      
      `?` is accepted on any *expression* that can return a `Result`, e.g. `x()?`, `y!()?`, `{z}?`,
      `(w)?`, etc. And binds more tightly than unary operators, e.g. `!x?` is parsed as `!(x?)`.
      
      cc #31436
      210dd611
    • T
      Fixed link · 150b1c92
      Tim Montague 提交于
      Changed "[vector]" to a link to the vector documentation.
      150b1c92
  3. 07 3月, 2016 14 次提交