Skip to content

Lint references to features not defined in Cargo.toml #1614

Closed
@clarfonthey

Description

@clarfonthey

For example, a #[cfg(feature = "blah")] when blah isn't in the [features] or [dependencies] sections of Cargo.toml. This may require some people to put a blah = [] thing in the [features] section but I think it'd be worthwhile as a warn-by-default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.L-styleLint: Belongs in the style lint groupS-needs-discussionStatus: Needs further discussion before merging or work can be startedT-cargoType: cargo related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions