Skip to content

Commit 70adcad

Browse files
committed
Update test for improved strict-safety diagnostics
1 parent 9e09513 commit 70adcad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Interop/Cxx/class/safe-interop-mode.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ func useSafeParams(x: Owner, y: View, z: SafeEscapableAggregate, c: MyContainer)
8181
func useCfType(x: CFArray) {
8282
}
8383

84-
// expected-note@+1{{make global function 'useCppSpan' @unsafe to indicate that its use is not memory-safe}}
85-
func useCppSpan(x: SpanOfInt) { // expected-warning{{reference to unsafe type alias 'SpanOfInt'}}
84+
// expected-warning@+1{{global function 'useCppSpan' involves unsafe code; use '@unsafe' to indicate that its use is not memory-safe}}
85+
func useCppSpan(x: SpanOfInt) { // expected-note{{reference to unsafe type alias 'SpanOfInt'}}
8686
}
8787

88-
// expected-note@+1{{make global function 'useCppSpan2' @unsafe to indicate that its use is not memory-safe}}
89-
func useCppSpan2(x: SpanOfIntAlias) { // expected-warning{{reference to unsafe type alias 'SpanOfIntAlias'}}
88+
// expected-warning@+1{{global function 'useCppSpan2' involves unsafe code; use '@unsafe' to indicate that its use is not memory-safe}}
89+
func useCppSpan2(x: SpanOfIntAlias) { // expected-note{{reference to unsafe type alias 'SpanOfIntAlias'}}
9090
}

0 commit comments

Comments
 (0)