Skip to content

Website: Show which lints are auto-correctable with cargo fix #4310

Closed
@phansch

Description

@phansch

Now that cargo fix support is on the way for Clippy, it would be nice to update the lint docs to show which lints support auto-correct.

Since a lint can be emitted in different ways with different applicabilities, we have to decide which lints to include:

  • Lints where all emitted diagnostics are MachineApplicable
  • Lints that emit at least one MachineApplicable diagnostic

Apart from that we also have to somehow obtain this data. This is probably not going to be easy since our existing python tools for the website have pretty much no way to find out the applicability of lints.

Metadata

Metadata

Assignees

Labels

A-documentationArea: Adding or improving documentationA-websiteArea: Improving the clippy websiteL-suggestionLint: Improving, adding or fixing lint suggestions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions