File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,8 @@ bool ProtocolConformanceRef::hasUnavailableConformance() const {
287
287
288
288
// Check whether this conformance is on an unavailable extension.
289
289
auto concrete = getConcrete ();
290
- auto ext = dyn_cast<ExtensionDecl>(concrete->getDeclContext ());
290
+ auto *dc = concrete->getRootConformance ()->getDeclContext ();
291
+ auto ext = dyn_cast<ExtensionDecl>(dc);
291
292
if (ext && AvailableAttr::isUnavailable (ext))
292
293
return true ;
293
294
Original file line number Diff line number Diff line change @@ -6464,9 +6464,6 @@ ProtocolConformance *swift::deriveImplicitSendableConformance(
6464
6464
auto inheritedConformance = classModule->checkConformance (
6465
6465
classDecl->mapTypeIntoContext (superclass),
6466
6466
proto, /* allowMissing=*/ false );
6467
- if (inheritedConformance.hasUnavailableConformance ())
6468
- inheritedConformance = ProtocolConformanceRef::forInvalid ();
6469
-
6470
6467
if (inheritedConformance) {
6471
6468
inheritedConformance = inheritedConformance
6472
6469
.mapConformanceOutOfContext ();
You can’t perform that action at this time.
0 commit comments