diff options
| author | Aman Arora <me@aman-arora.com> | 2020-11-26 00:07:41 -0500 |
|---|---|---|
| committer | Aman Arora <me@aman-arora.com> | 2020-12-09 22:34:15 -0500 |
| commit | e2efdd156bf6915d6831821ff8a263e43e493e32 (patch) | |
| tree | d892ad6c043569b9c2d9111f9093cfa6011c4751 /compiler/rustc_serialize/src/json.rs | |
| parent | 6a1d0699a484ee875c87394f70cb37f09acadd88 (diff) | |
| download | rust-e2efdd156bf6915d6831821ff8a263e43e493e32.tar.gz rust-e2efdd156bf6915d6831821ff8a263e43e493e32.zip | |
Use precise places when lowering Closures in THIR
- Closures now use closure_min_captures to figure out captured paths - Build upvar_mutbls using closure_min_captures - Change logic in limit_capture_mutability to differentiate b/w capturing parent's local variable or capturing a variable that is captured by the parent (in case of nested closure) using PlaceBase. Co-authored-by: Roxane Fruytier <roxane.fruytier@hotmail.com>
Diffstat (limited to 'compiler/rustc_serialize/src/json.rs')
0 files changed, 0 insertions, 0 deletions
