Konrad `ktoso` Malawski
0d3a4b44b8
[Concurrency] if let value on async value should be banned (not crash)
...
The issue is that the shorthand if let syntax injects an implicit
expression: https://github.com/apple/swift/pull/40694/ in ParseStmt and
that the 'diagnoseUnhandledAsyncSite' explicitly avoids reporting errors
in implicit expressions.
This change is that we don't mark the implicit declref code emitted by
the `if let prop` as implicit anymore, and this way the reporting works
out as expected.
Added some tests covering this as well as properly erroring out for the
nonexistent syntax of shortand + awaiting which doesn't exist, and we
properly error on it.
Resolves rdar://126169564
2024-06-19 17:20:18 +09:00
..
2024-02-15 14:06:28 -08:00
2024-03-09 05:29:01 -08:00
2023-06-16 15:05:44 -04:00
2023-02-08 15:09:53 -08:00
2023-02-08 15:09:53 -08:00
2024-02-20 18:26:05 -05:00
2024-02-24 07:25:59 -05:00
2024-02-20 18:26:05 -05:00
2024-02-15 14:06:28 -08:00
2024-02-20 18:26:05 -05:00
2024-02-20 18:26:05 -05:00
2024-02-20 18:26:05 -05:00
2023-06-16 15:05:44 -04:00
2023-02-08 15:09:53 -08:00
2023-10-26 12:47:29 -07:00
2023-10-26 08:52:25 -07:00
2024-02-06 11:09:06 -08:00
2022-12-21 15:08:15 -08:00
2023-10-26 08:52:25 -07:00
2022-12-21 15:08:15 -08:00
2023-06-16 15:05:44 -04:00
2023-10-20 16:14:52 -07:00
2023-02-08 15:09:53 -08:00
2023-02-08 15:09:53 -08:00
2024-03-18 15:43:38 -07:00
2024-06-12 10:13:50 -07:00
2024-05-14 11:28:23 -07:00
2023-06-16 15:05:44 -04:00
2023-12-08 22:33:12 -08:00
2023-04-04 15:20:11 -07:00
2023-06-08 16:33:14 -07:00
2024-05-07 18:51:13 -07:00
2023-06-16 14:32:30 -07:00
2023-06-16 14:32:30 -07:00
2023-04-10 18:13:42 -07:00
2024-04-04 17:23:32 -07:00
2023-08-08 11:25:11 -07:00
2024-06-12 10:13:50 -07:00
2024-05-14 11:28:23 -07:00
2023-06-16 15:05:44 -04:00
2024-04-05 15:34:36 -07:00
2023-02-21 15:33:19 -05:00
2024-05-07 13:58:57 -07:00
2023-04-11 10:40:09 -07:00
2023-06-16 15:05:44 -04:00
2024-05-10 16:12:56 -07:00
2024-04-17 11:01:30 -07:00
2024-05-22 09:35:37 -07:00
2024-05-07 13:58:57 -07:00
2021-11-04 11:17:52 -07:00
2021-11-04 11:17:52 -07:00
2024-05-22 09:35:37 -07:00
2024-05-10 16:12:56 -07:00
2024-04-16 10:28:02 -07:00
2023-06-16 15:05:44 -04:00
2024-03-25 13:35:24 -07:00
2023-06-16 15:05:44 -04:00
2024-02-29 14:27:38 -08:00
2024-02-05 16:44:44 -08:00
2024-05-29 15:45:05 -07:00
2024-02-20 20:03:14 -08:00
2023-04-04 15:20:11 -07:00
2024-01-12 10:10:13 -08:00
2022-01-27 20:56:10 -08:00
2022-01-27 20:56:10 -08:00
2023-02-08 15:09:53 -08:00
2023-06-16 14:32:30 -07:00
2023-04-04 15:20:11 -07:00
2023-04-04 15:20:11 -07:00
2023-06-16 15:05:44 -04:00
2023-06-16 15:05:44 -04:00
2023-06-16 15:05:44 -04:00
2023-06-16 15:05:44 -04:00
2023-06-16 15:05:44 -04:00
2023-02-08 15:09:53 -08:00
2023-06-16 15:05:44 -04:00
2023-02-08 15:09:53 -08:00
2022-01-18 14:04:56 -08:00
2022-12-14 14:18:28 -08:00
2023-06-16 14:32:30 -07:00
2024-06-19 17:20:18 +09:00
2023-06-16 14:32:30 -07:00
2023-06-16 14:32:30 -07:00
2023-06-16 15:05:44 -04:00
2022-02-18 17:29:04 -08:00
2024-06-19 17:20:18 +09:00
2023-04-04 15:20:11 -07:00
2024-02-26 13:31:04 -08:00
2023-10-06 13:55:33 -07:00
2023-02-08 15:09:53 -08:00
2023-06-16 15:05:44 -04:00
2023-08-23 16:32:19 -07:00
2024-05-22 09:35:37 -07:00
2023-06-16 15:05:44 -04:00
2023-06-29 17:06:24 +09:00
2023-08-23 17:07:12 -07:00
2023-06-16 15:05:44 -04:00
2024-04-26 16:31:16 -07:00
2024-03-12 17:38:00 -07:00
2023-02-24 15:10:16 -05:00
2023-06-16 15:05:44 -04:00
2023-09-20 11:25:39 -07:00
2023-05-31 17:41:26 -07:00
2023-05-10 12:29:42 -07:00
2023-06-16 15:05:44 -04:00
2023-08-17 13:42:23 -07:00
2023-01-13 12:55:39 -08:00
2024-04-29 12:51:28 -07:00
2023-06-16 15:05:44 -04:00
2024-03-25 13:35:24 -07:00
2022-02-18 17:29:04 -08:00
2023-06-29 16:16:56 -07:00
2023-06-16 15:05:44 -04:00
2024-05-01 18:44:33 -07:00
2023-06-29 16:16:56 -07:00
2022-07-19 12:22:29 -04:00
2022-05-26 09:58:59 -07:00
2024-02-29 10:13:10 -08:00
2024-04-10 09:38:02 -07:00
2023-02-08 15:09:53 -08:00
2023-08-06 20:21:15 +08:00
2024-04-17 13:56:18 -07:00
2021-10-12 16:53:30 -07:00
2023-10-26 08:38:22 -07:00
2023-09-29 08:32:36 -07:00
2023-07-26 18:42:44 +01:00
2023-11-14 06:26:48 -08:00
2023-11-14 06:26:48 -08:00
2024-04-04 17:23:32 -07:00
2023-06-16 15:05:44 -04:00
2024-02-29 10:13:10 -08:00
2023-04-04 15:20:11 -07:00
2024-05-29 18:13:17 -07:00
2023-12-19 06:46:52 -08:00
2022-05-04 10:24:11 -07:00
2024-05-03 14:46:04 -07:00
2023-04-10 14:23:43 -07:00
2024-04-05 15:34:36 -07:00
2023-06-16 15:05:44 -04:00
2023-02-08 15:09:53 -08:00
2023-08-08 11:25:11 -07:00
2023-06-16 15:05:44 -04:00
2023-06-16 15:05:44 -04:00
2023-07-24 14:28:19 -07:00
2024-04-04 17:23:32 -07:00
2023-02-08 15:09:53 -08:00
2022-08-21 03:00:44 +03:00
2023-06-16 15:05:44 -04:00
2023-04-04 15:20:11 -07:00
2022-06-15 08:35:16 -07:00
2024-04-29 15:40:31 -07:00
2024-03-08 13:29:44 -08:00
2023-06-16 15:05:44 -04:00
2024-06-12 23:07:25 -07:00
2023-06-16 15:05:44 -04:00
2023-06-16 15:05:44 -04:00
2023-05-10 12:29:42 -07:00
2024-02-28 12:48:17 -08:00
2024-05-10 18:47:28 -07:00
2023-04-04 15:20:11 -07:00
2024-05-24 16:01:11 -07:00
2024-04-02 11:34:23 -07:00
2024-05-10 16:12:56 -07:00
2024-05-10 16:12:56 -07:00
2024-05-10 16:12:56 -07:00
2024-02-28 12:48:17 -08:00
2023-09-25 17:43:34 -07:00
2023-06-16 15:05:44 -04:00
2023-06-15 13:24:59 -07:00
2023-08-08 11:25:11 -07:00
2024-03-12 16:57:04 -07:00
2021-10-20 14:51:11 -07:00
2021-10-14 18:30:01 -07:00
2023-06-16 15:05:44 -04:00
2023-06-16 15:05:44 -04:00
2023-02-08 15:09:53 -08:00
2023-09-22 11:27:18 -04:00
2023-06-16 15:05:44 -04:00
2023-07-27 12:14:54 -04:00
2023-02-08 15:09:53 -08:00
2024-02-28 12:48:17 -08:00
2024-02-28 12:48:17 -08:00
2023-06-16 15:05:44 -04:00
2023-06-16 15:05:44 -04:00
2023-04-04 15:20:11 -07:00