diff options
-rw-r--r-- | crates/cfg/src/dnf.rs | 1 | ||||
-rw-r--r-- | crates/cfg/src/lib.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/crates/cfg/src/dnf.rs b/crates/cfg/src/dnf.rs index 35f946e6f..a08c307da 100644 --- a/crates/cfg/src/dnf.rs +++ b/crates/cfg/src/dnf.rs | |||
@@ -458,6 +458,7 @@ mod test { | |||
458 | &opts, | 458 | &opts, |
459 | expect![["test and test2 are enabled"]], | 459 | expect![["test and test2 are enabled"]], |
460 | ); | 460 | ); |
461 | check_why_inactive("#![cfg(all(a, b))]", &opts, expect![["a and b are disabled"]]); | ||
461 | check_why_inactive( | 462 | check_why_inactive( |
462 | "#![cfg(all(not(test), a))]", | 463 | "#![cfg(all(not(test), a))]", |
463 | &opts, | 464 | &opts, |
diff --git a/crates/cfg/src/lib.rs b/crates/cfg/src/lib.rs index 0b0734213..28a40a082 100644 --- a/crates/cfg/src/lib.rs +++ b/crates/cfg/src/lib.rs | |||
@@ -137,7 +137,7 @@ impl fmt::Display for InactiveReason { | |||
137 | for (i, atom) in self.disabled.iter().enumerate() { | 137 | for (i, atom) in self.disabled.iter().enumerate() { |
138 | let sep = match i { | 138 | let sep = match i { |
139 | 0 => "", | 139 | 0 => "", |
140 | _ if i == self.enabled.len() - 1 => " and ", | 140 | _ if i == self.disabled.len() - 1 => " and ", |
141 | _ => ", ", | 141 | _ => ", ", |
142 | }; | 142 | }; |
143 | f.write_str(sep)?; | 143 | f.write_str(sep)?; |