Skip to content

Commit 1b5e69b

Browse files
authored
Merge pull request swiftlang#83716 from tshortli/print-supported-experimental-features
Basic: Fix `-print-supported-features`
2 parents f194790 + eb4b049 commit 1b5e69b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Basic/SupportedFeatures.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void printSupportedFeatures(llvm::raw_ostream &out) {
9191

9292
// Include only experimental features that are available in production.
9393
llvm::erase_if(experimental, [](auto &feature) {
94-
return feature.isAvailableInProduction();
94+
return !feature.isAvailableInProduction();
9595
});
9696

9797
out << "{\n";

test/Frontend/print-supported-features.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
// CHECK: { "name": "InferIsolatedConformances", "migratable": true, "categories": ["IsolatedConformances"], "enabled_in": "7" },
99
// CHECK: ],
1010
// CHECK: "experimental": [
11-
// CHECK: { "name": "{{.*}}" }
11+
// CHECK: { "name": "BuiltinModule" }
1212
// CHECK: ]
1313
// CHECK: }

0 commit comments

Comments
 (0)