Skip to content

Commit ac85770

Browse files
committed
[moveOnly] Add a feature for BuiltinMove that we can use to prevent cond_fail errors.
We use it in a subsequent commit in this PR to guard BuiltinMove.
1 parent 034c0bd commit ac85770

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@ LANGUAGE_FEATURE(ImplicitSelfCapture, 0, "@_implicitSelfCapture attribute", true
5454
LANGUAGE_FEATURE(BuiltinBuildExecutor, 0, "Executor-building builtins", true)
5555
LANGUAGE_FEATURE(BuiltinBuildMainExecutor, 0, "MainActor executor building builtin", true)
5656
LANGUAGE_FEATURE(BuiltinCreateAsyncTaskInGroup, 0, "MainActor executor building builtin", true)
57+
LANGUAGE_FEATURE(BuiltinMove, 0, "Builtin.move()", true)
5758

5859
#undef LANGUAGE_FEATURE

lib/AST/ASTPrinter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2812,6 +2812,10 @@ static bool usesFeatureBuiltinCreateAsyncTaskInGroup(Decl *decl) {
28122812
return false;
28132813
}
28142814

2815+
static bool usesFeatureBuiltinMove(Decl *decl) {
2816+
return false;
2817+
}
2818+
28152819
static bool usesFeatureInheritActorContext(Decl *decl) {
28162820
if (auto func = dyn_cast<AbstractFunctionDecl>(decl)) {
28172821
for (auto param : *func->getParameters()) {

0 commit comments

Comments
 (0)