mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add "disable" counterpart to -enable-experimental-opened-existential-types
This commit is contained in:
@@ -518,6 +518,10 @@ def enable_experimental_opened_existential_types :
|
|||||||
Flag<["-"], "enable-experimental-opened-existential-types">,
|
Flag<["-"], "enable-experimental-opened-existential-types">,
|
||||||
HelpText<"Enable experimental support for implicitly opened existentials">;
|
HelpText<"Enable experimental support for implicitly opened existentials">;
|
||||||
|
|
||||||
|
def disable_experimental_opened_existential_types :
|
||||||
|
Flag<["-"], "disble-experimental-opened-existential-types">,
|
||||||
|
HelpText<"Disable experimental support for implicitly opened existentials">;
|
||||||
|
|
||||||
def enable_deserialization_recovery :
|
def enable_deserialization_recovery :
|
||||||
Flag<["-"], "enable-deserialization-recovery">,
|
Flag<["-"], "enable-deserialization-recovery">,
|
||||||
HelpText<"Attempt to recover from missing xrefs (etc) in swiftmodules">;
|
HelpText<"Attempt to recover from missing xrefs (etc) in swiftmodules">;
|
||||||
|
|||||||
@@ -448,8 +448,10 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
|||||||
Opts.EnableParameterizedProtocolTypes |=
|
Opts.EnableParameterizedProtocolTypes |=
|
||||||
Args.hasArg(OPT_enable_parameterized_protocol_types);
|
Args.hasArg(OPT_enable_parameterized_protocol_types);
|
||||||
|
|
||||||
Opts.EnableOpenedExistentialTypes |=
|
Opts.EnableOpenedExistentialTypes =
|
||||||
Args.hasArg(OPT_enable_experimental_opened_existential_types);
|
Args.hasFlag(OPT_enable_experimental_opened_existential_types,
|
||||||
|
OPT_disable_experimental_opened_existential_types,
|
||||||
|
false);
|
||||||
|
|
||||||
// SwiftOnoneSupport produces different symbols when opening existentials,
|
// SwiftOnoneSupport produces different symbols when opening existentials,
|
||||||
// so disable it.
|
// so disable it.
|
||||||
|
|||||||
Reference in New Issue
Block a user