mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Adopt experimental feature approach for flow-sensitive concurrency captures
This commit is contained in:
@@ -465,8 +465,6 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Args.hasFlag(OPT_enable_infer_public_concurrent_value,
|
||||
OPT_disable_infer_public_concurrent_value,
|
||||
false);
|
||||
Opts.EnableExperimentalFlowSensitiveConcurrentCaptures |=
|
||||
Args.hasArg(OPT_enable_experimental_flow_sensitive_concurrent_captures);
|
||||
|
||||
Opts.DisableExperimentalClangImporterDiagnostics |=
|
||||
Args.hasArg(OPT_disable_experimental_clang_importer_diagnostics);
|
||||
@@ -662,6 +660,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Opts.Features.insert(Feature::StaticAssert);
|
||||
if (Args.hasArg(OPT_enable_experimental_associated_type_inference))
|
||||
Opts.Features.insert(Feature::NamedOpaqueTypes);
|
||||
if (Args.hasArg(OPT_enable_experimental_flow_sensitive_concurrent_captures))
|
||||
Opts.Features.insert(Feature::FlowSensitiveConcurrencyCaptures);
|
||||
|
||||
Opts.EnableAppExtensionRestrictions |= Args.hasArg(OPT_enable_app_extension);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user