swift
Downgrade the error about `#isolation` in `@_unsafeInheritExecutor` when the concurrency library is old
#75347
Merged

Downgrade the error about `#isolation` in `@_unsafeInheritExecutor` when the concurrency library is old #75347

DougGregor
DougGregor339 days ago

The introduction of the error concerning use of #isolation within an @_unsafeInheritExecutor function was carefully staged between the concurrency library and compiler to avoid breaking source compatibility. However, it is a source compatibility break when dealing certain revisions of the concurrency library that adopted #isolation prior to the compiler error. Detect when the _Concurrency library doesn't have the necessary workarounds in it and downgrade the error to a warning.

Fixes rdar://132023573.

DougGregor Downgrade the error about `#isolation` in `@_unsafeInheritExecutor` w…
d4ba753a
DougGregor DougGregor requested a review from hborla hborla 339 days ago
DougGregor DougGregor requested a review from slavapestov slavapestov 339 days ago
DougGregor DougGregor requested a review from xedin xedin 339 days ago
DougGregor
DougGregor339 days ago

@swift-ci please smoke test

hborla
hborla approved these changes on 2024-07-18
hborla339 days ago

Heh. This looks safe.

DougGregor DougGregor merged 1baccc2a into main 339 days ago
DougGregor DougGregor deleted the isolation-in-unsafe-inherit-downgrade-old-concurrency-lib branch 339 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone