Skip to content

Commit 5c373a5

Browse files
committed
[NFC] unittests: Use an experimental feature that is always available
1 parent c17226d commit 5c373a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unittests/Frontend/IsFeatureEnabledTests.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace {
2020
static const FeatureWrapper baselineF(Feature::AsyncAwait);
2121
static const FeatureWrapper upcomingF(Feature::DynamicActorIsolation);
2222
static const FeatureWrapper adoptableUpcomingF(Feature::ExistentialAny);
23-
static const FeatureWrapper experimentalF(Feature::NamedOpaqueTypes);
23+
static const FeatureWrapper experimentalF(Feature::StructLetDestructuring);
2424
static const FeatureWrapper strictConcurrencyF(Feature::StrictConcurrency);
2525

2626
using FeatureState = LangOptions::FeatureState;
@@ -64,6 +64,9 @@ TEST_F(IsFeatureEnabledTest, VerifyTestedFeatures) {
6464

6565
feature = experimentalF;
6666
{
67+
// If these tests start failing because `experimentalF` was promoted, swap
68+
// it for another experimental feature one that is available in production.
69+
ASSERT_TRUE(isFeatureAvailableInProduction(feature));
6770
ASSERT_TRUE(getExperimentalFeature(feature.name));
6871
ASSERT_FALSE(isFeatureAdoptable(feature));
6972
}

0 commit comments

Comments
 (0)