Skip to content

Commit 4e8c1ef

Browse files
authored
Merge pull request #70565 from xymus/is-now-a-candidate
Sema: Fix a typo in the error message on broken modularization
2 parents 4b40481 + 80ea57f commit 4e8c1ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ ERROR(modularization_issue_decl_moved,Fatal,
914914
ERROR(modularization_issue_decl_type_changed,Fatal,
915915
"reference to %select{top-level declaration|type}0 %1 broken by a context change; "
916916
"the declaration kind of %1 %select{from %2|}5 changed since building '%3'"
917-
"%select{|, it was in %2 and is now a candidate is found only in %4}5",
917+
"%select{|, it was in %2 and now a candidate is found only in %4}5",
918918
(bool, DeclName, const ModuleDecl*, StringRef, const ModuleDecl*, bool))
919919
ERROR(modularization_issue_decl_not_found,Fatal,
920920
"reference to %select{top-level declaration|type}0 %1 broken by a context change; "

test/Serialization/modularization-error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
// RUN: %target-swift-frontend %t/LibTypeChanged.swift -emit-module-path %t/B.swiftmodule -module-name B
4141
// RUN: not %target-swift-frontend -emit-sil %t/LibWithXRef.swiftmodule -module-name LibWithXRef -I %t 2>&1 \
4242
// RUN: | %FileCheck --check-prefixes CHECK,CHECK-KIND-CHANGED-AND-MOVED %s
43-
// CHECK-KIND-CHANGED-AND-MOVED: LibWithXRef.swiftmodule:1:1: error: reference to type 'MyType' broken by a context change; the declaration kind of 'MyType' changed since building 'LibWithXRef', it was in 'A' and is now a candidate is found only in 'B'
43+
// CHECK-KIND-CHANGED-AND-MOVED: LibWithXRef.swiftmodule:1:1: error: reference to type 'MyType' broken by a context change; the declaration kind of 'MyType' changed since building 'LibWithXRef', it was in 'A' and now a candidate is found only in 'B'
4444

4545
/// Remove MyType from all imported modules.
4646
// RUN: %target-swift-frontend %t/Empty.swift -emit-module-path %t/A.swiftmodule -module-name A

0 commit comments

Comments
 (0)