Lint usage of negative feature names in Cargo.toml #1746
Labels
A-lint
Area: New lints
C-an-interesting-project
Category: Interesting projects, that usually are more involved design/code wise.
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
S-needs-discussion
Status: Needs further discussion before merging or work can be started
T-cargo
Type: cargo related
(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 usingdefault-features = ["std"]
instead.(Main motivation in rust-lang/rfcs#1841.)
The text was updated successfully, but these errors were encountered: