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
Test: skip manual_ownership.swift on simulators / devices
The diagnostic messages are not yet stabilized, so we're
getting a differently-worded message for the same
fundamental issue, depending on the targeted platform.
rdar://164852821
Copy file name to clipboardExpand all lines: test/SIL/manual_ownership.swift
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,18 @@
4
4
5
5
// REQUIRES: swift_feature_ManualOwnership
6
6
7
+
// FIXME(rdar://164852821): Some of the diagnostic message tailoring for assignments
8
+
// are unstable when targeting platforms like the simulator, since we seem to emit
9
+
// slightly different SIL which then throws off the heuristics. For example,
10
+
//
11
+
// <snip>/swift/test/SIL/manual_ownership.swift:431:68: error: incorrect message found
12
+
// self.baseCollection = baseCollection
13
+
// // expected-warning@-1 {{accessing 'baseCollection' may produce a copy}}
14
+
// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
+
// closure capture of 'baseCollection' requires independent copy of it; write [baseCollection = copy baseCollection] in the closure's capture list to acknowledge
0 commit comments