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
[Diagnostics] Remove unhelpful notes from witness-isolation diagnostics
When diagnosing an isolation mismatch between a requirement and witness,
we would produce notes on the requirement itself suggesting the addition of
`async`. This is almost never what you want to do, and is often so far
away from the actual conforming type as to be useless. Remove this note,
and the non-function fallback that just points at the requirement, because
they are unhelpful.
This is staging for a rework of the way we deal with conformance-level
actor isolation problems.
Copy file name to clipboardExpand all lines: test/Concurrency/actor_isolation.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1504,7 +1504,7 @@ class MA {
1504
1504
@SomeGlobalActorclassSGA:MA{} // expected-error {{global actor 'SomeGlobalActor'-isolated class 'SGA' has different actor isolation from main actor-isolated superclass 'MA'}}
1505
1505
1506
1506
protocolSGA_Proto{
1507
-
@SomeGlobalActorfunc method() // expected-note {{mark the protocol requirement 'method()' 'async' to allow actor-isolated conformances}}
1507
+
@SomeGlobalActorfunc method()
1508
1508
}
1509
1509
1510
1510
// try to override a MA method with inferred isolation from a protocol requirement
@@ -1614,7 +1614,7 @@ class OverridesNonsiolatedInit: SuperWithNonisolatedInit {
0 commit comments