Skip to content

Commit

Permalink
fix inverted logic
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Jul 12, 2021
1 parent a255d96 commit 592b01c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/core/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -841,13 +841,13 @@ impl CliUnstable {
// some point, and migrate to a new -Z flag for any future
// things.
let feats = parse_features(v);
let stab_is_empty = feats.iter().any(|feat| {
let stab_is_not_empty = feats.iter().any(|feat| {
matches!(
feat.as_str(),
"build_dep" | "host_dep" | "dev_dep" | "itarget" | "all"
)
});
if !stab_is_empty || feats.is_empty() {
if stab_is_not_empty || feats.is_empty() {
// Make this stabilized_err once -Zfeature support is removed.
stabilized_warn(k, "1.51", STABILIZED_FEATURES);
}
Expand Down

0 comments on commit 592b01c

Please sign in to comment.