Michael Gottesman
99e3f7fb13
[region-isolation] Make RegionBasedIsolation an upcoming feature for swift 6.
...
To make the tests pass, I had to teach sil-opt how to setup upcoming features
since it did not know how to parse them.
rdar://124100266
2024-03-05 15:15:14 -08:00
Michael Gottesman
cb46851194
[region-isolation] Rename the experimental feature to RegionBasedIsolation.
...
This ensures that the pass is called TransferNonSendable but the experimental
feature is RegionBasedIsolation.
2023-10-26 12:01:44 -07:00
Michael Gottesman
0bad8f9b67
[region-isolation] Rename SendNonSendable.cpp -> TransferNonSendable.cpp.
2023-10-26 12:01:44 -07:00
Michael Gottesman
b53af9419c
[send-non-sendable] Add REQUIRES: asserts to concurrency tests that use SendNonSendable.
2023-08-31 19:25:23 -07:00
Michael Gottesman
026f1735b5
[send-non-sendable] Update concurrency tests so that we run them in all concurrency modes as appropriate.
...
This means that:
1. In test cases where minimal is the default (swift 5 without
-warn-concurrency), I added RUN lines for targeted, complete, and complete +
sns.
2. In test cases where complete is the default (swift 6, -warn-concurrency,
specified complete with -strict-concurrency), I added a send non-sendable run
line.
In each of these cases, I added additional expected-* lines as appropriate so
the tests can compile in each mode successfully.
2023-08-30 13:40:17 -07:00
Doug Gregor
1e2012d816
Disable availability checking in tests that use concurrency
2021-07-20 12:46:26 -07:00
Doug Gregor
06dc77ddf3
Revert "[Concurrency] Resyntax 'async let' as 'spawn let'."
...
This reverts commit 41f42fabbf .
2021-05-06 22:18:36 -07:00
Doug Gregor
41f42fabbf
[Concurrency] Resyntax 'async let' as 'spawn let'.
...
This helps track the proposal.
2021-04-29 23:28:16 -07:00
Evan Wilde
3da0a540eb
Update tests
...
This patch updates all the tests to accept the new error messages.
*Gack* so many things needed cleaning up.
2021-04-24 07:51:18 -07:00
Slava Pestov
8b4d58988d
Sema: Fix effect checking issues with 'async let' and string interpolation
2021-03-29 23:49:33 -04:00
Doug Gregor
c76dac7155
Banish @asyncHandler to a hidden flag.
...
We don't want @asyncHandler to be part of the concurrency model, so put
it behind a different flag.
2021-03-25 16:45:21 -07:00
Kavon Farvardin
74eb1a7ae6
allow property/subscript access expressions for actors in typechecker
...
We now mark some DeclRefExpr and LookupExprs as implicitly async
during typechecking, depending on whether they appear in a context
that is only performing a read / get operation, and whether they
are cross-actor operations.
also resolves rdar://72403401 by improving the error messages
(no more vague "'await' in async context" when its clearly a call!)
2021-03-04 18:37:32 -08:00
Slava Pestov
2c19e70b2f
Sema: Initial implementation of 'reasync' body checking
...
This also implements rethrows checking for rethrows-by-conformance
functions bodies, too.
2021-03-02 00:53:25 -05:00
Slava Pestov
586885bbf7
Sema: Preliminary implementation of 'reasync' call site checking
...
Part of <rdar://problem/71098795>.
2021-03-02 00:49:47 -05:00
Slava Pestov
6655f517bf
Sema: Reject invalid 'reasync' functions
2021-03-02 00:49:34 -05:00
Slava Pestov
6c69d17e0c
Parse: Implement parsing for 'reasync' attribute
...
Part of <rdar://problem/71098795>.
2021-02-15 22:18:54 -05:00