mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #40388 from DougGregor/swift-6-stricter-concurrency-checking
Swift 6 stricter concurrency checking
This commit is contained in:
@@ -2171,8 +2171,7 @@ ConstraintSystem::matchFunctionTypes(FunctionType *func1, FunctionType *func2,
|
||||
|
||||
/// Whether to downgrade to a concurrency warning.
|
||||
auto isConcurrencyWarning = [&] {
|
||||
if (contextUsesConcurrencyFeatures(DC) ||
|
||||
Context.LangOpts.isSwiftVersionAtLeast(6))
|
||||
if (contextRequiresStrictConcurrencyChecking(DC))
|
||||
return false;
|
||||
|
||||
switch (kind) {
|
||||
|
||||
Reference in New Issue
Block a user