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
// CHECK-LABEL: sil hidden [ossa] @${{.*}}checked_cast_addr_nonactive_result{{.*}} : $@convention(thin) <T where T : Differentiable> (@in_guaranteed T) -> @out T {
197
197
// CHECK: checked_cast_addr_br take_always T in %3 : $*T to Float in %5 : $*Float, bb1, bb2
awaittransferToMain(test) // expected-tns-warning {{sending 'test' risks causing data races}}
888
888
// expected-tns-note @-1 {{sending 'test' to main actor-isolated global function 'transferToMain' risks causing data races between main actor-isolated and local nonisolated uses}}
889
889
// expected-complete-warning @-2 {{passing argument of non-sendable type 'StructFieldTests' into main actor-isolated context may introduce data races}}
890
-
_ = test.letSendableNonTrivial
891
-
useValue(test) // expected-tns-note {{access can happen concurrently}}
890
+
_ = test.letSendableNonTrivial // expected-tns-note {{access can happen concurrently}}
awaittransferToMain(test) // expected-tns-warning {{sending 'test' risks causing data races}}
969
969
// expected-tns-note @-1 {{sending 'test' to main actor-isolated global function 'transferToMain' risks causing data races between main actor-isolated and local nonisolated uses}}
970
970
// expected-complete-warning @-2 {{passing argument of non-sendable type 'StructFieldTests' into main actor-isolated context may introduce data races}}
971
-
_ = test.varSendableNonTrivial
972
-
useValue(test) // expected-tns-note {{access can happen concurrently}}
971
+
_ = test.varSendableNonTrivial // expected-tns-note {{access can happen concurrently}}
0 commit comments