do move_outs
computation lazilly?
#53394
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-performant
Working towards the "performance is good" goal
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Milestone
If I am not mistaken, the
move_outs
dataflow computation is only used for error reporting. However, we do the computation unconditionally here:rust/src/librustc_mir/borrow_check/mod.rs
Lines 188 to 196 in d5a448b
Perhaps it would be more efficient to wait and do it only if we find an error? Or, maybe even better, not do it at all but instead -- when we have an error -- just do a backwards DFS or something? i.e., just do it for the specific error path?
cc @pnkfelix
The text was updated successfully, but these errors were encountered: