1. 15 11月, 2017 5 次提交
    • B
      Auto merge of #45944 - eddyb:provide, r=nikomatsakis · 3707db94
      bors 提交于
      rustc_driver: expose a way to override query providers in CompileController.
      
      This API has been a long-time coming and will probably become the main method for custom drivers (that is, binaries other than `rustc` itself that use `librustc_driver`) to adapt the compiler's behavior.
      3707db94
    • B
      Auto merge of #45922 - vramana:fix-45702, r=nikomatsakis · f93a4928
      bors 提交于
      Fix MIR borrowck EndRegion not found
      
      Fixes #45702
      
      - [x] Add Tests
      f93a4928
    • B
      Auto merge of #45913 - sinkuu:mir-inlining-closure, r=arielb1 · 8a985319
      bors 提交于
      Handle closures correctly in MIR inlining
      
      Fixes #45894.
      8a985319
    • B
      Auto merge of #45821 - djzin:unreachable-match-arms, r=nikomatsakis · ff0f5de3
      bors 提交于
      always add an unreachable branch on matches to give more info to llvm
      
      As part of https://github.com/djzin/rustc-optimization I discovered that some simple enum optimizations (src/unary/three_valued_enum.rs and src/unary/four_valued_enum.rs in the repo) are not applied - and the reason for this is that we erase the info that the discriminant of an enum is one of the options by putting the last one in an "otherwise" branch. This patch adds an extra branch so that LLVM can know what the possibilities are for the discriminant, which fixes the three- and four- valued cases.
      
      Note that for whatever reason, this doesn't fix the case of 2 variants (most notably `Option` and `Result` have 2 variants) - a pass re-ordering might fix this or we may wish to add "assume" annotations on discriminants to force it to optimize.
      ff0f5de3
    • B
      Auto merge of #45981 - GuillaumeGomez:rollup, r=GuillaumeGomez · dbeb5bf8
      bors 提交于
      Rollup of 7 pull requests
      
      - Successful merges: #45815, #45941, #45950, #45961, #45967, #45970, #45977
      - Failed merges:
      dbeb5bf8
  2. 14 11月, 2017 34 次提交
  3. 13 11月, 2017 1 次提交