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 dc88c0a commit 6fc8123Copy full SHA for 6fc8123
lib/AST/FeatureSet.cpp
@@ -511,16 +511,6 @@ static bool usesFeatureNoncopyableGenerics(Decl *decl) {
511
return true;
512
513
if (auto *valueDecl = dyn_cast<ValueDecl>(decl)) {
514
- if (isa<StructDecl, EnumDecl, ClassDecl>(decl)) {
515
- auto *nominalDecl = cast<NominalTypeDecl>(valueDecl);
516
-
517
- InvertibleProtocolSet inverses;
518
- bool anyObject = false;
519
- getDirectlyInheritedNominalTypeDecls(nominalDecl, inverses, anyObject);
520
- if (!inverses.empty())
521
- return true;
522
- }
523
524
if (auto proto = dyn_cast<ProtocolDecl>(decl)) {
525
auto reqSig = proto->getRequirementSignature();
526
0 commit comments