Skip to content

Commit 2fd8426

Browse files
committed
fix bug
1 parent e00d661 commit 2fd8426

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

crates/xtask/src/main.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,15 @@ impl IntoFeatureGroup for Feature {
8787
struct Features(Vec<Feature>);
8888

8989
impl Features {
90+
/// Returns all features except the exclusive ones which are not the default
9091
fn all_features() -> Self {
9192
// remove exclusive features which are not the default
9293
Self(
9394
<Feature as strum::VariantArray>::VARIANTS
9495
.iter()
9596
.filter(|f| {
9697
let group = f.to_feature_group();
97-
(group != FeatureGroup::NonExclusiveOther) || (**f == group.default_feature())
98+
(group == FeatureGroup::NonExclusiveOther) || (**f == group.default_feature())
9899
})
99100
.cloned()
100101
.collect(),
@@ -480,10 +481,15 @@ impl Xtasks {
480481

481482
// run powerset with all language features enabled without mutually exclusive
482483
let powersets = non_exclusive.iter().cloned().powerset().collect::<Vec<_>>();
483-
info!("Powersets: {:?}", powersets);
484-
485-
for mut feature_set in powersets.into_iter().map(Features) {
486-
info!("Running check with features: {}", feature_set);
484+
info!("Powerset: {:?}", powersets);
485+
let length = powersets.len();
486+
487+
for (i, mut feature_set) in powersets.into_iter().map(Features).enumerate() {
488+
info!(
489+
"Running check {}/{length} with features: {}",
490+
i + 1,
491+
feature_set
492+
);
487493
// choose language features
488494
for category in [
489495
FeatureGroup::LuaExclusive,

0 commit comments

Comments
 (0)