diff options
| author | Aman Arora <me@aman-arora.com> | 2020-11-17 01:52:14 -0500 |
|---|---|---|
| committer | Aman Arora <me@aman-arora.com> | 2020-11-17 17:49:42 -0500 |
| commit | 7faebe57b27f3005b5da8666bf02660b21fef4e2 (patch) | |
| tree | 54d288e05869115de61664585a14de3b970cbf8d /compiler/rustc_mir/src/transform/coverage/debug.rs | |
| parent | b5c37e86ff1782923e3abfbf5491dd383fcf827d (diff) | |
| download | rust-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_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
