Serialization: Minor improvements to the error on conformance mismatch

Clarify the sources of information when a conformance reference in a
swiftmodule doesn't match with the requirements seen by the reader.
This commit is contained in:
Alexis Laferrière
2025-12-10 15:08:03 -08:00
parent 5e952e9b22
commit 175d0ba8e6
3 changed files with 7 additions and 7 deletions

View File

@@ -9119,13 +9119,13 @@ void ModuleFile::finishNormalConformance(NormalProtocolConformance *conformance,
// Print context to stderr.
PrintOptions Opts;
llvm::errs() << "Requirements:\n";
llvm::errs() << "Requirements seen by this invocation:\n";
for (auto req: requirements) {
req.print(llvm::errs(), Opts);
llvm::errs() << "\n";
}
llvm::errs() << "Conformances:\n";
llvm::errs() << "\nConformances written in the swiftmodule:\n";
for (auto req: reqConformances) {
req.print(llvm::errs());
llvm::errs() << "\n";