@@ -4246,7 +4246,7 @@ NeverNullType TypeResolver::resolveASTFunctionType(
4246
4246
isolation = FunctionTypeIsolation::forNonIsolated ();
4247
4247
} else {
4248
4248
if (ctx.LangOpts .getFeatureState (Feature::NonisolatedNonsendingByDefault)
4249
- .isEnabledForAdoption ()) {
4249
+ .isEnabledForMigration ()) {
4250
4250
// Diagnose only in the interface stage, which is run once.
4251
4251
if (inStage (TypeResolutionStage::Interface)) {
4252
4252
warnAboutNewNonisolatedAsyncExecutionBehavior (ctx, repr, isolation);
@@ -6572,7 +6572,7 @@ class ExistentialTypeSyntaxChecker : public ASTWalker {
6572
6572
// A missing `any` or `some` is always diagnosed if this feature not
6573
6573
// disabled.
6574
6574
auto featureState = ctx.LangOpts .getFeatureState (Feature::ExistentialAny);
6575
- if (featureState.isEnabled () || featureState.isEnabledForAdoption ()) {
6575
+ if (featureState.isEnabled () || featureState.isEnabledForMigration ()) {
6576
6576
return true ;
6577
6577
}
6578
6578
@@ -6665,10 +6665,10 @@ class ExistentialTypeSyntaxChecker : public ASTWalker {
6665
6665
/* isAlias=*/ isa<TypeAliasDecl>(decl)));
6666
6666
}
6667
6667
6668
- // If `ExistentialAny` is enabled in adoption mode, warn unconditionally.
6668
+ // If `ExistentialAny` is enabled in migration mode, warn unconditionally.
6669
6669
// Otherwise, warn until the feature's coming-of-age language mode.
6670
6670
const auto feature = Feature::ExistentialAny;
6671
- if (Ctx.LangOpts .getFeatureState (feature).isEnabledForAdoption ()) {
6671
+ if (Ctx.LangOpts .getFeatureState (feature).isEnabledForMigration ()) {
6672
6672
diag->limitBehavior (DiagnosticBehavior::Warning);
6673
6673
} else {
6674
6674
diag->warnUntilSwiftVersion (feature.getLanguageVersion ().value ());
0 commit comments