← Back to Pull requests

Remove some non-`Syntax` syntax versioning code #65070

Closed
unknown closed this pull request without merging on Nov 26, 2026 01:23 UTC
View on GitHub
unknown unknown commented on Nov 19, 2026 03:53 UTC
Author

The original implementation of this in #60018 was insane, but fortunately,
Syntax and JuliaLowering are strictly more insane, so we can remove some of
the old system today.

@VERSION

I'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 where
neither of those are known. However, if we really want, @VERSION should now
be implementable without the parser treating it as a keyword, since all Syntax
knows the information @VERSION needed a special case for.

This also lets us remove @VERSION's special macro signature and the special
expansion 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 (like
the 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 (macro in 1.14 and 1.15), but supporting it in
general 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

Diff: 202 lines (+151 / -51) across 2 files Reviewer: topolarity Review duration: 9929m
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
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 36.2% (MEDIUM) · Higher = larger blast radius
36.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.7% · Safe to merge
15.7%