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

Adjust to upcoming world age change in Julia 1.12 #7

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

Keno
Copy link
Contributor

@Keno Keno commented Nov 20, 2024

Julia 1.12 will change where world age increments are being inserted implicitly. The expansion of @constinferred is relying on an implicit world age increment between eval and the subsequent evaluation, which may go away in 1.12. Add an explicit marker to force the increment to be retained here. This preserves existing behavior. It may be the case that an alternative world age mechanism (e.g. invokelatest) is more appropriate, but it's hard for me to evaluate without full context.

Julia 1.12 will change where world age increments are being inserted
implicitly. The expansion of `@constinferred` is relying on an implicit
world age increment between `eval` and the subsequent evaluation, which
may go away in 1.12. Add an explicit marker to force the increment to
be retained here. This preserves existing behavior. It may be the case
that an alternative world age mechanism (e.g. invokelatest) is more
appropriate, but it's hard for me to evaluate without full context.
@Jutho
Copy link
Owner

Jutho commented Nov 20, 2024

Thanks for this fix. The @constinferred macro is at the limits of my macro skills and compiler understanding, so I would probably not have been able to figure this out myself.

@Jutho Jutho merged commit 8e140be into Jutho:master Nov 20, 2024
15 checks passed
@Keno
Copy link
Contributor Author

Keno commented Nov 20, 2024

Could I get a version tagged with this PR? I'd like PkgEval to not complain about this package and its downstreams when I merge the upstream PR.

@Jutho
Copy link
Owner

Jutho commented Nov 20, 2024

Yes but I am not behind my computer right now. I will do so tonight or first thing tomorrow.

@Keno
Copy link
Contributor Author

Keno commented Nov 20, 2024

No rush

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.

2 participants