Skip to content

Lint usage of negative feature names in Cargo.toml #1746

@kennytm

Description

@kennytm

(Only works with cargo clippy, may not be in scope with clippy. See #1614)

Features are supposed to be additive, and negatively-named features violate it. Lint when the crate declares a feature named no_std / no-std, and suggest using default-features = ["std"] instead.

(Main motivation in rust-lang/rfcs#1841.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsC-an-interesting-projectCategory: Interesting projects, that usually are more involved design/code wise.E-mediumCall for participation: Medium difficulty level problem and requires some initial experience.S-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