1. 13 3月, 2016 11 次提交
    • R
      Define AVX blend intrinsics · e1489caf
      Ruud van Asseldonk 提交于
      This defines the `_mm256_blendv_pd` and `_mm256_blendv_ps` intrinsics.
      The `_mm256_blend_pd` and `_mm256_blend_ps` intrinsics are not available
      as LLVM intrinsics. In Clang they are implemented using the
      shufflevector builtin.
      
      Intel reference: https://software.intel.com/en-us/node/524070.
      e1489caf
    • R
      Define AVX comparison intrinsics · ddfe9b6d
      Ruud van Asseldonk 提交于
      This defines `_mm256_cmp_pd` and `_mm256_cmp_ps`.
      
      Intel reference: https://software.intel.com/en-us/node/524075.
      ddfe9b6d
    • B
      Auto merge of #32182 - bluss:string-from-is-str-owned, r=alexcrichton · db6dd8e4
      bors 提交于
      Call str::to_owned in String::from and uninline it
      
      Call str::to_owned in String::from and uninline it
      
      These methods were already effectively equal, but now one calls
      the other, and neither is marked inline.
      String::from does not need to be inlined, it can be without it just like
      str::to_owned and String::clone are.
      
      Fixes #32163
      db6dd8e4
    • U
      Call str::to_owned in String::from and uninline it · ec39a76a
      Ulrik Sverdrup 提交于
      String::from does not need to be inlined, it can be without it just like
      str::to_owned and String::clone are.
      ec39a76a
    • B
      Auto merge of #32141 - jseyfried:fix_resolution_in_lexical_scopes, r=nikomatsakis · 06074ac0
      bors 提交于
      Fix name resolution in lexical scopes
      
      Currently, `resolve_item_in_lexical_scope` does not check the "ribs" (type parameters and local variables). This can allow items that should be shadowed by type parameters to be named.
      
      For example,
      ```rust
      struct T { i: i32 }
      fn f<T>() {
          let t = T { i: 0 }; // This use of `T` resolves to the struct, not the type parameter
      }
      
      mod Foo {
          pub fn f() {}
      }
      fn g<Foo>() {
          Foo::f(); // This use of `Foo` resolves to the module, not the type parameter
      }
      ```
      
      This PR changes `resolve_item_in_lexical_scope` so that it fails when the item is shadowed by a rib (fixes #32120).
      This is a [breaking-change], but it looks unlikely to cause breakage in practice.
      
      r? @nikomatsakis
      06074ac0
    • B
      Auto merge of #32217 - alexcrichton:fix-make-dist, r=brson · 3e05371c
      bors 提交于
      mk: Fix `make dist`
      
      With the movement of the erro-index-generator and rustbook, need to update the
      rules in `make dist`.
      3e05371c
    • B
      Auto merge of #32140 - ruud-v-a:avx-intrinsics, r=alexcrichton · 531b928e
      bors 提交于
      Add AVX broadcast and conversion intrinsics
      
      This adds the following intrinsics:
      
       * `_mm256_broadcast_pd`
       * `_mm256_broadcast_ps`
       * `_mm256_cvtepi32_pd`
       * `_mm256_cvtepi32_ps`
       * `_mm256_cvtpd_epi32`
       * `_mm256_cvtpd_ps`
       * `_mm256_cvtps_epi32`
       * `_mm256_cvtps_pd`
       * `_mm256_cvttpd_epi32`
       * `_mm256_cvttps_epi32`
      
      The "avx" codegen feature must be enabled to use these.
      531b928e
    • B
      Auto merge of #32112 - alexcrichton:fix-issues, r=aturon · a2c56de7
      bors 提交于
      std: Fix tracking issues and clean deprecated APIs
      
      This PR fixes up a number of discrepancies found with tracking issues (some closed, some needed new ones, etc), and also cleans out all pre-1.8 deprecated APIs. The big beast here was dealing with `std::dynamic_lib`, and via many applications of a large hammer it's now out of the standard library.
      a2c56de7
    • A
      std: Clean out deprecated APIs · b53764c7
      Alex Crichton 提交于
      Removes all unstable and deprecated APIs prior to the 1.8 release. All APIs that
      are deprecated in the 1.8 release are sticking around for the rest of this
      cycle.
      
      Some notable changes are:
      
      * The `dynamic_lib` module was moved into `rustc_back` as the compiler still
        relies on a few bits and pieces.
      * The `DebugTuple` formatter now special-cases an empty struct name with only
        one field to append a trailing comma.
      b53764c7
    • A
      mk: Fix `make dist` · f6c594b1
      Alex Crichton 提交于
      With the movement of the erro-index-generator and rustbook, need to update the
      rules in `make dist`.
      f6c594b1
    • B
      Auto merge of #32193 - eddyb:stage1-is-useful-mkay, r=eddyb · 8788ffc6
      bors 提交于
      Statically link run-pass/command-before-exec so it passes not just whenever we happen to bootstrap perfectly.
      8788ffc6
  2. 12 3月, 2016 29 次提交