mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Turn on -enable-operator-designated-types for the standard library
Because this feature mostly exists for the standard library, turn it on specifically. This avoids having to serialize it in the flags necessary for parseable interfaces.
This commit is contained in:
@@ -212,6 +212,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Opts.EnableOperatorDesignatedTypes |=
|
||||
Args.hasArg(OPT_enable_operator_designated_types);
|
||||
|
||||
// Always enable operator designated types for the standard library.
|
||||
Opts.EnableOperatorDesignatedTypes |= FrontendOpts.ParseStdlib;
|
||||
|
||||
Opts.SolverEnableOperatorDesignatedTypes |=
|
||||
Args.hasArg(OPT_solver_enable_operator_designated_types);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user