Skip to content

Comments

Defer checking of function bodies#125

Merged
charliermarsh merged 2 commits intomainfrom
charlie/lifetime
Sep 8, 2022
Merged

Defer checking of function bodies#125
charliermarsh merged 2 commits intomainfrom
charlie/lifetime

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