Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer checking of function bodies #125

Merged
merged 2 commits into from Sep 8, 2022
Merged

Defer checking of function bodies #125

merged 2 commits into from Sep 8, 2022

Conversation

charliermarsh
Copy link
Member

This PR resolves #119 by deferring the traversal of function bodies until after traversing the rest of the module. This required introducing a lifetime parameter to Visitor, and tracking a bunch of additional state on the Checker. The borrow checker did not like this change, took many iterations...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

F821 Undefined name when definition is after usage
1 participant