Frontend: Introduce an alias for the IsolatedAny experimental feature.

To preserve compatibility with older compilers that do not allow `IsolatedAny`
to be enabled in production compilers, use an alias experimental feature when
building the stdlib (`IsolatedAny2`).

Also, add `@_allowFeatureSuppression(IsolatedAny)` in a couple spots it was
forgotten.

Partially resolves rdar://125138945
This commit is contained in:
Allan Shortlidge
2024-03-27 20:43:07 -07:00
parent 8f4af40f91
commit 590d3353e6
6 changed files with 12 additions and 1 deletions

View File

@@ -886,6 +886,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
if (*feature == Feature::NoncopyableGenerics2)
Opts.enableFeature(Feature::NoncopyableGenerics);
if (*feature == Feature::IsolatedAny2)
Opts.enableFeature(Feature::IsolatedAny);
}
// Hack: In order to support using availability macros in SPM packages, we