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
"%0 closure captures reference to mutable %1 which remains modifiable by %select{%3 code|code in the current task}2", (StringRef, Identifier, bool, StringRef))
tryawaitwithThrowingTaskGroup(of:Void.self){ group in
1796
1796
group.addTask{ // expected-warning {{passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure}}
1797
-
useValue(x) // expected-note {{closure captures reference to mutable parameter 'x' which is accessible to code in the current task}}
1797
+
useValue(x) // expected-note {{closure captures reference to mutable parameter 'x' which remains modifiable by code in the current task}}
tryawaitwithThrowingTaskGroup(of:Void.self){ group in
1809
1809
group.addTask{ // expected-warning {{passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure}}
1810
-
useValue(x) // expected-note {{closure captures reference to mutable var 'x' which is accessible to code in the current task}}
1810
+
useValue(x) // expected-note {{closure captures reference to mutable var 'x' which remains modifiable by code in the current task}}
tryawaitwithThrowingTaskGroup(of:Void.self){ taskGroup in // expected-warning {{no calls to throwing functions occur within 'try' expression}}
1867
1867
taskGroup.addTask{ // expected-warning {{passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure}}
1868
-
result.append(input) // expected-note {{closure captures reference to mutable var 'result' which is accessible to code in the current task}}
1868
+
result.append(input) // expected-note {{closure captures reference to mutable var 'result' which remains modifiable by code in the current task}}
useValue(x) // expected-error {{sending 'x' risks causing data races}}
53
-
// expected-note @-1 {{task-isolated 'x' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses}}
53
+
// expected-note @-1 {{main actor-isolated closure captures reference to mutable 'x' which remains modifiable by code in the current task}}
useValue(x) // expected-error {{sending 'x' risks causing data races}}
145
-
// expected-note @-1 {{task-isolated 'x' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses}}
145
+
// expected-note @-1 {{main actor-isolated closure captures reference to mutable 'x' which remains modifiable by code in the current task}}
useValue(x)// expected-error {{sending 'x' risks causing data races}}
194
+
useValue(x) // expected-error {{sending 'x' risks causing data races}}
195
195
// expected-note @-1 {{task-isolated 'x' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses}}
useValue(x) // expected-error {{sending 'x' risks causing data races}}
385
-
// expected-note @-1 {{task-isolated 'x' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses}}
385
+
// expected-note @-1 {{main actor-isolated closure captures reference to mutable 'x' which remains modifiable by code in the current task}}
useValue(x) // expected-error {{sending 'x' risks causing data races}}
396
-
// expected-note @-1 {{task-isolated 'x' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses}}
396
+
// expected-note @-1 {{main actor-isolated closure captures reference to mutable 'x' which remains modifiable by code in the current task}}
useValue(x) // expected-error {{sending 'x' risks causing data races}}
427
-
// expected-note @-1 {{task-isolated 'x' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses}}
427
+
// expected-note @-1 {{main actor-isolated closure captures reference to mutable 'x' which remains modifiable by code in the current task}}
useValue(x) // expected-error {{sending 'x' risks causing data races}}
438
-
// expected-note @-1 {{task-isolated 'x' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses}}
438
+
// expected-note @-1 {{main actor-isolated closure captures reference to mutable 'x' which remains modifiable by code in the current task}}
useValue(x) // expected-error {{sending 'x' risks causing data races}}
559
-
// expected-note @-1 {{task-isolated 'x' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses}}
559
+
// expected-note @-1 {{main actor-isolated closure captures reference to mutable 'x' which remains modifiable by code in the current task}}
useValue(x) // expected-error {{sending 'x' risks causing data races}}
572
-
// expected-note @-1 {{task-isolated 'x' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses}}
572
+
// expected-note @-1 {{main actor-isolated closure captures reference to mutable 'x' which remains modifiable by code in the current task}}
0 commit comments