Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: warnings when declarations and export aliases conflict #6269

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kmill
Copy link
Collaborator

@kmill kmill commented Dec 1, 2024

This PR adds warnings when a declaration is added that could conflict with a pre-existing export alias or vice versa. The warning can be disabled with set_option linter.aliasConflict false. The checking is not done when importing modules, so there could still be un-warned conflicts between aliases and declarations in diamond imports.

Closes #5258

This PR adds warnings when a declaration is added that could conflict with a pre-existing `export` alias or vice versa. The warning can be disabled with `set_option linter.aliasConflict false`. The checking is *not* done when importing modules, so there could still be un-warned conflicts between aliases and declarations in diamond imports.

Closes leanprover#5258
@kmill kmill added awaiting-review Waiting for someone to review the PR changelog-language Language features, tactics, and metaprograms labels Dec 1, 2024
@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 Dec 1, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Dec 1, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Dec 1, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Dec 1, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Dec 1, 2024
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Dec 1, 2024

Mathlib CI status (docs):

@leanprover-community-bot leanprover-community-bot added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label Dec 1, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Dec 1, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Dec 1, 2024
@Kha Kha added this pull request to the merge queue Dec 6, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review Waiting for someone to review the PR breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan changelog-language Language features, tactics, 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.

exported declarations may cause ambiguity without warning
2 participants