Skip to content

Commit 592b01c

Browse files
committed
fix inverted logic
1 parent a255d96 commit 592b01c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/core/features.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,13 +841,13 @@ impl CliUnstable {
841841
// some point, and migrate to a new -Z flag for any future
842842
// things.
843843
let feats = parse_features(v);
844-
let stab_is_empty = feats.iter().any(|feat| {
844+
let stab_is_not_empty = feats.iter().any(|feat| {
845845
matches!(
846846
feat.as_str(),
847847
"build_dep" | "host_dep" | "dev_dep" | "itarget" | "all"
848848
)
849849
});
850-
if !stab_is_empty || feats.is_empty() {
850+
if stab_is_not_empty || feats.is_empty() {
851851
// Make this stabilized_err once -Zfeature support is removed.
852852
stabilized_warn(k, "1.51", STABILIZED_FEATURES);
853853
}

0 commit comments

Comments
 (0)