File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -117,12 +117,6 @@ class TypeMatcher {
117
117
#define SINGLETON_TYPE (SHORT_ID, ID ) TRIVIAL_CASE(ID##Type)
118
118
#include " swift/AST/TypeNodes.def"
119
119
120
- bool visitPlaceholderType (CanPlaceholderType firstType, Type secondType,
121
- Type sugaredFirstType) {
122
- // Placeholder types never match.
123
- return mismatch (firstType.getPointer (), secondType, sugaredFirstType);
124
- }
125
-
126
120
bool visitUnresolvedType (CanUnresolvedType firstType, Type secondType,
127
121
Type sugaredFirstType) {
128
122
// Unresolved types never match.
Original file line number Diff line number Diff line change @@ -2317,9 +2317,9 @@ AssociatedTypeInference::getPotentialTypeWitnessesByMatchingTypes(ValueDecl *req
2317
2317
// / Deduce associated types from dependent member types in the witness.
2318
2318
bool mismatch (DependentMemberType *firstDepMember,
2319
2319
TypeBase *secondType, Type sugaredFirstType) {
2320
- // If the second type is an error or placeholder , don't look at it
2321
- // further, but proceed to find other matches.
2322
- if (secondType->hasError () || secondType-> hasPlaceholder () )
2320
+ // If the second type is an error, don't look at it further, but proceed
2321
+ // to find other matches.
2322
+ if (secondType->hasError ())
2323
2323
return true ;
2324
2324
2325
2325
// If the second type is a generic parameter of the witness, the match
You can’t perform that action at this time.
0 commit comments