@@ -10346,7 +10346,8 @@ performMemberLookup(ConstraintKind constraintKind, DeclNameRef memberName,
1034610346 // include them in the unviable candidates list.
1034710347 if (result.ViableCandidates.empty() && result.UnviableCandidates.empty() &&
1034810348 includeInaccessibleMembers) {
10349- NameLookupOptions lookupOptions = defaultMemberLookupOptions;
10349+ NameLookupOptions lookupOptions =
10350+ defaultConstraintSolverMemberLookupOptions;
1035010351
1035110352 // Local function that looks up additional candidates using the given lookup
1035210353 // options, recording the results as unviable candidates.
@@ -10380,12 +10381,6 @@ performMemberLookup(ConstraintKind constraintKind, DeclNameRef memberName,
1038010381 if (lookupUnviable(lookupOptions | NameLookupFlags::IgnoreAccessControl,
1038110382 MemberLookupResult::UR_Inaccessible))
1038210383 return result;
10383-
10384- // Ignore missing import statements in order to find more candidates that
10385- // might have been missed before.
10386- if (lookupUnviable(lookupOptions | NameLookupFlags::IgnoreMissingImports,
10387- MemberLookupResult::UR_MissingImport))
10388- return result;
1038910384 }
1039010385
1039110386 return result;
@@ -10586,11 +10581,9 @@ static ConstraintFix *fixMemberRef(
1058610581 }
1058710582
1058810583 case MemberLookupResult::UR_Inaccessible:
10589- case MemberLookupResult::UR_MissingImport:
1059010584 assert(choice.isDecl());
10591- return AllowInaccessibleMember::create(
10592- cs, baseTy, choice.getDecl(), memberName, locator,
10593- *reason == MemberLookupResult::UR_MissingImport);
10585+ return AllowInaccessibleMember::create(cs, baseTy, choice.getDecl(),
10586+ memberName, locator);
1059410587
1059510588 case MemberLookupResult::UR_UnavailableInExistential: {
1059610589 return choice.isDecl()
0 commit comments