Skip to content

Commit 3eb04e2

Browse files
committed
fix complete_concurrency_keyword's too imprecise assertions
1 parent 293440d commit 3eb04e2

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

stdlib/public/Concurrency/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
8787
Errors.swift
8888
Error.cpp
8989
Executor.swift
90-
AssumeActorExecutor.swift
90+
ExecutorAssertions.swift
9191
AsyncCompactMapSequence.swift
9292
AsyncDropFirstSequence.swift
9393
AsyncDropWhileSequence.swift

test/IDE/complete_concurrency_keyword.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
// REQUIRES: concurrency
44

5-
// CHECK_DECL: NOT
6-
75
#^GLOBAL^#
86
// GLOBAL: Begin completions
97
// GLOBAL-DAG: Keyword/None: actor; name=actor
@@ -13,9 +11,9 @@
1311
enum Namespace {
1412
#^TYPEMEMBER^#
1513
// TYPEMEMBER: Begin completions
16-
// TYPEMEMBER-NOT: await
14+
// TYPEMEMBER-NOT: Keyword{{.*}}await
1715
// TYPEMEMBER-DAG: Keyword/None: actor; name=actor
18-
// TYPEMEMBER-NOT: await
16+
// TYPEMEMBER-NOT: Keyword{{.*}}await
1917
// TYPEMEMBER: End completion
2018
}
2119

@@ -30,9 +28,9 @@ func testFunc() {
3028
func testExpr() {
3129
_ = #^EXPR^#
3230
// EXPR: Begin completions
33-
// EXPR-NOT: actor
31+
// EXPR-NOT: Keyword{{.*}}actor
3432
// EXPR-DAG: Keyword/None: await; name=await
35-
// EXPR-NOT: actor
33+
// EXPR-NOT: Keyword{{.*}}actor
3634
// EXPR: End completion
3735
}
3836
func testClosure() {

0 commit comments

Comments
 (0)