File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -3142,16 +3142,6 @@ DirectlyReferencedTypeDecls InheritedDeclsReferencedRequest::evaluate(
3142
3142
llvm::PointerUnion<const TypeDecl *, const ExtensionDecl *> decl,
3143
3143
unsigned index) const {
3144
3144
3145
- // FIXME: this is an awful hack for NoncopyableGenerics.
3146
- // The correct fix here is to integrate the guts of
3147
- // `ProtocolDecl::requiresInvertible` into this request, so that it works
3148
- // automatically, not only for `ProtocolDecl::inheritsFrom` but for other
3149
- // nominal types too.
3150
- if (auto typeDecl = decl.dyn_cast <const TypeDecl *>())
3151
- if (auto protoDecl = dyn_cast<ProtocolDecl>(typeDecl))
3152
- if (protoDecl->isSpecificProtocol (KnownProtocolKind::Sendable))
3153
- return {};
3154
-
3155
3145
// Prefer syntactic information when we have it.
3156
3146
const TypeLoc &typeLoc = InheritedTypes (decl).getEntry (index);
3157
3147
if (auto typeRepr = typeLoc.getTypeRepr ()) {
You can’t perform that action at this time.
0 commit comments