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> {
265
265
266
266
switch (attr->getBehavior ()) {
267
267
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
-
278
268
auto parameters = F->getParameters ();
279
269
if (!parameters)
280
270
return ;
Original file line number Diff line number Diff line change 42
42
43
43
struct TestAttributeCollisions {
44
44
@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}}
46
45
47
46
@execution ( concurrent) func test( arg: isolated MainActor) async { }
48
47
// 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