Skip to content

Commit 50be389

Browse files
authored
Merge pull request #83817 from meg-gupta/promotefeature
Promote LifetimeDependenceMutableAccessors and InoutLifetimeDependence to language features
2 parents a5ef5fe + 9f435ad commit 50be389

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/swift/Basic/Features.def

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ LANGUAGE_FEATURE(NonescapableAccessorOnTrivial, 0, "Support UnsafeMutablePointer
273273
BASELINE_LANGUAGE_FEATURE(LayoutPrespecialization, 0, "Layout pre-specialization")
274274
BASELINE_LANGUAGE_FEATURE(IsolatedDeinit, 371, "isolated deinit")
275275
LANGUAGE_FEATURE(InlineArrayTypeSugar, 483, "Type sugar for InlineArray")
276+
LANGUAGE_FEATURE(LifetimeDependenceMutableAccessors, 0, "Support mutable accessors returning ~Escapable results")
277+
LANGUAGE_FEATURE(InoutLifetimeDependence, 0, "Support @_lifetime(&)")
276278

277279
// Swift 6
278280
UPCOMING_FEATURE(ConciseMagicFile, 274, 6)
@@ -435,10 +437,6 @@ EXPERIMENTAL_FEATURE(StructLetDestructuring, true)
435437
/// Enable returning non-escapable types from functions.
436438
EXPERIMENTAL_FEATURE(LifetimeDependence, true)
437439

438-
/// Enable inout lifetime dependence - @lifetime(&arg)
439-
EXPERIMENTAL_FEATURE(InoutLifetimeDependence, true)
440-
EXPERIMENTAL_FEATURE(LifetimeDependenceMutableAccessors, true)
441-
442440
/// Enable the `@_staticExclusiveOnly` attribute.
443441
EXPERIMENTAL_FEATURE(StaticExclusiveOnly, true)
444442

0 commit comments

Comments
 (0)