1. 30 7月, 2017 5 次提交
  2. 29 7月, 2017 12 次提交
    • B
      Auto merge of #43534 - alexcrichton:cargo-target-runner, r=Mark-Simulacrum · ad36f8fe
      bors 提交于
      rustbuild: Use Cargo's "target runner"
      
      This commit leverages a relatively new feature in Cargo to execute
      cross-compiled tests, the `target.$target.runner` configuration. We configure it
      through environment variables in rustbuild and this avoids the need for us to
      locate and run tests after-the-fact, instead relying on Cargo to do all that
      execution for us.
      ad36f8fe
    • G
      changing E0623 error message · cb93cc62
      gaurikholkar 提交于
      cb93cc62
    • B
      Auto merge of #43530 - alexcrichton:update-freebsd-compilers, r=Mark-Simulacrum,cuviper · 91aff577
      bors 提交于
      rustbuild: Update cross-compilers for FreeBSD
      
      When working through bugs for the LLVM 5.0 upgrade it looks like the FreeBSD
      cross compilers we're currently using are unable to build LLVM, failing with
      references to the function `std::to_string` claiming it doesn't exist. I don't
      actually know what this function is, but assuming that it was added in a more
      recent version of a C++ standard I've updated the gcc versions for the
      toolchains we're using. This made the error go away!
      91aff577
    • B
      Auto merge of #43527 - alexcrichton:different-llvm-cross, r=Mark-Simulacrum · 8d0ad26b
      bors 提交于
      rustbuild: Tweak how we cross-compile LLVM
      
      In preparation for upgrading to LLVM 5.0 it looks like we need to tweak how we
      cross compile LLVM slightly. It's using `CMAKE_SYSTEM_NAME` to infer whether to
      build libFuzzer which only works on some platforms, and then once we configure
      that it needs to apparently reach into the host build area to try to compile
      `llvm-config` as well. Once these are both configured, though, it looks like we
      can successfully cross-compile LLVM.
      8d0ad26b
    • B
      Auto merge of #43492 - lu-zero:master, r=alexcrichton · 6dd8744a
      bors 提交于
      More Altivec Intrinsics
      6dd8744a
    • B
      Auto merge of #43518 - cuviper:aapcs_vfp, r=eddyb · 42a09c01
      bors 提交于
      Support homogeneous aggregates for hard-float ARM
      
      Hard-float ARM targets use the AAPCS-VFP ABI, which passes and returns
      homogeneous float/vector aggregates in the VFP registers.
      
      Fixes #43329.
      
      r? @EddyB
      42a09c01
    • A
      rustbuild: Use Cargo's "target runner" · 8e7849e7
      Alex Crichton 提交于
      This commit leverages a relatively new feature in Cargo to execute
      cross-compiled tests, the `target.$target.runner` configuration. We configure it
      through environment variables in rustbuild and this avoids the need for us to
      locate and run tests after-the-fact, instead relying on Cargo to do all that
      execution for us.
      8e7849e7
    • A
      rustbuild: Update cross-compilers for FreeBSD · 122fd188
      Alex Crichton 提交于
      When working through bugs for the LLVM 5.0 upgrade it looks like the FreeBSD
      cross compilers we're currently using are unable to build LLVM, failing with
      references to the function `std::to_string` claiming it doesn't exist. I don't
      actually know what this function is, but assuming that it was added in a more
      recent version of a C++ standard I've updated the gcc versions for the
      toolchains we're using. This made the error go away!
      122fd188
    • A
      rustbuild: Tweak how we cross-compile LLVM · 069a1b3c
      Alex Crichton 提交于
      In preparation for upgrading to LLVM 5.0 it looks like we need to tweak how we
      cross compile LLVM slightly. It's using `CMAKE_SYSTEM_NAME` to infer whether to
      build libFuzzer which only works on some platforms, and then once we configure
      that it needs to apparently reach into the host build area to try to compile
      `llvm-config` as well. Once these are both configured, though, it looks like we
      can successfully cross-compile LLVM.
      069a1b3c
    • B
      Auto merge of #43230 - alexcrichton:more-tokenstream, r=nrc,jseyfried · 126321e2
      bors 提交于
      Implement tokenization for some items in proc_macro
      
      This PR is a partial implementation of https://github.com/rust-lang/rust/issues/43081 targeted towards preserving span information in attribute-like procedural macros. Currently all attribute-like macros will lose span information with the input token stream if it's iterated over due to the inability of the compiler to losslessly tokenize an AST node. This PR takes a strategy of saving off a list of tokens in particular AST nodes to return a lossless tokenized version. There's a few limitations with this PR, however, so the old fallback remains in place.
      126321e2
    • A
      syntax: Capture a `TokenStream` when parsing items · 4886ec86
      Alex Crichton 提交于
      This is then later used by `proc_macro` to generate a new
      `proc_macro::TokenTree` which preserves span information. Unfortunately this
      isn't a bullet-proof approach as it doesn't handle the case when there's still
      other attributes on the item, especially inner attributes.
      
      Despite this the intention here is to solve the primary use case for procedural
      attributes, attached to functions as outer attributes, likely bare. In this
      situation we should be able to now yield a lossless stream of tokens to preserve
      span information.
      4886ec86
    • B
      Auto merge of #43298 - gaurikholkar:lifetime_errors, r=estebank · eba9d7f0
      bors 提交于
      improve case with both anonymous lifetime parameters #43269
      
      This is a fix to #43269.
      
      Sample output message-
      
      ```
      
      error[E0623]: lifetime mismatch
        --> $DIR/ex3-both-anon-regions.rs:12:12
         |
      11 | fn foo(x: &mut Vec<&u8>, y: &u8) {
         |                    ---      --- these references must have the same lifetime
      12 |     x.push(y);
         |            ^ data from `y` flows into `x` here
      
      error: aborting due to 2 previous errors
      
      ```
      r? @nikomatsakis
      eba9d7f0
  3. 28 7月, 2017 23 次提交