mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user