Skip to content

Commit 76533b8

Browse files
committed
Serialization: update decl naming in test
1 parent 0572eb9 commit 76533b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/Serialization/Recovery/module-recovery-remarks.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %empty-directory(%t/sdk)
3-
// RUN: split-file %s %t
3+
// RUN: split-file %s %t --leading-lines
44

55
/// Compile two library modules A and A_related, and a middle library LibWithXRef with a reference to a type in A.
66
// RUN: %target-swift-frontend %t/LibOriginal.swift -emit-module-path %t/A.swiftmodule -module-name A -I %t
77
// RUN: %target-swift-frontend %t/Empty.swift -emit-module-path %t/A_related.swiftmodule -module-name A_related
88
// RUN: %target-swift-frontend %t/LibWithXRef.swift -emit-module-path %t/sdk/LibWithXRef.swiftmodule -module-name LibWithXRef -I %t -swift-version 5 -enable-library-evolution
99

10-
/// Move MyType from A to A_related, triggering most notes.
10+
/// Move BrokenType from A to A_related, triggering most notes.
1111
// RUN: %target-swift-frontend %t/EmptyOverlay.swift -emit-module-path %t/A.swiftmodule -module-name A -I %t
1212
// RUN: %target-swift-frontend %t/LibOriginal.swift -emit-module-path %t/A_related.swiftmodule -module-name A_related -I %t
1313
// RUN: not %target-swift-frontend -c -O %t/Client.swift -I %t -I %t/sdk -Rmodule-recovery -sdk %t/sdk -swift-version 4 2>&1 \
1414
// RUN: | %FileCheck --check-prefixes CHECK-MOVED %s
1515

1616
/// Main error downgraded to a remark.
17-
// CHECK-MOVED: LibWithXRef.swiftmodule:1:1: remark: reference to type 'MyType' broken by a context change; 'MyType' was expected to be in 'A', but now a candidate is found only in 'A_related'
17+
// CHECK-MOVED: LibWithXRef.swiftmodule:1:1: remark: reference to type 'BrokenType' broken by a context change; 'BrokenType' was expected to be in 'A', but now a candidate is found only in 'A_related'
1818

1919
/// Contextual notes about the modules involved.
2020
// CHECK-MOVED: note: the type was expected to be found in module 'A' at '
@@ -32,7 +32,7 @@
3232
// CHECK-MOVED-SAME: LibWithXRef.swiftmodule'
3333
// CHECK-MOVED: note: declarations in the underlying clang module 'A' may be hidden by clang preprocessor macros
3434
// CHECK-MOVED: note: the distributed module 'LibWithXRef' refers to the local module 'A'; this may be caused by header maps or search paths
35-
// CHECK-MOVED: note: the type 'MyType' moved between related modules; clang preprocessor macros may affect headers shared between these modules
35+
// CHECK-MOVED: note: the type 'BrokenType' moved between related modules; clang preprocessor macros may affect headers shared between these modules
3636
// CHECK-MOVED: note: could not deserialize type for 'foo()'
3737
// CHECK-MOVED: error: cannot find 'foo' in scope
3838

@@ -68,15 +68,15 @@ void foo() {}
6868
//--- LibOriginal.swift
6969
@_exported import A
7070

71-
public struct MyType {
71+
public struct BrokenType {
7272
public init() {}
7373
}
7474

7575
//--- LibWithXRef.swift
7676
import A
7777
import A_related
7878

79-
public func foo() -> MyType {
79+
public func foo() -> BrokenType {
8080
fatalError()
8181
}
8282

0 commit comments

Comments
 (0)