Skip to content

Commit 79dd2ed

Browse files
committed
AST: add feature flag "FixedArrays"
1 parent ff6fe38 commit 79dd2ed

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

include/swift/Basic/Features.def

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ EXPERIMENTAL_FEATURE(ExtractConstantsFromMembers, false)
273273
/// Enable bitwise-copyable feature.
274274
EXPERIMENTAL_FEATURE(BitwiseCopyable, true)
275275

276+
/// Enables the FixedArray data type.
277+
EXPERIMENTAL_FEATURE(FixedArrays, false)
278+
276279
#undef EXPERIMENTAL_FEATURE_EXCLUDED_FROM_MODULE_INTERFACE
277280
#undef EXPERIMENTAL_FEATURE
278281
#undef UPCOMING_FEATURE

lib/AST/ASTPrinter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3616,6 +3616,10 @@ static bool usesFeatureNonEscapableTypes(Decl *decl) {
36163616
return false;
36173617
}
36183618

3619+
static bool usesFeatureFixedArrays(Decl *decl) {
3620+
return false;
3621+
}
3622+
36193623
static bool hasParameterPacks(Decl *decl) {
36203624
if (auto genericContext = decl->getAsGenericContext()) {
36213625
auto sig = genericContext->getGenericSignature();

0 commit comments

Comments
 (0)