mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Implement experimental feature InferIsolatedConformances
Introduce the experimental feature InferIsolatedConformances to align with the upcoming feature proposed in SE-0470. This is a slight generalization of the main-actor-specific inference that was already in place for the default-main-actor mode from SE-0466. Note that, as specified in SE-0470, InferIsolatedConformances is implied by the default-main-actor mode.
This commit is contained in:
@@ -920,6 +920,9 @@ static bool ParseEnabledFeatureArgs(LangOptions &Opts, ArgList &Args,
|
||||
if (Args.hasArg(OPT_strict_memory_safety))
|
||||
Opts.enableFeature(Feature::StrictMemorySafety);
|
||||
|
||||
if (Opts.hasFeature(Feature::UnspecifiedMeansMainActorIsolated))
|
||||
Opts.enableFeature(Feature::InferIsolatedConformances);
|
||||
|
||||
return HadError;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user