about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorAman Arora <me@aman-arora.com>2020-11-17 01:52:14 -0500
committerAman Arora <me@aman-arora.com>2020-11-17 17:49:42 -0500
commit7faebe57b27f3005b5da8666bf02660b21fef4e2 (patch)
tree54d288e05869115de61664585a14de3b970cbf8d /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentb5c37e86ff1782923e3abfbf5491dd383fcf827d (diff)
downloadrust-7faebe57b27f3005b5da8666bf02660b21fef4e2.tar.gz
rust-7faebe57b27f3005b5da8666bf02660b21fef4e2.zip
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`).
- Allows us to 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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions