Skip to content

Commit 381b445

Browse files
committed
Auto merge of #77274 - tmiasko:liveness-cnd, r=lcnr
Liveness refactoring continued * Move body_owner field from IrMaps to Liveness (the only user of the field). * Use upvars instead of FnKind to check for closures (avoids FnKind, will be useful when checking all bodies, not just fns). * Use visit_param to add variables corresponding to params. * Store upvars_mentioned inside Liveness struct. * Inline visitor implementation for IrMaps, avoiding unnecessary indirection. * Test interaction with automatically_derived attribute (not covered by any of existing tests). No functional changes intended.
2 parents 9b77a6a + 063d5e9 commit 381b445

File tree

3 files changed

+244
-218
lines changed

3 files changed

+244
-218
lines changed

0 commit comments

Comments
 (0)