Merge pull request #85948 from aschwaighofer/embedded_enable_existential_support

[embedded] Enable support for existentials/boxed protocol types per default
This commit is contained in:
Arnold Schwaighofer
2025-12-11 07:16:26 -08:00
committed by GitHub
13 changed files with 137 additions and 10 deletions

View File

@@ -557,7 +557,7 @@ EXPERIMENTAL_FEATURE(StandaloneSwiftAvailability, true)
SUPPRESSIBLE_EXPERIMENTAL_FEATURE(TildeSendable, false)
/// Allow use of protocol typed values in Embedded mode (`Any` and friends)
EXPERIMENTAL_FEATURE(EmbeddedExistentials, false)
EXPERIMENTAL_FEATURE(EmbeddedExistentials, true)
/// Allow use of the 'anyAppleOS' availability domain.
EXPERIMENTAL_FEATURE(AnyAppleOSAvailability, true)

View File

@@ -1597,6 +1597,10 @@ def gen_reproducer_dir
: Separate<["-"], "gen-reproducer-dir">,
HelpText<"Path to directory where reproducers write to.">;
def disable_embedded_existentials
: Flag<["-"], "disable-embedded-existentials">,
HelpText<"Disable embedded existential support.">;
} // end let Flags = [FrontendOption, NoDriverOption, HelpHidden]
def disable_experimental_parser_round_trip : Flag<["-"],