Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2023-09-27 09:34:12 -07:00
49 changed files with 2905 additions and 812 deletions

View File

@@ -770,7 +770,7 @@ void UnboundImport::validateInterfaceWithPackageName(ModuleDecl *topLevelModule,
if (!topLevelModule->getPackageName().empty() &&
topLevelModule->getPackageName().str() == ctx.LangOpts.PackageName &&
topLevelModule->isBuiltFromInterface()) {
ctx.Diags.diagnose(SourceLoc(),
ctx.Diags.diagnose(import.module.getModulePath().front().Loc,
diag::in_package_module_not_compiled_from_source,
topLevelModule->getBaseIdentifier(),
ctx.LangOpts.PackageName,