From 46175b54101b52b4837af8f47f26545b2d1b800e Mon Sep 17 00:00:00 2001 From: Pavel Yaskevich Date: Wed, 30 Apr 2025 15:28:48 -0700 Subject: [PATCH 1/2] [Swift] Add a setting for `InferIsolatedConformances` upcoming feature --- Sources/SWBUniversalPlatform/Specs/Swift.xcspec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Sources/SWBUniversalPlatform/Specs/Swift.xcspec b/Sources/SWBUniversalPlatform/Specs/Swift.xcspec index b8434e0c..75e20b6c 100644 --- a/Sources/SWBUniversalPlatform/Specs/Swift.xcspec +++ b/Sources/SWBUniversalPlatform/Specs/Swift.xcspec @@ -806,6 +806,19 @@ Description = "Changes existential types to require explicit annotation with the `any` keyword."; }, + { + Name = "SWIFT_UPCOMING_FEATURE_INFER_ISOLATED_CONFORMANCES"; + Type = Boolean; + DefaultValue = NO; + CommandLineArgs = { + YES = ( "-enable-upcoming-feature", "InferIsolatedConformances" ); + NO = (); + }; + DisplayName = "Infer Isolated Conformances"; + Category = "Upcoming Features"; + Description = "Infer conformances of global-actor isolated types as isolated to the same actor unless isolation is explicitly specified as `nonisolated`."; + }, + // Experimental features { Name = "SWIFT_EXPERIMENTAL_FEATURE_DEBUG_DESCRIPTION_MACRO"; From 9485aadaba617ff868933c56076737dc215bf9ee Mon Sep 17 00:00:00 2001 From: Pavel Yaskevich Date: Wed, 30 Apr 2025 16:14:14 -0700 Subject: [PATCH 2/2] [Swift] Add a setting for `NonisolatedNonsendingByDefault` upcoming feature --- Sources/SWBUniversalPlatform/Specs/Swift.xcspec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Sources/SWBUniversalPlatform/Specs/Swift.xcspec b/Sources/SWBUniversalPlatform/Specs/Swift.xcspec index 75e20b6c..67972fa7 100644 --- a/Sources/SWBUniversalPlatform/Specs/Swift.xcspec +++ b/Sources/SWBUniversalPlatform/Specs/Swift.xcspec @@ -819,6 +819,19 @@ Description = "Infer conformances of global-actor isolated types as isolated to the same actor unless isolation is explicitly specified as `nonisolated`."; }, + { + Name = "SWIFT_UPCOMING_FEATURE_NONISOLATED_NONSENDING_BY_DEFAULT"; + Type = Boolean; + DefaultValue = NO; + CommandLineArgs = { + YES = ( "-enable-upcoming-feature", "NonisolatedNonsendingByDefault" ); + NO = (); + }; + DisplayName = "Nonisolated Nonsending By Default"; + Category = "Upcoming Features"; + Description = "Runs nonisolated async functions on the caller's actor by default unless the function is explicitly marked `@concurrent`."; + }, + // Experimental features { Name = "SWIFT_EXPERIMENTAL_FEATURE_DEBUG_DESCRIPTION_MACRO";