Skip to content

cargo::manual_readme lint's behavior conflicts with clippy::cargo-common-metadata #17635

Description

@weihanglo

Description

Cargo is going to stabilize its own linting system. One of the lints is cargo::manual_readme. The lint suggests leave the package.readme unset if the value can be inferred.

However, this conflicts with the behavior of clippy::cargo_common_metadata, which requires package.readme being set even it is exactly the inferred value.

Given the plan here is slowly migrate Cargo lints in clippy to Cargo, I wonder if we should figure out a solution here to stop the conflict. For example, clippy::cargo_common_metadata stops checking package.readme.

Another approach could that Cargo has a similar lint, though I personally don't feel it worth blocking the stabilization.

Version

rustc 1.100.0-nightly (787af2b8c 2026-08-25)
binary: rustc
commit-hash: 787af2b8c80638c51a4fc8e44f84e6891f243ec7
commit-date: 2026-08-25
host: aarch64-apple-darwin
release: 1.100.0-nightly
LLVM version: 23.1.0

Additional Labels

@rustbot label +T-cargo

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-cargoType: cargo related

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions