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 {
117117#define SINGLETON_TYPE (SHORT_ID, ID ) TRIVIAL_CASE(ID##Type)
118118#include " swift/AST/TypeNodes.def"
119119
120- bool visitPlaceholderType (CanPlaceholderType firstType, Type secondType,
121- Type sugaredFirstType) {
122- // Placeholder types never match.
123- return mismatch (firstType.getPointer (), secondType, sugaredFirstType);
124- }
125-
126120 bool visitUnresolvedType (CanUnresolvedType firstType, Type secondType,
127121 Type sugaredFirstType) {
128122 // Unresolved types never match.
Original file line number Diff line number Diff line change @@ -2317,9 +2317,9 @@ AssociatedTypeInference::getPotentialTypeWitnessesByMatchingTypes(ValueDecl *req
23172317 // / Deduce associated types from dependent member types in the witness.
23182318 bool mismatch (DependentMemberType *firstDepMember,
23192319 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 ())
23232323 return true ;
23242324
23252325 // 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