You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/Interop/Cxx/class/safe-interop-mode.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -55,20 +55,20 @@ struct MyContainer {
55
55
import Test
56
56
import CoreFoundation
57
57
58
-
// expected-note@+1{{mark the enclosing global function 'useUnsafeParam' '@unsafe' to allow it to use unsafe constructs}}{{1-1=@unsafe }}
58
+
// expected-note@+1{{make global function 'useUnsafeParam' @unsafe to indicate that its use is not memory-safe}}{{1-1=@unsafe }}
59
59
func useUnsafeParam(x:Unannotated){ // expected-warning{{reference to unsafe struct 'Unannotated'}}
60
60
}
61
61
62
-
// expected-note@+2{{mark the enclosing global function 'useUnsafeParam2' '@unsafe' to allow it to use unsafe constructs}}{{10:1-1=@unsafe }}
62
+
// expected-note@+2{{make global function 'useUnsafeParam2' @unsafe to indicate that its use is not memory-safe}}{{10:1-1=@unsafe }}
63
63
@available(SwiftStdlib 5.8,*)
64
64
func useUnsafeParam2(x:UnsafeReference){ // expected-warning{{reference to unsafe class 'UnsafeReference'}}
65
65
}
66
66
67
-
// expected-note@+1{{mark the enclosing global function 'useUnsafeParam3' '@unsafe' to allow it to use unsafe constructs}}{{1-1=@unsafe }}
67
+
// expected-note@+1{{make global function 'useUnsafeParam3' @unsafe to indicate that its use is not memory-safe}}{{1-1=@unsafe }}
68
68
func useUnsafeParam3(x:UnknownEscapabilityAggregate){ // expected-warning{{reference to unsafe struct 'UnknownEscapabilityAggregate'}}
69
69
}
70
70
71
-
// expected-note@+1{{mark the enclosing global function 'useSafeParams' '@unsafe' to allow it to use unsafe constructs}}{{1-1=@unsafe }}
71
+
// expected-note@+1{{make global function 'useSafeParams' @safe(unchecked) to allow it to use unsafe constructs in its definition}}{{1-1=@safe(unchecked) }}
// expected-note@+1 7{{mark the enclosing global function 'testMe' '@unsafe' to allow it to use unsafe constructs}}{{1-1=@unsafe }}
77
+
// expected-note@+2 5{{make global function 'testMe' @safe(unchecked) to allow it to use unsafe constructs in its definition}}{{1-1=@safe(unchecked) }}
78
+
// expected-note@+1 2{{make global function 'testMe' @unsafe to indicate that its use is not memory-safe}}{{1-1=@unsafe }}
78
79
func testMe(
79
80
_ pointer:PointerType, // expected-warning{{reference to unsafe struct 'PointerType'}}
80
81
_ unsafeSuper:UnsafeSuper // expected-warning{{reference to unsafe class 'UnsafeSuper'}}
0 commit comments