File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -265,16 +265,6 @@ class AttributeChecker : public AttributeVisitor<AttributeChecker> {
265265
266266 switch (attr->getBehavior ()) {
267267 case ExecutionKind::Concurrent: {
268- // 'concurrent' doesn't work with explicit `nonisolated`
269- if (F->hasExplicitIsolationAttribute ()) {
270- if (F->getAttrs ().hasAttribute <NonisolatedAttr>()) {
271- diagnoseAndRemoveAttr (
272- attr,
273- diag::attr_execution_concurrent_incompatible_with_nonisolated, F);
274- return ;
275- }
276- }
277-
278268 auto parameters = F->getParameters ();
279269 if (!parameters)
280270 return ;
Original file line number Diff line number Diff line change 4242
4343struct TestAttributeCollisions {
4444 @execution ( concurrent) nonisolated func testNonIsolated( ) async { }
45- // expected-error@-1 {{cannot use '@execution(concurrent)' and 'nonisolated' on the same 'testNonIsolated()' because they serve the same purpose}}
4645
4746 @execution ( concurrent) func test( arg: isolated MainActor) async { }
4847 // expected-error@-1 {{cannot use '@execution(concurrent)' on instance method 'test(arg:)' because it has an isolated parameter: 'arg'}}
You can’t perform that action at this time.
0 commit comments