@@ -4252,7 +4252,7 @@ NeverNullType TypeResolver::resolveASTFunctionType(
42524252 isolation = FunctionTypeIsolation::forNonIsolated ();
42534253 } else {
42544254 if (ctx.LangOpts .getFeatureState (Feature::NonisolatedNonsendingByDefault)
4255- .isEnabledForAdoption ()) {
4255+ .isEnabledForMigration ()) {
42564256 // Diagnose only in the interface stage, which is run once.
42574257 if (inStage (TypeResolutionStage::Interface)) {
42584258 warnAboutNewNonisolatedAsyncExecutionBehavior (ctx, repr, isolation);
@@ -6578,7 +6578,7 @@ class ExistentialTypeSyntaxChecker : public ASTWalker {
65786578 // A missing `any` or `some` is always diagnosed if this feature not
65796579 // disabled.
65806580 auto featureState = ctx.LangOpts .getFeatureState (Feature::ExistentialAny);
6581- if (featureState.isEnabled () || featureState.isEnabledForAdoption ()) {
6581+ if (featureState.isEnabled () || featureState.isEnabledForMigration ()) {
65826582 return true ;
65836583 }
65846584
@@ -6671,10 +6671,10 @@ class ExistentialTypeSyntaxChecker : public ASTWalker {
66716671 /* isAlias=*/ isa<TypeAliasDecl>(decl)));
66726672 }
66736673
6674- // If `ExistentialAny` is enabled in adoption mode, warn unconditionally.
6674+ // If `ExistentialAny` is enabled in migration mode, warn unconditionally.
66756675 // Otherwise, warn until the feature's coming-of-age language mode.
66766676 const auto feature = Feature::ExistentialAny;
6677- if (Ctx.LangOpts .getFeatureState (feature).isEnabledForAdoption ()) {
6677+ if (Ctx.LangOpts .getFeatureState (feature).isEnabledForMigration ()) {
66786678 diag->limitBehavior (DiagnosticBehavior::Warning);
66796679 } else {
66806680 diag->warnUntilSwiftVersion (feature.getLanguageVersion ().value ());
0 commit comments