Skip to content

[Merged by Bors] - chore: fix "unnecessary have" lint errors - #13680

Closed
llllvvuu wants to merge 2 commits into
masterfrom
llllvvuu/unnecessary_have_linter
Closed

llllvvuu wants to merge 2 commits into
masterfrom
llllvvuu/unnecessary_have_linter

Conversation

@llllvvuu

@llllvvuu llllvvuu commented Jun 10, 2024 •

Copy link
Copy Markdown
Contributor

Open in Gitpod

For some reason, these only go off on my Lean PR testing branch.

Some of the ones that went off there were genuinely unnecessary haves.
Others were "unnecessary" for the def, but necessary for
`decreasing_tactic`. Others were declarations getting flagged for
depending on declarations that had unnecessary haves.

I don't know which things are bugs in the linter, which things are bugs
in my Lean patch, and which things are bugs related to what my Lean
patch fixed.
@llllvvuu llllvvuu added awaiting-review easy < 20s of review time. See the lifecycle page for guidelines. awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. labels Jun 10, 2024
@github-actions

github-actions Bot commented Jun 10, 2024 •

Copy link
Copy Markdown

PR summary

Import changes

No significant changes to the import graph


Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>

## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit>

@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jun 10, 2024
@llllvvuu llllvvuu changed the title chore: fix unnecessary have lint errors chore: fix "unnecessary have" lint errors Jun 10, 2024

@grunweg grunweg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These fixes certainly seem fine to me.
Can you update the PR description, please?

@llllvvuu

Copy link
Copy Markdown
Contributor Author

Updated.

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

@github-actions github-actions Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jun 10, 2024
@fpvandoorn

Copy link
Copy Markdown
Member

bors merge

@github-actions github-actions Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Jun 10, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Jun 10, 2024
@mathlib-bors

mathlib-bors Bot commented Jun 10, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore: fix "unnecessary have" lint errors [Merged by Bors] - chore: fix "unnecessary have" lint errors Jun 10, 2024
@mathlib-bors mathlib-bors Bot closed this Jun 10, 2024
@mathlib-bors
mathlib-bors Bot deleted the llllvvuu/unnecessary_have_linter branch June 10, 2024 10:33
mathlib-bors Bot pushed a commit that referenced this pull request Jun 12, 2024
This linter was silently not doing anything until leanprover/lean4#4410 was fixed, and now it is working so a backlog of warnings needed to be addressed. Some were addressed here: #13680.

The warnings in this PRs are false positives (leanprover-community/batteries#428?), but a workaround is put in place.



Co-authored-by: L Lllvvuu <[email protected]>
AntoineChambert-Loir pushed a commit that referenced this pull request Jun 20, 2024
AntoineChambert-Loir pushed a commit that referenced this pull request Jun 20, 2024
This linter was silently not doing anything until leanprover/lean4#4410 was fixed, and now it is working so a backlog of warnings needed to be addressed. Some were addressed here: #13680.

The warnings in this PRs are false positives (leanprover-community/batteries#428?), but a workaround is put in place.



Co-authored-by: L Lllvvuu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

easy < 20s of review time. See the lifecycle page for guidelines. maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants