1. 07 9月, 2018 9 次提交
  2. 06 9月, 2018 9 次提交
    • B
      Auto merge of #53707 - eddyb:phantom-waffles, r=oli-obk · 35a5541f
      bors 提交于
      rustc_typeck: turn `where Type:,` into a WF(Type) predicate, instead of ignoring it.
      
      Fixes #53696, assuming crater doesn't catch anyone using this syntax already.
      
      Allowing an empty list of bounds in the grammar was done for the benefit of macro authors, most of which would *probably* be using it for bounds on type parameters, which are always WF.
      
      r? @nikomatsakis cc @petrochenkov
      35a5541f
    • B
      Auto merge of #53721 - arielb1:exhaustively-unpun, r=nikomatsakis · 20ca0256
      bors 提交于
      fix `is_non_exhaustive` confusion between structs and enums
      
      Structs and enums can both be non-exhaustive, with a very different
      meaning. This PR splits `is_non_exhaustive` to 2 separate functions - 1
      for structs, and another for enums, and fixes the places that got the
      usage confused.
      
      Fixes #53549.
      
      r? @EddyB
      20ca0256
    • B
      Auto merge of #53955 - alexcrichton:fix-dist-again, r=japaric · 27e5457f
      bors 提交于
      rustbuild: Tweak LLVM distribution layout
      
      This commit tweaks the layout of a few components that we distribute to
      hopefully fix across all platforms the recent issues with LLD being unable to
      find the LLVM shared object. In #53245 we switched to building LLVM as a dynamic
      library, which means that LLVM tools by default link to LLVM dynamically rather
      than statically. This in turn means that the tools, at runtime, need to find the
      LLVM shared library.
      
      LLVM's shared library is currently distributed as part of the rustc component.
      This library is located, however, at `$sysroot/lib`. The LLVM tools we ship are
      in two locations:
      
      * LLD is shipped at `$sysroot/lib/rustlib/$host/bin/rust-lld`
      * Other LLVM tools are shipped at `$sysroot/bin`
      
      Each LLVM tool has an embedded rpath directive indicating where it will search
      for dynamic libraries. This currently points to `../lib` and is presumably
      inserted by LLVM's build system. Unfortunately, though, this directive is only
      correct for the LLVM tools at `$sysroot/bin`, not LLD!
      
      This commit is targeted at fixing this situation by making two changes:
      
      * LLVM tools other than LLD are moved in the distribution to
        `$sysroot/lib/rustlib/$host/bin`. This moves them next to LLD and should
        position them for...
      * The LLVM shared object is moved to `$sysroot/lib/rustlib/$host/lib`
      
      Together this means that all tools should natively be able to find the shared
      object and the shared object should be installed all the time for the various
      tools. Overall this should...
      
      Closes #53813
      27e5457f
    • B
      Auto merge of #52994 - varkor:trim_direction, r=alexcrichton · 8b7f164e
      bors 提交于
      Add trim_start, trim_end etc.; deprecate trim_left, trim_right, etc. in future
      
      Adds the methods: `trim_start`, `trim_end`, `trim_start_matches` and `trim_end_matches`.
      Deprecates `trim_left`, `trim_right`, `trim_left_matches` and `trim_right_matches` starting from Rust 1.33.0, three versions from when they'll initially be marked as being deprecated, using the future deprecation from https://github.com/rust-lang/rust/issues/30785 and https://github.com/rust-lang/rust/pull/51681.
      
      Fixes https://github.com/rust-lang/rust/issues/30459.
      8b7f164e
    • B
      Auto merge of #53962 - michaelwoerister:close-thinlto-file-descriptors, r=alexcrichton · 6e0f1cc1
      bors 提交于
      ThinLTO: Don't keep files open after mmaping them.
      
      Fixes #53947.
      
      r? @alexcrichton
      6e0f1cc1
    • B
      Auto merge of #53951 - tromey:restore-lldb-build, r=alexcrichton · 780b0c7b
      bors 提交于
      Restore lldb build
      
      commit 6c101422 ("Update LLVM submodule") disabled the lldb build.
      This patch updates the lldb and clang submodules to once again build
      against the LLVM that is included in the Rust tree, and reverts the
      .travis.yml changes from that patch.
      780b0c7b
    • T
      Pick up State.h include path change · 7bb30ff0
      Tom Tromey 提交于
      7bb30ff0
    • A
      rustbuild: Tweak LLVM distribution layout · bce09b6e
      Alex Crichton 提交于
      This commit tweaks the layout of a few components that we distribute to
      hopefully fix across all platforms the recent issues with LLD being unable to
      find the LLVM shared object. In #53245 we switched to building LLVM as a dynamic
      library, which means that LLVM tools by default link to LLVM dynamically rather
      than statically. This in turn means that the tools, at runtime, need to find the
      LLVM shared library.
      
      LLVM's shared library is currently distributed as part of the rustc component.
      This library is located, however, at `$sysroot/lib`. The LLVM tools we ship are
      in two locations:
      
      * LLD is shipped at `$sysroot/lib/rustlib/$host/bin/rust-lld`
      * Other LLVM tools are shipped at `$sysroot/bin`
      
      Each LLVM tool has an embedded rpath directive indicating where it will search
      for dynamic libraries. This currently points to `../lib` and is presumably
      inserted by LLVM's build system. Unfortunately, though, this directive is only
      correct for the LLVM tools at `$sysroot/bin`, not LLD!
      
      This commit is targeted at fixing this situation by making two changes:
      
      * LLVM tools other than LLD are moved in the distribution to
        `$sysroot/lib/rustlib/$host/bin`. This moves them next to LLD and should
        position them for...
      * The LLVM shared object is moved to `$sysroot/lib/rustlib/$host/lib`
      
      Together this means that all tools should natively be able to find the shared
      object and the shared object should be installed all the time for the various
      tools. Overall this should...
      
      Closes #53813
      bce09b6e
    • A
      Update the compiler-builtins submodule · ace7191d
      Alex Crichton 提交于
      Fixes a mistake in using C shims to...
      
      Closes #53916
      ace7191d
  3. 05 9月, 2018 12 次提交
  4. 04 9月, 2018 10 次提交