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

Finish setting up rustc/Clippy lints and fix those #695

Merged
merged 20 commits into from
Dec 7, 2023

Conversation

Xanewok
Copy link
Contributor

@Xanewok Xanewok commented Dec 4, 2023

Part of #155

Commit messages have a bit more context on the relevant changes.

I've decided to drop very few lints from the EDR list like deny-by-default ones, inconsistent_struct_constructor (not that useful) or implicit_clone (a lot of false-positives/unidiomatic suggestions; let's wait for Rust 1.74 and rust-lang/rust-clippy#11281 to include it again) or irrelevant ones for us like suboptimal_flops.

Nowadays, this is mostly a leftover that still includes
`elided_lifetimes_in_paths`, see
rust-lang/rust#91639 for the tracking
issue.
They're pretty much what EDR settled for and serves as a good baseline.
If we find we're limited by some lints, we can easily turn it off or
include some more if we find them valuable.
This is already on-by-default and linted against by the compiler, so
let's not make more noise by adding more extraneous warnings here.
@Xanewok Xanewok requested a review from a team as a code owner December 4, 2023 23:57
Copy link

changeset-bot bot commented Dec 4, 2023

⚠️ No Changeset found

Latest commit: 2983ff0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

.cargo/config.toml Outdated Show resolved Hide resolved
@Xanewok Xanewok changed the title Warn clippy Warn against quite a few additional Clippy lints Dec 5, 2023
.cargo/config.toml Outdated Show resolved Hide resolved
.cargo/config.toml Outdated Show resolved Hide resolved
.cargo/config.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@OmarTawfik OmarTawfik left a comment

Choose a reason for hiding this comment

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

Left two concerns about error output from CLIs. Otherwise, LGTM!

@Xanewok Xanewok changed the title Warn against quite a few additional Clippy lints Finish setting up rustc/Clippy lints and fix those Dec 5, 2023
.cargo/config.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@OmarTawfik OmarTawfik left a comment

Choose a reason for hiding this comment

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

Looking great! thanks.

@OmarTawfik OmarTawfik mentioned this pull request Dec 7, 2023
@Xanewok Xanewok enabled auto-merge December 7, 2023 09:58
@Xanewok Xanewok added this pull request to the merge queue Dec 7, 2023
Merged via the queue into NomicFoundation:main with commit 0868683 Dec 7, 2023
1 check passed
@Xanewok Xanewok deleted the warn-clippy branch December 7, 2023 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants