File tree Expand file tree Collapse file tree 5 files changed +14
-14
lines changed
Fixtures/SwiftMigrate/InferIsolatedConformancesMigration/Sources Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,3 @@ class C: nonisolated Equatable {
6
6
lhs. name == rhs. name
7
7
}
8
8
}
9
-
10
- protocol P { }
11
- protocol Q { }
12
-
13
- @MainActor
14
- struct S : nonisolated P & Q { }
Original file line number Diff line number Diff line change
1
+ protocol P { }
2
+ protocol Q { }
3
+
4
+ @MainActor
5
+ struct S : nonisolated P & Q { }
Original file line number Diff line number Diff line change @@ -6,9 +6,3 @@ class C: Equatable {
6
6
lhs. name == rhs. name
7
7
}
8
8
}
9
-
10
- protocol P { }
11
- protocol Q { }
12
-
13
- @MainActor
14
- struct S : P & Q { }
Original file line number Diff line number Diff line change
1
+ protocol P { }
2
+ protocol Q { }
3
+
4
+ @MainActor
5
+ struct S : P & Q { }
Original file line number Diff line number Diff line change @@ -2112,7 +2112,7 @@ class PackageCommandTestCase: CommandsBuildProviderTestCase {
2112
2112
" skipping because test environment compiler doesn't support `-print-supported-features` "
2113
2113
)
2114
2114
2115
- func doMigration( featureName: String , expectedSummary: String ) async throws {
2115
+ func doMigration( featureName: String , expectedSummary: String ) async throws {
2116
2116
try await fixture ( name: " SwiftMigrate/ \( featureName) Migration " ) { fixturePath in
2117
2117
let sourcePaths : [ AbsolutePath ]
2118
2118
let fixedSourcePaths : [ AbsolutePath ]
@@ -2151,9 +2151,11 @@ class PackageCommandTestCase: CommandsBuildProviderTestCase {
2151
2151
}
2152
2152
}
2153
2153
2154
+ // When updating these, make sure we keep testing both the singular and
2155
+ // plural forms of the nouns in the summary.
2154
2156
try await doMigration ( featureName: " ExistentialAny " , expectedSummary: " Applied 4 fix-its in 1 file " )
2155
2157
try await doMigration ( featureName: " StrictMemorySafety " , expectedSummary: " Applied 1 fix-it in 1 file " )
2156
- try await doMigration ( featureName: " InferIsolatedConformances " , expectedSummary: " Applied 2 fix-its in 1 file " )
2158
+ try await doMigration ( featureName: " InferIsolatedConformances " , expectedSummary: " Applied 2 fix-its in 2 files " )
2157
2159
}
2158
2160
2159
2161
func testBuildToolPlugin( ) async throws {
You can’t perform that action at this time.
0 commit comments