Skip to content

Provide more robustness for some lowering differences#144

Merged
Keno merged 2 commits intomasterfrom
kf/lowerrobust
Feb 21, 2026
Merged

Provide more robustness for some lowering differences#144
Keno merged 2 commits intomasterfrom
kf/lowerrobust

Conversation

@Keno
Copy link
Member

@Keno Keno commented Feb 21, 2026

This allows some variants for struct lowering, in particular using the declare_ intrinsic rather than = and allowing an assignment around typebody!.
This was developed with JuliaLang/julia#60569. This may or may not be needed in the final version of that PR, but it's good for this code to be less brittle there regardless since those are reasonable lowerings.

Keno and others added 2 commits February 21, 2026 02:41
This allows some variants for struct lowering, in particular using
the `declare_` intrinsic rather than `=` and allowing an assignment
around `typebody!`.
This was developed with JuliaLang/julia#60569.
This may or may not be needed in the final version of that PR, but
it's good for this code to be less brittle there regardless since
those are reasonable lowerings.
Core.declare_global only exists on Julia nightly (the typegroup
branch). Without this guard, accessing Core.declare_global throws
UndefVarError on Julia 1.10/1.12/release, matching the existing
pattern used by is_declare_const.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Keno added a commit to timholy/Revise.jl that referenced this pull request Feb 21, 2026
@Keno Keno merged commit 83a9910 into master Feb 21, 2026
9 checks passed
Keno added a commit to timholy/Revise.jl that referenced this pull request Feb 21, 2026
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.

1 participant