Skip to content

Conversation

tmiasko
Copy link
Contributor

@tmiasko tmiasko commented Sep 27, 2020

  • 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.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 27, 2020
@lcnr
Copy link
Contributor

lcnr commented Sep 28, 2020

I am extremely impressed ❤️

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 28, 2020

📌 Commit 063d5e9 has been approved by lcnr

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 28, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 28, 2020
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.
@bors
Copy link
Collaborator

bors commented Sep 29, 2020

⌛ Testing commit 063d5e9 with merge 381b445...

@bors
Copy link
Collaborator

bors commented Sep 29, 2020

☀️ Test successful - checks-actions, checks-azure
Approved by: lcnr
Pushing 381b445 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 29, 2020
@bors bors merged commit 381b445 into rust-lang:master Sep 29, 2020
@rustbot rustbot added this to the 1.48.0 milestone Sep 29, 2020
@tmiasko tmiasko deleted the liveness-cnd branch September 29, 2020 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants