1. 01 7月, 2017 2 次提交
  2. 30 6月, 2017 7 次提交
    • B
      Auto merge of #42807 - arielb1:consistent-coercion, r=eddyb · e72580cf
      bors 提交于
      Coerce fields to the expected field type
      
      Fully fixes #31260.
      
      This needs a crater run. I was supposed to do this last month but it slipped. Let's get this done.
      e72580cf
    • B
      Auto merge of #42782 - cuviper:iterator_for_each, r=alexcrichton · 919c4a67
      bors 提交于
      Add `Iterator::for_each`
      
      This works like a `for` loop in functional style, applying a closure to
      every item in the `Iterator`.  It doesn't allow `break`/`continue` like
      a `for` loop, nor any other control flow outside the closure, but it may
      be a more legible style for tying up the end of a long iterator chain.
      
      This was tried before in #14911, but nobody made the case for using it
      with longer iterators.  There was also `Iterator::advance` at that time
      which was more capable than `for_each`, but that no longer exists.
      
      The `itertools` crate has `Itertools::foreach` with the same behavior,
      but thankfully the names won't collide.  The `rayon` crate also has a
      `ParallelIterator::for_each` where simple `for` loops aren't possible.
      
      > I really wish we had `for_each` on seq iterators. Having to use a
      > dummy operation is annoying.  - [@nikomatsakis][1]
      
      [1]: https://github.com/nikomatsakis/rayon/pull/367#issuecomment-308455185
      919c4a67
    • B
      Auto merge of #42930 - arielb1:llvm-next, r=alexcrichton · 4c5b4371
      bors 提交于
      Rebase LLVM on top of LLVM 4.0.1
      
      Fixes #42893.
      
      Please don't backport this to beta as-is - I'm not sure I want rust-lang/llvm#84 to sneak to beta before it gets sufficient testing.
      
      r? @alexcrichton
      4c5b4371
    • B
      Auto merge of #42924 - pnkfelix:mir-dataflow, r=arielb1 · a4c68c62
      bors 提交于
      Shift mir-dataflow from `rustc_borrowck` to `rustc_mir` crate.
      
      Shift mir-dataflow from `rustc_borrowck` to `rustc_mir` crate.
      
      Turn `elaborate_drops` and `rustc_peek` implementations into MIR passes that also live in `rustc_mir` crate.
      
      Rewire things so `rustc_driver` uses the `ElaborateDrops` from `rustc_mir` crate.
      
      (This PR is another baby step for mir-borrowck; it is a piece of work that other people want to rebase their stuff on top of, namely developers who are doing other dataflow analyses on top of MIR.)
      
      I have deliberately architected this PR in an attempt to minimize the number of actual code changes. The majority of the diff should be little more than changes to mod and use declarations, as well as a few visibility promotions to pub(crate) when a declaration was moved downward in the module hierarchy.
      
      (I have no problem with other PR's that move declarations around to try to clean this up; my goal was to ensure that the diff here was as small as possible, to make the review nearly trivial.)
      a4c68c62
    • B
      Auto merge of #42902 - petrochenkov:keydcrate, r=jseyfried · 5eef7c79
      bors 提交于
      Make `$crate` a keyword
      
      Fixes https://github.com/rust-lang/rust/issues/42898
      
      r? @jseyfried or @nrc
      5eef7c79
    • B
      Auto merge of #42900 - sfackler:jemalloc-tweak, r=alexcrichton · 3bfc18a9
      bors 提交于
      Stop disabling fill in jemalloc
      
      The underlying bug has been fixed for over 2 years!
      
      r? @alexcrichton
      3bfc18a9
    • A
      mem_categorization: handle type-based paths in variant patterns · 1ea6813a
      Ariel Ben-Yehuda 提交于
      These can't be used in correct programs, but must be handled in order to
      prevent ICEs.
      
      Fixes #42880.
      1ea6813a
  3. 29 6月, 2017 31 次提交