Skip to content

internal: Expand lint tables && make clippy happy 🎉 #16401

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

Merged
merged 4 commits into from
Jan 19, 2024

Conversation

Urhengulas
Copy link
Contributor

This PR expands the lint tables on ./Cargo.toml and thereby makes cargo clippy exit successfully! 🎉

Fixes #15918

How?

In the beginning there are some warnings for rustc.

Next, and most importantly, there is the clippy lint table. There are a few sections in there.

First there are the lint groups.

Second there are all lints which are permanently allowed with the reasoning why they are allowed.

Third there is a huge list of temporarily allowed lints. They should be removed in the mid-term, but incur a substantial amount of work, therefore they are allowed for now and can be worked on bit by bit.

Fourth there are all lints which should warn.

Additionally there are a few allow statements in the code for lints which should be permanently allowed in this specific place, but not in the whole code base.

Follow up work

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 19, 2024
@Urhengulas Urhengulas requested a review from Veykril January 19, 2024 15:56
@Veykril
Copy link
Member

Veykril commented Jan 19, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Jan 19, 2024

📌 Commit 4087dcf has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jan 19, 2024

⌛ Testing commit 4087dcf with merge 2a239b9...

@bors
Copy link
Contributor

bors commented Jan 19, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 2a239b9 to master...

@bors bors merged commit 2a239b9 into rust-lang:master Jan 19, 2024
@Urhengulas Urhengulas deleted the lint-table branch January 19, 2024 16:31
bors added a commit that referenced this pull request Jan 19, 2024
Work through temporarily allowed clippy lints, part 1

This is the first batch of not allowing but actually fixing the clippy lints. Each commit removes one lint from the lint table and then fixes the resulting warnings.

Follow-up to #16401
@lnicola lnicola changed the title Expand lint tables && make clippy happy 🎉 internal: Expand lint tables && make clippy happy 🎉 Jan 20, 2024
bors added a commit that referenced this pull request Jan 30, 2024
internal: Add `clippy` to CI

Follow-up to #16401
bors added a commit that referenced this pull request Jan 31, 2024
internal: Work through temporarily allowed clippy lints, part 2

Another follow-up to #16401.
bors added a commit that referenced this pull request Feb 1, 2024
internal: Work through temporarily allowed clippy lints, part 2

Another follow-up to #16401.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add cargo lint tables and make use of clippy
4 participants