Description
Proposal
Thanks to the amazing work T-bootstrap, clippy now works properly in rust-lang/rust! This is great, we should start using it.
We should enforce clippy in CI with -Aclippy::all -Dclippy::correctness
. This ensures that there is not much effort and has the highest value. This finds real bugs, like rust-lang/rust#119447.
Running it locally doesn't show too many lints, mostly problems with clippy::unused_io_amount
on slices (these should just use read_exact
and some issues around bitflags (which should be resolved with the upgrade)). Fixing all of this is not too much effort and high value.
clippy::all
has hundreds of warnings and it's not realistic to enforce this any time soon. It's also unclear whether we ever want that, and I would very much prefer not bikeshedding that right now, let's focus on clippy::correctness
. Meanwhile, we're still happy to take fixes for clippy::all
lints as long as they aren't too much of a burden to review.
cc @flip1995, this could cause some trouble on syncs if clippy ships new correctness lints that fire and we use in-tree clippy instead of beta clippy.
Mentors or Reviewers
anyone
Process
The main points of the Major Change Process are as follows:
- File an issue describing the proposal.
- A compiler team member or contributor who is knowledgeable in the area can second by writing
@rustbot second
.- Finding a "second" suffices for internal changes. If however, you are proposing a new public-facing feature, such as a
-C flag
, then full team check-off is required. - Compiler team members can initiate a check-off via
@rfcbot fcp merge
on either the MCP or the PR.
- Finding a "second" suffices for internal changes. If however, you are proposing a new public-facing feature, such as a
- Once an MCP is seconded, the Final Comment Period begins. If no objections are raised after 10 days, the MCP is considered approved.
You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.