rust-lang / rust-lang/rust-clippy
Suggest: documents about working according to msrv in web site.
@Twil3akine is already working on this.
Since May 10, 2026.
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
Description
clippy has rules that change behavior depending on msrv.
-
Change the content of warnings
- ex.
[`map_clone`]changes the message if msrv < 1.36.
- ex.
-
Stop warnings
- ex.
[`filter_map_next]ignore the rule if msrv < 1.30
- ex.
Their behavior depends on the internal implementation, and currently we have no way to know them except by reading the source code.
The web site indicates that the msrv option is available, but does not say how the behavior is changed as a result of adding the option.
I think it would be more user-friendly to have a document that describes how clippy's behavior changes depending on the value of msrv.
Thank you in advance.
example.
# https://rust-lang.github.io/rust-clippy/master/#map_clone
Configuration
This lint has the following configuration variables:
- msrv: Option<String>: The minimum rust version that the project supports (defaults to None)
• if msrv >= 1.36, this rule suggests using `copied`.
• if msrv < 1.36, this rule suggets using `cloned`, because `copied` was estabilished in 1.36.
Version
No response
Additional Labels
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.