Skip to content

fix: show deprecated syntax warning in more places - #15813

Merged
TwoFX merged 3 commits into
leanprover:masterfrom
TwoFX:warning-coverage
Oct 20, 2026
Merged

TwoFX merged 3 commits into
leanprover:masterfrom
TwoFX:warning-coverage

Conversation

@TwoFX

@TwoFX TwoFX commented Oct 20, 2026

Copy link
Copy Markdown
Member

This PR makes the "deprecated syntax" linter report in places it previously missed.

This was largely due to elaborators doing their own macro expansion, like the binop%/binrel% elaborators, do notation, etc. The necessary check is now exposed as a reusable function Lean.Elab.Term.expandMacroReportingDeprecated?, and the docstring of expandMacroImpl? mentions this.

@TwoFX
TwoFX requested a review from kim-em as a code owner October 20, 2026 12:59
@TwoFX TwoFX added the changelog-language Language features and metaprograms label Oct 20, 2026
@TwoFX
TwoFX enabled auto-merge October 20, 2026 13:00
@TwoFX
TwoFX added this pull request to the merge queue Oct 20, 2026
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Oct 20, 2026
Merged via the queue into leanprover:master with commit a6fb767 Oct 20, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-language Language features and metaprograms toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant