about summary refs log tree commit diff
path: root/compiler/rustc_serialize/src/json.rs
diff options
context:
space:
mode:
authorAman Arora <me@aman-arora.com>2020-11-26 00:07:41 -0500
committerAman Arora <me@aman-arora.com>2020-12-09 22:34:15 -0500
commite2efdd156bf6915d6831821ff8a263e43e493e32 (patch)
treed892ad6c043569b9c2d9111f9093cfa6011c4751 /compiler/rustc_serialize/src/json.rs
parent6a1d0699a484ee875c87394f70cb37f09acadd88 (diff)
downloadrust-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