We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43af914 commit 5bc7ea1Copy full SHA for 5bc7ea1
lib/AST/FeatureSet.cpp
@@ -551,6 +551,13 @@ static bool usesFeatureNoncopyableGenerics(Decl *decl) {
551
SmallVector<InverseRequirement, 2> inverseReqs;
552
553
if (auto *proto = dyn_cast<ProtocolDecl>(decl)) {
554
+
555
+ // We have baked-in support for Sendable not needing to state inverses
556
+ // in its inheritance clause within interface files. So, it technically is
557
+ // not using the feature with respect to the concerns of an interface file.
558
+ if (proto->isSpecificProtocol(KnownProtocolKind::Sendable))
559
+ return false;
560
561
proto->getRequirementSignature().getRequirementsWithInverses(
562
proto, reqs, inverseReqs);
563
} else if (auto *genCtx = decl->getAsGenericContext()) {
0 commit comments