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

perf: do not lint unused variables defined in tactics by default #5338

Merged
merged 14 commits into from
Oct 17, 2024

Conversation

Kha
Copy link
Member

@Kha Kha commented Sep 13, 2024

Should ensure we visit at most as many expr nodes as in the final expr instead of many possibly overlapping mvar assignments. This is likely the only way we can ensure acceptable performance in all cases.

src/Lean/Server/InfoUtils.lean Outdated Show resolved Hide resolved
@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 Sep 13, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

leanprover-community-mathlib4-bot commented Sep 13, 2024

Mathlib CI status (docs):

@Kha Kha changed the base branch from master to nightly-with-mathlib September 13, 2024 16:00
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Sep 18, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Sep 18, 2024
@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 Sep 18, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Sep 23, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Sep 23, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Sep 23, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Sep 23, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Sep 23, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Sep 23, 2024
kim-em added a commit to leanprover-community/mathlib4 that referenced this pull request Sep 24, 2024
kim-em added a commit to leanprover-community/mathlib4 that referenced this pull request Sep 24, 2024
@leanprover-community-bot leanprover-community-bot added builds-mathlib CI has verified that Mathlib builds against this PR and removed breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan labels Sep 24, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Sep 24, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Sep 24, 2024
@leanprover-community-bot leanprover-community-bot added breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan and removed builds-mathlib CI has verified that Mathlib builds against this PR labels Sep 24, 2024
@kim-em
Copy link
Collaborator

kim-em commented Sep 26, 2024

What is the plan here? It generates a massive number of warnings (~4200) in Mathlib.

  1. Reconsider the design?
  2. Resolve them all in Mathlib. There are enough that it is probably worth automating.

Update: All fixed in Mathlib, with adaptation notes for the edge cases. Touches over 900 files.

@Kha Kha added the merge-ci Enable merge queue CI checks for PR. In particular, produce artifacts for all major platforms. label Sep 26, 2024
@leanprover-community-bot leanprover-community-bot added builds-mathlib CI has verified that Mathlib builds against this PR and removed breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan labels Oct 3, 2024
Kha pushed a commit to leanprover-community/mathlib4 that referenced this pull request Oct 8, 2024
@kim-em kim-em changed the base branch from nightly-with-mathlib to master October 16, 2024 04:11
@Kha Kha marked this pull request as ready for review October 16, 2024 11:15
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Oct 17, 2024

Mathlib CI status (docs):

  • ❗ Mathlib CI can not be attempted yet, as the nightly-testing-2024-10-16 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Mathlib CI should run now. (2024-10-17 00:23:00)
  • 🟡 Mathlib branch lean-pr-testing-5338 build against this PR was cancelled. (2024-10-17 15:59:08) View Log

@Kha Kha enabled auto-merge October 17, 2024 09:29
@Kha Kha added this pull request to the merge queue Oct 17, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Oct 17, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Oct 17, 2024
Merged via the queue into leanprover:master with commit f2ac0d0 Oct 17, 2024
15 checks passed
@Kha Kha deleted the unused-in-tactics branch October 18, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds-mathlib CI has verified that Mathlib builds against this PR merge-ci Enable merge queue CI checks for PR. In particular, produce artifacts for all major platforms. 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.

5 participants