1. 22 7月, 2015 10 次提交
    • B
      Auto merge of #27176 - alexcrichton:fix-stock-llvm, r=brson · 25281b12
      bors 提交于
      This commit moves the IR files in the distribution, rust_try.ll,
      rust_try_msvc_64.ll, and rust_try_msvc_32.ll into the compiler from the main
      distribution. There's a few reasons for this change:
      
      * LLVM changes its IR syntax from time to time, so it's very difficult to
        have these files build across many LLVM versions simultaneously. We'll likely
        want to retain this ability for quite some time into the future.
      * The implementation of these files is closely tied to the compiler and runtime
        itself, so it makes sense to fold it into a location which can do more
        platform-specific checks for various implementation details (such as MSVC 32
        vs 64-bit).
      * This removes LLVM as a build-time dependency of the standard library. This may
        end up becoming very useful if we move towards building the standard library
        with Cargo.
      
      In the immediate future, however, this commit should restore compatibility with
      LLVM 3.5 and 3.6.
      25281b12
    • B
      Auto merge of #27185 - pnkfelix:test-cyclic-collections, r=alexcrichton · 90904204
      bors 提交于
      This test attempts to exercise cyclic structure in much of `std::collections`
      
      (as much as is possible; e.g. things like `EnumSet` and `BitVec` do not really support carrying references at all, so trying to represent cyclic structure within them dooes not really make sense.)
      
      This work should land before we make future revisions to `dropck`; that is, I am attempting to catch potential regressions to cases where we supported cyclic structure circa Rust 1.2.
      90904204
    • B
      Auto merge of #27172 - alexcrichton:snapshots, r=brson · d33cab1b
      bors 提交于
      Enables bootstrapping a 32-bit MSVC host compiler!
      
      Closes #26602
      d33cab1b
    • A
      trans: Move rust_try into the compiler · c35b2bd2
      Alex Crichton 提交于
      This commit moves the IR files in the distribution, rust_try.ll,
      rust_try_msvc_64.ll, and rust_try_msvc_32.ll into the compiler from the main
      distribution. There's a few reasons for this change:
      
      * LLVM changes its IR syntax from time to time, so it's very difficult to
        have these files build across many LLVM versions simultaneously. We'll likely
        want to retain this ability for quite some time into the future.
      * The implementation of these files is closely tied to the compiler and runtime
        itself, so it makes sense to fold it into a location which can do more
        platform-specific checks for various implementation details (such as MSVC 32
        vs 64-bit).
      * This removes LLVM as a build-time dependency of the standard library. This may
        end up becoming very useful if we move towards building the standard library
        with Cargo.
      
      In the immediate future, however, this commit should restore compatibility with
      LLVM 3.5 and 3.6.
      c35b2bd2
    • B
      Auto merge of #27093 - Manishearth:closure-label-shadow, r=pnkfelix · 39a780dc
      bors 提交于
      Fixes #25343
      
      To be honest I'm not sure if this is the right fix (I haven't yet fully understood the code),
      but it seems to work. I'll look closer at the code when I have some time, in the meantime if this
      is the right fix it would be nice to get verification from someone who does understand the code 😄
      
      r? @pnkfelix
      39a780dc
    • B
      Auto merge of #27073 - alexcrichton:less-proc-fs, r=brson · ee2d3bc8
      bors 提交于
      This can fail on linux for various reasons, such as the /proc filesystem not
      being mounted. There are already many cases where we can't set up stack guards,
      so just don't worry about this case and communicate that no guard was enabled.
      
      I've confirmed that this allows the compiler to run in a chroot without /proc
      mounted.
      
      Closes #22642
      ee2d3bc8
    • B
      Auto merge of #26856 - steveklabnik:gh26475, r=alexcrichton · 21dfd24c
      bors 提交于
      Fixes #26475 
      
      I'm not sure this is enough, really, but I'm not totally clear on what specific information would be valuable here. In the original issue, the Java page was pretty decent, but now I can't think of a different way to word it, and copying their prose is of course not acceptable.
      
      thoughts @alexcrichton @aturon @aidanhs ?
      21dfd24c
    • S
      Expand a bit on thread::park spurious wakeups · cbdc52e9
      Steve Klabnik 提交于
      Fixes #26475
      cbdc52e9
    • A
      std: Be resilient to failure in pthread_getattr_np · d68b152c
      Alex Crichton 提交于
      This can fail on linux for various reasons, such as the /proc filesystem not
      being mounted. There are already many cases where we can't set up stack guards,
      so just don't worry about this case and communicate that no guard was enabled.
      
      I've confirmed that this allows the compiler to run in a chroot without /proc
      mounted.
      
      Closes #22642
      d68b152c
    • B
      Auto merge of #26935 - oli-obk:const_val_description, r=eddyb · 5dbddfb2
      bors 提交于
      r? @EddyB 
      
      Adding new variants is annoying as one needs to modify all these places that **don't** handle the new variant.
      
      I chose not to use `Display` as I don't think it is appropriate.
      5dbddfb2
  2. 21 7月, 2015 30 次提交