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 11aaebc commit 0efd4dfCopy full SHA for 0efd4df
lib/Sema/TypeCheckAttr.cpp
@@ -6631,7 +6631,7 @@ void AttributeChecker::visitSendableAttr(SendableAttr *attr) {
6631
if (auto *funcDecl = dyn_cast<AbstractFunctionDecl>(D)) {
6632
if (auto selfdecl = funcDecl->getImplicitSelfDecl()) {
6633
if (!isSendableType(dc->getParentModule(), selfdecl->getTypeInContext())) {
6634
- diagnoseAndRemoveAttr(attr, diag::nonsendable_instance_method)
+ diagnose(attr, diag::nonsendable_instance_method)
6635
.warnUntilSwiftVersion(6);
6636
}
6637
0 commit comments