rust-lang / rust-lang/rust-clippy

Suggest: documents about working according to msrv in web site.

Open
#8,693 17 comments 0 reactions 1 assignee View on GitHub

@Twil3akine is already working on this.

Since May 10, 2026.

A-documentation C-enhancement
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.
  • Stop warnings

    • ex. [`filter_map_next] ignore the rule if msrv < 1.30

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.