diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-11-19 16:26:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-19 16:26:39 +0100 |
| commit | 5c7d530b5ec520073f7388519f39033a7b342eef (patch) | |
| tree | 3f10fb9bc32c224aa589ff3984c41f6fecfb8a83 /compiler/rustc_llvm/llvm-wrapper | |
| parent | 62838c6b391768708ef260e27e82e9e05e11e046 (diff) | |
| parent | 9f70e782f7ee7c67c4ea693639c0e87b984d0234 (diff) | |
| download | rust-5c7d530b5ec520073f7388519f39033a7b342eef.tar.gz rust-5c7d530b5ec520073f7388519f39033a7b342eef.zip | |
Rollup merge of #79149 - sexxi-goose:upvar_ref, r=nikomatsakis
Move capture lowering from THIR to MIR This allows us to: - Handle precise Places captured by a closure directly in MIR. Handling captures in MIR is easier since we can rely on/ tweak PlaceBuilder to generate `mir::Place`s that resemble how we store captures (`hir::Place`). - Handle `let _ = x` case when feature `capture_disjoint_fields` is enabled directly in MIR. This is required to be done in MIR since patterns are desugared in MIR. Closes: rust-lang/project-rfc-2229#25 r? ```@nikomatsakis```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions
