Skip to content

Commit c71e53d

Browse files
committed
Add LifetimeDependenceDiagnoseTrivial feature.
A feature flag is needed so that newer compilers can build older standard library interfaces.
1 parent 4ca9867 commit c71e53d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

include/swift/Basic/Features.def

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ EXPERIMENTAL_FEATURE(StructLetDestructuring, true)
358358
/// Enable returning non-escapable types from functions.
359359
EXPERIMENTAL_FEATURE(LifetimeDependence, true)
360360

361+
/// Enable LifetimeDependence diagnostics for trivial types.
362+
EXPERIMENTAL_FEATURE(LifetimeDependenceDiagnoseTrivial, false)
363+
361364
/// Enable the `@_staticExclusiveOnly` attribute.
362365
EXPERIMENTAL_FEATURE(StaticExclusiveOnly, true)
363366

lib/AST/FeatureSet.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ static bool usesFeatureLifetimeDependence(Decl *decl) {
262262
->hasLifetimeDependencies();
263263
}
264264

265+
UNINTERESTING_FEATURE(LifetimeDependenceDiagnoseTrivial)
266+
265267
UNINTERESTING_FEATURE(DynamicActorIsolation)
266268
UNINTERESTING_FEATURE(NonfrozenEnumExhaustivity)
267269
UNINTERESTING_FEATURE(ClosureIsolation)

0 commit comments

Comments
 (0)