Skip to content

Commit 9f435ad

Browse files
committed
Promote LifetimeDependenceMutableAccessors and InoutLifetimeDependence to language features
These were added to guard specific source code in swift interface files for older compilers. They do not guard any experimental language feature specifically. Turn them on by default to prevent unnecessary flags developers need to add in their configs.
1 parent fcc1d00 commit 9f435ad

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)