mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Wrap SE-0481 into an upcoming feature until source incompatibilities are resolved
This commit is contained in:
@@ -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
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user