35
35
#include " swift/AST/GenericSignature.h"
36
36
#include " swift/AST/NameLookup.h"
37
37
#include " swift/AST/ParameterList.h"
38
+ #include " swift/AST/PrettyStackTrace.h"
38
39
#include " swift/AST/ProtocolConformance.h"
39
40
#include " swift/AST/ReferencedNameTracker.h"
40
41
#include " swift/AST/TypeMatcher.h"
@@ -4103,6 +4104,10 @@ void TypeChecker::useBridgedNSErrorConformances(DeclContext *dc, Type type) {
4103
4104
}
4104
4105
4105
4106
void TypeChecker::checkConformance (NormalProtocolConformance *conformance) {
4107
+ PrettyStackTraceType trace1 (Context, " checking conformance of" ,
4108
+ conformance->getType ());
4109
+ PrettyStackTraceDecl trace2 (" ...to" , conformance->getProtocol ());
4110
+
4106
4111
MultiConformanceChecker checker (*this );
4107
4112
checker.addConformance (conformance);
4108
4113
checker.checkAllConformances ();
@@ -4114,6 +4119,10 @@ void TypeChecker::checkConformanceRequirements(
4114
4119
if (conformance->isInvalid ())
4115
4120
return ;
4116
4121
4122
+ PrettyStackTraceType trace1 (Context, " checking conformance requirements of" ,
4123
+ conformance->getType ());
4124
+ PrettyStackTraceDecl trace2 (" ...to" , conformance->getProtocol ());
4125
+
4117
4126
conformance->setSignatureConformances ({ });
4118
4127
4119
4128
llvm::SetVector<ValueDecl *> globalMissingWitnesses;
0 commit comments