mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Merge pull request #80540 from swiftlang/revert-80452-lifetimeinout"
This reverts commit6eaa07a880, reversing changes made toe75ee3f4cf.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user