Skip to content

feat: improve message of unusedVariables linter#13715

Draft
wkrozowski wants to merge 1 commit into
leanprover:masterfrom
wkrozowski:wojciech/unusedVarLinterMsg
Draft

feat: improve message of unusedVariables linter#13715
wkrozowski wants to merge 1 commit into
leanprover:masterfrom
wkrozowski:wojciech/unusedVarLinterMsg

Conversation

@wkrozowski
Copy link
Copy Markdown
Contributor

This PR improves the message of unusedVariables linter, by replacing potentially confusing "unused variable x" message with "Variable name x is not explicitly referenced. The binding can be removed (if unused) or named _ (if used implicitly)."

Related issue: #13269

@wkrozowski wkrozowski added changelog-language Language features and metaprograms lake-ci Run all Lake tests labels May 12, 2026
@github-actions github-actions Bot added toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN labels May 12, 2026
@leanprover-bot leanprover-bot added the builds-manual CI has verified that the Lean Language Reference builds against this PR label May 12, 2026
@leanprover-bot
Copy link
Copy Markdown
Collaborator

leanprover-bot commented May 12, 2026

Reference manual CI status:

@mathlib-lean-pr-testing mathlib-lean-pr-testing Bot added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label May 12, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan builds-manual CI has verified that the Lean Language Reference builds against this PR changelog-language Language features and metaprograms lake-ci Run all Lake tests mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN 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.

2 participants