Remove some non-`Syntax` syntax versioning code #65070
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 202 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.318
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #65070"
general
weight: 0.35
topolarity
The original implementation of this in #60018 was insane, but fortunately,
Syntaxand JuliaLowering are strictly more insane, so we can remove some ofthe old system today.
@VERSIONI've just removed the macro in this PR given that we can now retrieve the
edition of any module or piece of
Syntax, and I can't think of any case whereneither of those are known. However, if we really want,
@VERSIONshould nowbe implementable without the parser treating it as a keyword, since all
Syntaxknows the information
@VERSIONneeded a special case for.This also lets us remove
@VERSION's special macro signature and the specialexpansion code calling it.
Expr(:module)
I made the extra edition argument in the four-argument module form inoperative
in #64730 (it's now inherited from the parent module). I was thinking we could
replace it with the obvious equivalent and use the edition of the
Syntax(likethe argument, macros could change it), but I realized that (1) eval sees a
module expression too late to change the edition it parsed with and (2) I think
we would really regret supporting parsing in any edition, then marking the AST
with any other edition before expanding/lowering it. I expect to specifically
define forms where that's OK (
macroin 1.14 and 1.15), but supporting it ingeneral would mean every new thing out of parsing is valid in every old edition,
and every parse result from any old edition is supported in every new edition.
TODO
Requires https://github.com/JuliaDocs/Documenter.jl/pull/3019
Assisted-by: Claude Opus 5.5