Doug Gregor
b5cce1f694
[SE-0466] Don't infer @MainActor on types conforming to Sendable
...
When the default isolation is main-actor, don't infer @MainActor
for a type that conforms to a protocol P in its primary definition when
P inherits from Sendable. Such types should remain non-isolated
because they're highly unlikely to be able to implement the P
conformance (which cannot be isolated).
Put this feature behind a new experimental flag,
SendableProhibitsMainActorInference.
Implements rdar://151029300
2025-06-27 15:14:26 -07:00
..
2024-02-21 11:20:06 -08:00
2023-07-13 11:22:35 -07:00
2024-06-22 08:53:22 -04:00
2025-03-11 01:15:33 +00:00
2025-04-03 16:40:47 -04:00
2024-09-26 17:02:10 -07:00
2025-01-28 10:54:50 -08:00
2024-02-21 11:20:06 -08:00
2024-02-21 11:20:06 -08:00
2023-07-27 13:02:22 -07:00
2024-02-21 11:20:06 -08:00
2025-06-06 11:08:44 -07:00
2025-05-08 17:15:34 -04:00
2024-02-21 11:20:06 -08:00
2024-02-09 16:47:03 +00:00
2024-09-11 19:58:14 +01:00
2024-02-21 11:20:06 -08:00
2024-09-24 15:18:26 -07:00
2025-03-28 14:12:27 -07:00
2023-09-15 18:27:49 +01:00
2024-02-21 11:20:06 -08:00
2023-07-25 12:28:28 -07:00
2024-01-28 22:30:26 -05:00
2024-01-28 22:30:26 -05:00
2024-04-08 08:58:58 -07:00
2025-05-14 20:28:46 -07:00
2025-06-27 15:14:26 -07:00
2025-05-14 20:28:46 -07:00
2024-01-05 13:48:32 -08:00
2024-02-21 11:20:06 -08:00
2024-05-30 13:36:29 -07:00
2024-02-21 11:20:06 -08:00
2025-01-08 11:38:53 -08:00
2024-03-21 14:16:20 -07:00
2023-11-16 10:59:23 -08:00
2024-12-06 16:15:15 +08:00
2025-06-02 23:59:38 -07:00
2024-02-21 11:20:06 -08:00
2025-01-17 10:41:07 -08:00
2023-07-25 12:28:27 -07:00
2025-01-03 16:23:16 +01:00
2024-05-20 22:08:33 -07:00
2023-12-15 14:35:28 -05:00
2025-03-11 17:18:43 -04:00
2024-05-01 14:48:43 -07:00
2024-02-23 20:04:51 -08:00
2023-07-27 13:02:22 -07:00
2024-02-21 11:20:06 -08:00
2024-02-21 11:20:06 -08:00
2025-01-23 02:00:43 -05:00
2024-02-21 11:20:06 -08:00
2024-03-13 22:25:47 -07:00
2025-03-29 10:47:23 -04:00
2024-02-21 11:20:06 -08:00
2023-11-15 13:02:34 -08:00
2024-02-21 11:20:06 -08:00
2025-04-07 17:05:35 +01:00
2024-03-13 22:25:47 -07:00
2024-09-11 13:34:42 +02:00
2024-05-30 13:08:42 +02:00
2024-09-03 15:41:10 -07:00
2024-02-21 11:20:06 -08:00
2024-01-24 20:45:50 -05:00
2023-08-23 15:36:24 -07:00
2024-02-19 11:41:38 -08:00
2024-01-28 22:30:26 -05:00
2024-08-24 21:31:41 -07:00
2025-06-12 18:24:04 -07:00
2024-04-08 08:58:58 -07:00
2024-10-15 23:11:15 -04:00
2025-02-03 10:33:43 -08:00
2024-04-28 18:17:54 -07:00
2024-02-21 11:20:06 -08:00
2024-02-21 11:20:06 -08:00
2024-11-20 12:41:21 -08:00
2025-05-14 20:28:40 -07:00
2025-02-10 09:20:02 -08:00
2024-02-21 11:20:06 -08:00
2024-02-21 11:20:06 -08:00
2024-01-28 22:30:26 -05:00
2024-04-16 13:44:27 -04:00
2024-02-21 11:20:06 -08:00
2025-05-30 10:04:40 -07:00
2024-09-07 07:55:27 +02:00