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.
isNoncopyable()
1 parent 63b3054 commit f71dabaCopy full SHA for f71daba
lib/Sema/TypeCheckAttr.cpp
@@ -7044,7 +7044,7 @@ void AttributeChecker::visitEagerMoveAttr(EagerMoveAttr *attr) {
7044
if (visitLifetimeAttr(attr))
7045
return;
7046
if (auto *nominal = dyn_cast<NominalTypeDecl>(D)) {
7047
- if (nominal->getDeclaredInterfaceType()->isNoncopyable()) {
+ if (nominal->getSelfTypeInContext()->isNoncopyable()) {
7048
diagnoseAndRemoveAttr(attr, diag::eagermove_and_noncopyable_combined);
7049
7050
}
0 commit comments