-
Notifications
You must be signed in to change notification settings - Fork 1
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
Small tweak for Julia 1.12 world age change #128
Conversation
Julia 1.12 will clean up when implicit world age increments happen. In particular, there will no longer be implicit increments within the same statement at toplevel. However, we are likely retaining implicit increments before each statement within @testset. This PR makes a small rearrangements to be compatible with this change. See JuliaLang/julia#56509.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #128 +/- ##
=======================================
Coverage 67.35% 67.35%
=======================================
Files 21 21
Lines 729 729
=======================================
Hits 491 491
Misses 238 238 ☔ View full report in Codecov by Sentry. |
Hey @Keno, thanks for pointing that out. Sorry for the naive questions, but does that only affect HerbSearch.jl/src/program_iterator.jl Line 74 in b70e247
and I am not sure what the difference to the fixed @testset s is.
|
It's not specific to
The At toplevel:
Within begin/end at top level:
but
Which is why despite being inside a begin/end block, just making it separate statements is sufficient for getting the implicit increment. You can also always get an explicit increment with That said, tests passed with just the changes in this PR. You are correct that if you want to observe the return of the eval inside the |
Thanks @Keno for making all of these PRs related to the change—much appreciated! |
Julia 1.12 will clean up when implicit world age increments happen. In particular, there will no longer be implicit increments within the same statement at toplevel. However, we are likely retaining implicit increments before each statement within @testset. This PR makes a small rearrangements to be compatible with this change. See JuliaLang/julia#56509.