Skip to content

Commit 4291881

Browse files
committed
Update tests to match modern diagnostics, again
Another almost-year, another batch of diagnostic changes.
1 parent 8628fa7 commit 4291881

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

test/NameLookup/module_selector.swift

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// RUN: %target-typecheck-verify-swift -sdk %clang-importer-sdk -module-name main -I %S/Inputs -enable-experimental-module-selector
22

3-
// FIXME: This only works with ASTScopes, and we might not care about that by the time this feature is ready.
4-
// RUN-DISABLED: %target-typecheck-verify-swift -sdk %clang-importer-sdk -module-name main -I %S/Inputs -enable-experimental-module-selector -disable-astscope-lookup
5-
63
// Make sure the lack of the experimental flag disables the feature:
74
// RUN: not %target-typecheck-verify-swift -sdk %clang-importer-sdk -module-name main -I %S/Inputs 2>/dev/null
85

@@ -11,7 +8,7 @@
118
// * Whether X::foo finds foos in X's re-exports
129
// * Whether we handle access paths correctly
1310
// * Interaction with ClangImporter
14-
// * Cross-module overlays, when those happen
11+
// * Cross-import overlays
1512
//
1613
// It also might not cover all combinations of name lookup paths and inputs.
1714

@@ -265,37 +262,37 @@ func builderUser4(@Swift::MyBuilder fn: () -> Void) {}
265262

266263
func whitespace() {
267264
Swift::print
268-
// expected-error@-1 {{expression resolves to an unused function}}
265+
// expected-error@-1 {{function is unused}}
269266

270267
Swift:: print
271-
// expected-error@-1 {{expression resolves to an unused function}}
268+
// expected-error@-1 {{function is unused}}
272269

273270
Swift ::print
274-
// expected-error@-1 {{expression resolves to an unused function}}
271+
// expected-error@-1 {{function is unused}}
275272

276273
Swift :: print
277-
// expected-error@-1 {{expression resolves to an unused function}}
274+
// expected-error@-1 {{function is unused}}
278275

279276
Swift::
280277
print
281-
// expected-error@-1 {{expression resolves to an unused function}}
278+
// expected-error@-1 {{function is unused}}
282279

283280
Swift
284281
::print
285-
// expected-error@-1 {{expression resolves to an unused function}}
282+
// expected-error@-1 {{function is unused}}
286283

287284
Swift ::
288285
print
289-
// expected-error@-1 {{expression resolves to an unused function}}
286+
// expected-error@-1 {{function is unused}}
290287

291288
Swift
292289
:: print
293-
// expected-error@-1 {{expression resolves to an unused function}}
290+
// expected-error@-1 {{function is unused}}
294291

295292
Swift
296293
::
297294
print
298-
// expected-error@-1 {{expression resolves to an unused function}}
295+
// expected-error@-1 {{function is unused}}
299296
}
300297

301298
// Error cases
@@ -471,5 +468,5 @@ func badModuleNames() {
471468
// expected-error@-1 {{cannot find type 'NonexistentModule::MyType' in scope}}
472469

473470
let y: A.NonexistentModule::MyChildType = fatalError()
474-
// expected-error@-1 {{'NonexistentModule::MyChildType' is not a member type of 'A'}}
471+
// expected-error@-1 {{'NonexistentModule::MyChildType' is not a member type of struct 'ModuleSelectorTestingKit.A'}}
475472
}

0 commit comments

Comments
 (0)