Revert "Merge pull request #80540 from swiftlang/revert-80452-lifetimeinout"

This reverts commit 6eaa07a880, reversing
changes made to e75ee3f4cf.
This commit is contained in:
Meghana Gupta
2025-04-04 09:50:13 -07:00
parent 6eaa07a880
commit ef1e94577f
26 changed files with 254 additions and 159 deletions

View File

@@ -270,6 +270,18 @@ static bool usesFeatureLifetimeDependence(Decl *decl) {
return false;
}
static bool usesFeatureInoutLifetimeDependence(Decl *decl) {
for (auto attr : decl->getAttrs().getAttributes<LifetimeAttr>()) {
for (auto source : attr->getLifetimeEntry()->getSources()) {
if (source.getParsedLifetimeDependenceKind() ==
ParsedLifetimeDependenceKind::Inout) {
return true;
}
}
}
return false;
}
UNINTERESTING_FEATURE(DynamicActorIsolation)
UNINTERESTING_FEATURE(NonfrozenEnumExhaustivity)
UNINTERESTING_FEATURE(ClosureIsolation)