Skip to content

Commit a5df17e

Browse files
committed
Suppress new @safe @unsafe error in Swift interfaces
1 parent b2f0ce4 commit a5df17e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/TypeCheckAttr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8144,7 +8144,8 @@ void AttributeChecker::visitUnsafeAttr(UnsafeAttr *attr) {
81448144
if (auto safeAttr = D->getAttrs().getAttribute<SafeAttr>()) {
81458145
D->diagnose(diag::safe_and_unsafe_attr, D)
81468146
.highlight(attr->getRange())
8147-
.highlight(safeAttr->getRange());
8147+
.highlight(safeAttr->getRange())
8148+
.warnInSwiftInterface(D->getDeclContext());
81488149
}
81498150
}
81508151

0 commit comments

Comments
 (0)