1. 09 3月, 2016 13 次提交
  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 13 次提交
    • B
      Auto merge of #32081 - cmbrandenburg:spell_fix, r=apasel422 · 388ccda4
      bors 提交于
      388ccda4
    • B
      Auto merge of #32078 - japaric:rustbuild-i686-musl, r=alexcrichton · 2f34986e
      bors 提交于
      - make sure we copy the third party objects (crt*.o) to the target stage directory.
      - apply the x86_64-musl logic also to the i686-musl target.
      
      ---
      
      r? @alexcrichton
      2f34986e
    • B
      Auto merge of #31664 - nodakai:reference-negation, r=steveklabnik · e079afa0
      bors 提交于
      It would be great if someone could check my English.
      e079afa0
    • A
      Fix building libstd on on emscripten targets. · 660bbf4f
      ashleysommer 提交于
      Squashed 10 commits:
      1) 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.
      
      2) Update previous commit to comply with rust formatting standards.
      Removed tab characters, remove trailing whitespaces.
      
      3) Move emscripten changes into their own file under libstd/os/emscripten
      Put libstd/os/linux/fs back to the way it was.
      
      4) Cannot use stat.st_ctim on emscripten to get created time.
      
      5) Remove compile-time conditionals for target_env = musl, it looks like musl builds compile fine already.
      
      6) Undone some formatting changes that are no longer needed,
      Removed some more target_env="musl" compilation checks that I missed from my previous commit.
      
      7) upgrade to liblibc e19309c, it fixes the differences in the musl stat and stat64 definitions.
      
      8) Undo the compile-time checks to check for emscripten (or musl targets) in the FileAttr struct.
      No longer needed after updating liblibc to e19309c.
      
      9) Change the MetadataExt implementation of emscripten fs.rs module to match the changes in new liblibc.
      
      10) remove a stray return statement, should have been removed in the previous commit.
      660bbf4f
    • B
      Auto merge of #32051 - steveklabnik:gh9447, r=bluss · 79f914fd
      bors 提交于
      Fixes #9447
      79f914fd
    • B
      Auto merge of #32066 - ruud-v-a:fma, r=alexcrichton · 6d262db4
      bors 提交于
      This adds support for fused multiply-add and multiply-subtract vector intrinsics for 128 and 256-bit vectors of `f32` and `f64`. These correspond to the intrinsics [listed here](https://software.intel.com/en-us/node/523929) except for the `_ss` and `_sd` variants. The intrinsics added are:
      
       * `fmadd`
       * `fmaddsub`
       * `fmsub`
       * `fmsubadd`
       * `fnmadd`
       * `fnmsub`
      
      The “fma” target feature must be enabled by passing `-C target-feature=+fma` to rustc when using these, otherwise LLVM will complain.
      
      I verified locally that the `x86_mm256_fmadd_ps` and `x86_mm256_fmsub_ps` work.
      6d262db4
    • U
      book: Update syntax index with OpAssign traits · 63933375
      Ulrik Sverdrup 提交于
      63933375
    • B
      Auto merge of #32064 - bluss:str-slice-panic, r=alexcrichton · 6eb81a1f
      bors 提交于
      Fix panic on string slicing error to truncate the string
      
      The string may be arbitrarily long, but we want to limit the panic
      message to a reasonable length. Truncate the string if it is too long
      (simply to char boundary).
      
      Also add details to the start <= end message. I think it's ok to flesh
      out the code here, since it's in a cold function.
      
      Fixes #32063
      6eb81a1f
    • B
      Auto merge of #32061 - infinity0:master, r=alexcrichton · 998a6720
      bors 提交于
      Adding -Wno-error is more reliable and simple than trying to modify existing
      flags. We've been using this in Debian already for the past few releases.
      Making this change also encourages future maintainers towards "best practises".
      Also take the opportunity to use the same method at all places in the file.
      998a6720
    • B
      Auto merge of #32060 - inrustwetrust:patch-1, r=alexcrichton · 3340cb3d
      bors 提交于
      Using spaces in the install path causes the issue in #31293.
      3340cb3d
    • G
      Fix typos - mismatching parentheses in comments · 2f6f714d
      Gökhan Karabulut 提交于
      2f6f714d
    • N
      reference.md: clarify negation. · 559683cd
      NODA, Kai 提交于
      Signed-off-by: NNODA, Kai <nodakai@gmail.com>
      559683cd
    • J
      update the src/liblibc submodule · f164433a
      Jorge Aparicio 提交于
      f164433a