File tree 2 files changed +2
-4
lines changed 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,8 @@ bool ProtocolConformanceRef::hasUnavailableConformance() const {
288
288
289
289
// Check whether this conformance is on an unavailable extension.
290
290
auto concrete = getConcrete ();
291
- auto ext = dyn_cast<ExtensionDecl>(concrete->getDeclContext ());
291
+ auto *dc = concrete->getRootConformance ()->getDeclContext ();
292
+ auto ext = dyn_cast<ExtensionDecl>(dc);
292
293
if (ext && AvailableAttr::isUnavailable (ext))
293
294
return true ;
294
295
Original file line number Diff line number Diff line change @@ -6249,9 +6249,6 @@ ProtocolConformance *swift::deriveImplicitSendableConformance(
6249
6249
auto inheritedConformance = ModuleDecl::checkConformance (
6250
6250
classDecl->mapTypeIntoContext (superclass),
6251
6251
proto, /* allowMissing=*/ false );
6252
- if (inheritedConformance.hasUnavailableConformance ())
6253
- inheritedConformance = ProtocolConformanceRef::forInvalid ();
6254
-
6255
6252
if (inheritedConformance) {
6256
6253
inheritedConformance = inheritedConformance
6257
6254
.mapConformanceOutOfContext ();
You can’t perform that action at this time.
0 commit comments