@@ -29,9 +29,9 @@ func testCaseTrivialValue() {
2929 // We only emit a warning here since we use the last write.
3030 //
3131 // TODO: Should we emit for all writes?
32- i. addOne ( ) // expected-warning {{'i' mutated after capture by concurrent closure}}
32+ i. addOne ( ) // expected-warning {{'i' mutated after capture by sendable closure}}
3333 // expected-note @-14 {{variable defined here}}
34- // expected-note @-14 {{variable captured by concurrent closure}}
34+ // expected-note @-14 {{variable captured by sendable closure}}
3535 // expected-note @-14 {{capturing use}}
3636 // expected-note @-14 {{capturing use}}
3737 // expected-note @-14 {{capturing use}}
@@ -46,9 +46,9 @@ func testCaseTrivialValue2() {
4646 }
4747
4848 i2 = 20
49- i2 += 21 // expected-warning {{'i2' mutated after capture by concurrent closure}}
49+ i2 += 21 // expected-warning {{'i2' mutated after capture by sendable closure}}
5050 // expected-note @-9 {{variable defined here}}
51- // expected-note @-9 {{variable captured by concurrent closure}}
51+ // expected-note @-9 {{variable captured by sendable closure}}
5252 // expected-note @-9 {{capturing use}}
5353 // expected-note @-9 {{capturing use}}
5454 // expected-note @-9 {{capturing use}}
@@ -62,9 +62,9 @@ func testCaseTrivialValue3() {
6262 print ( i3 + 19 )
6363 }
6464
65- i3 = 20 // expected-warning {{'i3' mutated after capture by concurrent closure}}
65+ i3 = 20 // expected-warning {{'i3' mutated after capture by sendable closure}}
6666 // expected-note @-8 {{variable defined here}}
67- // expected-note @-8 {{variable captured by concurrent closure}}
67+ // expected-note @-8 {{variable captured by sendable closure}}
6868 // expected-note @-8 {{capturing use}}
6969 // expected-note @-8 {{capturing use}}
7070 // expected-note @-8 {{capturing use}}
@@ -78,9 +78,9 @@ func testCaseTrivialValue4() {
7878 print ( i4 + 19 )
7979 }
8080
81- inoutUserInt ( & i4) // expected-warning {{'i4' mutated after capture by concurrent closure}}
81+ inoutUserInt ( & i4) // expected-warning {{'i4' mutated after capture by sendable closure}}
8282 // expected-note @-8 {{variable defined here}}
83- // expected-note @-8 {{variable captured by concurrent closure}}
83+ // expected-note @-8 {{variable captured by sendable closure}}
8484 // expected-note @-8 {{capturing use}}
8585 // expected-note @-8 {{capturing use}}
8686 // expected-note @-8 {{capturing use}}
@@ -98,9 +98,9 @@ func testCaseClass() {
9898 print ( i)
9999 }
100100
101- i = Klass ( ) // expected-warning {{'i' mutated after capture by concurrent closure}}
101+ i = Klass ( ) // expected-warning {{'i' mutated after capture by sendable closure}}
102102 // expected-note @-6 {{variable defined here}}
103- // expected-note @-6 {{variable captured by concurrent closure}}
103+ // expected-note @-6 {{variable captured by sendable closure}}
104104 // expected-note @-6 {{capturing use}}
105105}
106106
@@ -109,9 +109,9 @@ func testCaseClassInout() {
109109 f {
110110 print ( i2)
111111 }
112- inoutUserKlass ( & i2) // expected-warning {{'i2' mutated after capture by concurrent closure}}
112+ inoutUserKlass ( & i2) // expected-warning {{'i2' mutated after capture by sendable closure}}
113113 // expected-note @-5 {{variable defined here}}
114- // expected-note @-5 {{variable captured by concurrent closure}}
114+ // expected-note @-5 {{variable captured by sendable closure}}
115115 // expected-note @-5 {{capturing use}}
116116}
117117
@@ -154,9 +154,9 @@ func testCaseNonTrivialValue() {
154154 // We only emit a warning here since we use the last write.
155155 //
156156 // TODO: Should we emit for all writes?
157- i. i. addOne ( ) // expected-warning {{'i' mutated after capture by concurrent closure}}
157+ i. i. addOne ( ) // expected-warning {{'i' mutated after capture by sendable closure}}
158158 // expected-note @-14 {{variable defined here}}
159- // expected-note @-14 {{variable captured by concurrent closure}}
159+ // expected-note @-14 {{variable captured by sendable closure}}
160160 // expected-note @-14 {{capturing use}}
161161 // expected-note @-14 {{capturing use}}
162162 // expected-note @-14 {{capturing use}}
@@ -170,9 +170,9 @@ func testCaseNonTrivialValueInout() {
170170 }
171171
172172 // We only emit a warning here since we use the last write.
173- inoutUserOptKlass ( & i. k) // expected-warning {{'i' mutated after capture by concurrent closure}}
173+ inoutUserOptKlass ( & i. k) // expected-warning {{'i' mutated after capture by sendable closure}}
174174 // expected-note @-8 {{variable defined here}}
175- // expected-note @-8 {{variable captured by concurrent closure}}
175+ // expected-note @-8 {{variable captured by sendable closure}}
176176 // expected-note @-8 {{capturing use}}
177177 // expected-note @-8 {{capturing use}}
178178}
@@ -190,9 +190,9 @@ func testCaseAddressOnlyAllocBoxToStackable<T : MyProt & Sendable>(i : T) {
190190 }
191191
192192 // TODO: Make sure we emit these once we support address only types!
193- inoutUserOptKlass ( & i2. k) // xpected-warning {{'i2' mutated after capture by concurrent closure}}
193+ inoutUserOptKlass ( & i2. k) // xpected-warning {{'i2' mutated after capture by sendable closure}}
194194 // xpected-note @-8 {{variable defined here}}
195- // xpected-note @-8 {{variable captured by concurrent closure}}
195+ // xpected-note @-8 {{variable captured by sendable closure}}
196196 // xpected-note @-8 {{capturing use}}
197197 // xpected-note @-8 {{capturing use}}
198198}
@@ -208,9 +208,9 @@ func testCaseAddressOnlyNoAllocBoxToStackable<T : MyProt & Sendable>(i : T) {
208208 }
209209
210210 // TODO: Make sure we emit these once we support address only types!
211- inoutUserOptKlass ( & i2. k) // xpected-warning {{'i2' mutated after capture by concurrent closure}}
211+ inoutUserOptKlass ( & i2. k) // xpected-warning {{'i2' mutated after capture by sendable closure}}
212212 // xpected-note @-8 {{variable defined here}}
213- // xpected-note @-8 {{variable captured by concurrent closure}}
213+ // xpected-note @-8 {{variable captured by sendable closure}}
214214 // xpected-note @-8 {{capturing use}}
215215 // xpected-note @-8 {{capturing use}}
216216}
0 commit comments