Revert "Enable import of the _Concurrency module by default."

This commit is contained in:
Arnold Schwaighofer
2021-04-09 13:20:30 -07:00
committed by GitHub
parent f85633a3e5
commit 9286ece71c
62 changed files with 337 additions and 457 deletions

View File

@@ -754,7 +754,8 @@ CompilerInstance::openModuleDoc(const InputFile &input) {
}
bool CompilerInvocation::shouldImportSwiftConcurrency() const {
return !getLangOptions().DisableImplicitConcurrencyModuleImport &&
return getLangOptions().EnableExperimentalConcurrency
&& !getLangOptions().DisableImplicitConcurrencyModuleImport &&
getFrontendOptions().InputMode !=
FrontendOptions::ParseInputMode::SwiftModuleInterface;
}