Wrap SE-0481 into an upcoming feature until source incompatibilities are resolved

This commit is contained in:
Mykola Pokhylets
2025-07-02 07:26:39 +02:00
parent 09a751f698
commit ae48446716
28 changed files with 353 additions and 132 deletions

View File

@@ -442,6 +442,15 @@ UNINTERESTING_FEATURE(BuiltinInterleave)
UNINTERESTING_FEATURE(BuiltinVectorsExternC)
UNINTERESTING_FEATURE(AddressOfProperty2)
static bool usesFeatureWeakLet(Decl *decl) {
if (auto *VD = dyn_cast<VarDecl>(decl)) {
if (auto *refAttr = VD->getAttrs().getAttribute<ReferenceOwnershipAttr>()) {
return VD->isLet() && refAttr->get() == ReferenceOwnership::Weak;
}
}
return false;
}
// ----------------------------------------------------------------------------
// MARK: - FeatureSet
// ----------------------------------------------------------------------------