File tree Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -4159,30 +4159,6 @@ Optional<ProtocolConformanceRef> TypeChecker::conformsToProtocol(
4159
4159
}
4160
4160
}
4161
4161
4162
- // When requested, print the conformance access path used to find this
4163
- // conformance.
4164
- ASTContext &ctx = Proto->getASTContext ();
4165
- if (ctx.LangOpts .DebugGenericSignatures &&
4166
- InExpression && T->is <ArchetypeType>() && lookupResult->isAbstract () &&
4167
- !T->castTo <ArchetypeType>()->isOpenedExistential () &&
4168
- !T->castTo <ArchetypeType>()->requiresClass () &&
4169
- T->castTo <ArchetypeType>()->getGenericEnvironment ()
4170
- == DC->getGenericEnvironmentOfContext ()) {
4171
- auto interfaceType = T->mapTypeOutOfContext ();
4172
- if (interfaceType->isTypeParameter ()) {
4173
- auto genericSig = DC->getGenericSignatureOfContext ();
4174
- auto path = genericSig->getConformanceAccessPath (interfaceType, Proto);
4175
-
4176
- // Debugging aid: display the conformance access path for archetype
4177
- // conformances.
4178
- llvm::errs () << " Conformance access path for " ;
4179
- T.print (llvm::errs ());
4180
- llvm::errs () << " : " << Proto->getName () << " is " ;
4181
- path.print (llvm::errs ());
4182
- llvm::errs () << " \n " ;
4183
- }
4184
- }
4185
-
4186
4162
return lookupResult;
4187
4163
}
4188
4164
Original file line number Diff line number Diff line change 1
1
// RUN: %target-typecheck-verify-swift -typecheck -swift-version 4 %s -verify
2
- // RUN: %target-typecheck-verify-swift -typecheck -swift-version 4 -debug-generic-signatures %s > %t.dump 2>&1
3
- // RUN: %FileCheck %s < %t.dump
4
2
5
3
protocol P0 { }
6
4
protocol Q0 : P0 { }
@@ -37,22 +35,16 @@ func acceptP3<T: P3>(_: T) { }
37
35
38
36
39
37
func testPaths1< T: P2 & P4 > ( _ t: T ) {
40
- // CHECK: Conformance access path for T.AssocP2.AssocP1: P0 is τ_0_0: P2 -> τ_0_0.AssocP2: P1 -> τ_0_0.AssocP1: Q0 -> τ_0_0: P0
41
38
acceptP0 ( t. getAssocP2 ( ) . getAssocP1 ( ) )
42
- // CHECK: Conformance access path for T.AssocP3: P0 is τ_0_0: P4 -> τ_0_0: P3 -> τ_0_0.AssocP3: P0
43
39
acceptP0 ( t. getAssocP3 ( ) )
44
40
}
45
41
46
42
func testPaths2< U: P2 & P4 > ( _ t: U ) where U. AssocP3 == U . AssocP2 . AssocP1 {
47
- // CHECK: Conformance access path for U.AssocP3: P0 is τ_0_0: P4 -> τ_0_0: P3 -> τ_0_0.AssocP3: P0
48
43
acceptP0 ( t. getAssocP2 ( ) . getAssocP1 ( ) )
49
44
}
50
45
51
46
func testPaths3< V: P5 > ( _ v: V ) {
52
- // CHECK: Conformance access path for V.AssocP3: P0 is τ_0_0: P5 -> τ_0_0.AssocP3: Q0 -> τ_0_0: P0
53
47
acceptP0 ( v. getAssocP3 ( ) )
54
-
55
- // CHECK: Conformance access path for V.AssocP3: Q0 is τ_0_0: P5 -> τ_0_0.AssocP3: Q0
56
48
acceptQ0 ( v. getAssocP3 ( ) )
57
49
}
58
50
@@ -68,6 +60,5 @@ protocol P5Unordered {
68
60
}
69
61
70
62
func testUnorderedP5_P6< W: P6Unordered > ( _ w: W ) {
71
- // CHECK: Conformance access path for W.A: P0 is τ_0_0: P6Unordered -> τ_0_0: P5Unordered -> τ_0_0.A: P0
72
63
acceptP0 ( w. getA ( ) )
73
64
}
You can’t perform that action at this time.
0 commit comments