-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Adjust invalid assertion about [[AsyncEvaluationOrder]] #3613
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. It might be slightly more revealing to say is ~unset~
or ~done~
here to help understand the cases directly instead of via negation.
|
(that's only up to the editors) |
And I'm not sure yet whether @syg will want to review this. |
Ping @syg if you want to review this :) |
Silly mistake by me in #3353, where I translated "[[AsyncEvaluation]] is false" to "[[AsyncEvaluationOrder]] is unset".
That's not true even in trivial cases. If you have module A that depends on module B, and B is async:
This is different from the error case, where we can indeed assert that [[AsyncEvaluationOrder]] is unset. That's because in the error case we perform the assertion on what's in the
stack
, but we push modules to it only after checking that they are not already evaluated.