mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #39550 from DougGregor/require-explicit-sendable
Add `-require-explicit-sendable` to warn about non-Sendable public types
This commit is contained in:
@@ -575,6 +575,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
}
|
||||
}
|
||||
|
||||
Opts.RequireExplicitSendable |= Args.hasArg(OPT_require_explicit_sendable);
|
||||
for (const Arg *A : Args.filtered(OPT_define_availability)) {
|
||||
Opts.AvailabilityMacros.push_back(A->getValue());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user