Merge pull request #82664 from swiftlang/jepa2-6.2

[6.2] Sema: Fix the insertion location for conformances attributes
This commit is contained in:
Anthony Latsis
2025-07-02 16:51:55 +01:00
committed by GitHub
18 changed files with 323 additions and 89 deletions

View File

@@ -3602,7 +3602,8 @@ bool ContextualFailure::tryProtocolConformanceFixIt(
for (auto protocol : missingProtocols) {
// Create a fake conformance for this type to the given protocol.
auto conformance = getASTContext().getNormalConformance(
nominal->getSelfInterfaceType(), protocol, SourceLoc(), nominal,
nominal->getSelfInterfaceType(), protocol, SourceLoc(),
/*inheritedTypeRepr=*/nullptr, nominal,
ProtocolConformanceState::Incomplete, ProtocolConformanceOptions());
// Resolve the conformance to generate fixits.