@@ -4246,7 +4246,7 @@ NeverNullType TypeResolver::resolveASTFunctionType(
42464246 isolation = FunctionTypeIsolation::forNonIsolated ();
42474247 } else {
42484248 if (ctx.LangOpts .getFeatureState (Feature::NonisolatedNonsendingByDefault)
4249- .isEnabledForAdoption ()) {
4249+ .isEnabledForMigration ()) {
42504250 // Diagnose only in the interface stage, which is run once.
42514251 if (inStage (TypeResolutionStage::Interface)) {
42524252 warnAboutNewNonisolatedAsyncExecutionBehavior (ctx, repr, isolation);
@@ -6572,7 +6572,7 @@ class ExistentialTypeSyntaxChecker : public ASTWalker {
65726572 // A missing `any` or `some` is always diagnosed if this feature not
65736573 // disabled.
65746574 auto featureState = ctx.LangOpts .getFeatureState (Feature::ExistentialAny);
6575- if (featureState.isEnabled () || featureState.isEnabledForAdoption ()) {
6575+ if (featureState.isEnabled () || featureState.isEnabledForMigration ()) {
65766576 return true ;
65776577 }
65786578
@@ -6665,10 +6665,10 @@ class ExistentialTypeSyntaxChecker : public ASTWalker {
66656665 /* isAlias=*/ isa<TypeAliasDecl>(decl)));
66666666 }
66676667
6668- // If `ExistentialAny` is enabled in adoption mode, warn unconditionally.
6668+ // If `ExistentialAny` is enabled in migration mode, warn unconditionally.
66696669 // Otherwise, warn until the feature's coming-of-age language mode.
66706670 const auto feature = Feature::ExistentialAny;
6671- if (Ctx.LangOpts .getFeatureState (feature).isEnabledForAdoption ()) {
6671+ if (Ctx.LangOpts .getFeatureState (feature).isEnabledForMigration ()) {
66726672 diag->limitBehavior (DiagnosticBehavior::Warning);
66736673 } else {
66746674 diag->warnUntilSwiftVersion (feature.getLanguageVersion ().value ());
0 commit comments