Skip to content

Commit f71daba

Browse files
committed
[NoncopyableGenerics] fix isNoncopyable() calls
This is a batch of otherwise hard-to-write-a-regression test fixes for situations that came up while testing with the stdlib.
1 parent 63b3054 commit f71daba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckAttr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7044,7 +7044,7 @@ void AttributeChecker::visitEagerMoveAttr(EagerMoveAttr *attr) {
70447044
if (visitLifetimeAttr(attr))
70457045
return;
70467046
if (auto *nominal = dyn_cast<NominalTypeDecl>(D)) {
7047-
if (nominal->getDeclaredInterfaceType()->isNoncopyable()) {
7047+
if (nominal->getSelfTypeInContext()->isNoncopyable()) {
70487048
diagnoseAndRemoveAttr(attr, diag::eagermove_and_noncopyable_combined);
70497049
return;
70507050
}

0 commit comments

Comments
 (0)