|
69 | 69 | # endif
|
70 | 70 | #endif
|
71 | 71 |
|
| 72 | +// A feature that's both suppressible and upcoming. |
| 73 | +// Delegates to whichever the includer defines. |
| 74 | +#ifndef SUPPRESSIBLE_UPCOMING_FEATURE |
| 75 | +# if defined(SUPPRESSIBLE_UPCOMING_FEATURE) && \ |
| 76 | + defined(UPCOMING_FEATURE) |
| 77 | +# error ambiguous defines when including Features.def |
| 78 | +# elif defined(SUPPRESSIBLE_LANGUAGE_FEATURE) |
| 79 | +# define SUPPRESSIBLE_UPCOMING_FEATURE(FeatureName, SENumber, Version) \ |
| 80 | + SUPPRESSIBLE_LANGUAGE_FEATURE(FeatureName, SENumber, #FeatureName) |
| 81 | +# else |
| 82 | +# define SUPPRESSIBLE_UPCOMING_FEATURE(FeatureName, SENumber, Version) \ |
| 83 | + UPCOMING_FEATURE(FeatureName, SENumber, Version) |
| 84 | +# endif |
| 85 | +#endif |
| 86 | + |
72 | 87 | #ifndef SUPPRESSIBLE_LANGUAGE_FEATURE
|
73 | 88 | # define SUPPRESSIBLE_LANGUAGE_FEATURE(FeatureName, SENumber, Description) \
|
74 | 89 | LANGUAGE_FEATURE(FeatureName, SENumber, Description)
|
@@ -198,6 +213,8 @@ UPCOMING_FEATURE(DynamicActorIsolation, 423, 6)
|
198 | 213 | UPCOMING_FEATURE(NonfrozenEnumExhaustivity, 192, 6)
|
199 | 214 | UPCOMING_FEATURE(GlobalActorIsolatedTypesUsability, 0434, 6)
|
200 | 215 | UPCOMING_FEATURE(BorrowingSwitch, 432, 6)
|
| 216 | +UPCOMING_FEATURE(TransferringArgsAndResults, 430, 6) |
| 217 | +SUPPRESSIBLE_UPCOMING_FEATURE(SendingArgsAndResults, 430, 6) |
201 | 218 |
|
202 | 219 | // Swift 7
|
203 | 220 | UPCOMING_FEATURE(ExistentialAny, 335, 7)
|
@@ -352,16 +369,6 @@ EXPERIMENTAL_FEATURE(FixedArrays, true)
|
352 | 369 | // Group Main Actor Isolation Errors by Scope
|
353 | 370 | EXPERIMENTAL_FEATURE(GroupActorErrors, true)
|
354 | 371 |
|
355 |
| -// Allow for the 'transferring' keyword to be applied to arguments and results. |
356 |
| -// |
357 |
| -// Enables SendingArgsAndResults as well. After parsing, we just represent this |
358 |
| -// as 'sendable' implying that since both are always enabled together, this |
359 |
| -// doesn't need to be suppressed. |
360 |
| -EXPERIMENTAL_FEATURE(TransferringArgsAndResults, true) |
361 |
| - |
362 |
| -// Allow for the 'sending' keyword to be applied to arguments and results. |
363 |
| -SUPPRESSIBLE_EXPERIMENTAL_FEATURE(SendingArgsAndResults, true) |
364 |
| - |
365 | 372 | // Enable explicit isolation of closures.
|
366 | 373 | EXPERIMENTAL_FEATURE(ClosureIsolation, true)
|
367 | 374 |
|
|
0 commit comments