Compute upvars lazily.

It can be computed from `tcx` on demand, instead of computing it eagerly
and passing it around.
This commit is contained in:
Nicholas Nethercote
2024-10-29 15:01:35 +11:00
parent 952c6d5c96
commit 2709dc8a13
3 changed files with 3 additions and 7 deletions

View File

@@ -217,7 +217,6 @@ fn do_mir_borrowck<'tcx>(
&mut flow_inits,
&move_data,
&borrow_set,
tcx.closure_captures(def),
consumer_options,
);