Skip to content

Commit 3083a80

Browse files
committed
SwiftFixIt: Bring back Copyable suppression
The minimum Swift tools version is appropriate for noncopyable types.
1 parent f5913e7 commit 3083a80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftFixIt/SwiftFixIt.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ private struct PrimaryDiagnosticFilter<Diagnostic: AnyDiagnostic>: ~Copyable {
194194
}
195195

196196
/// The backing API for `SwiftFixitCommand`.
197-
package struct SwiftFixIt /*: ~Copyable */ {
197+
package struct SwiftFixIt /*: ~Copyable */ { // TODO: Crashes with ~Copyable
198198
private typealias DiagnosticsPerFile = [SourceFile: [SwiftDiagnostics.Diagnostic]]
199199

200200
private let fileSystem: any FileSystem
@@ -383,8 +383,8 @@ extension SourceFile: Hashable {
383383
}
384384
}
385385

386-
private struct DiagnosticConverter /*: ~Copyable */ {
387-
private struct SourceFileCache /*: ~Copyable */ {
386+
private struct DiagnosticConverter: ~Copyable {
387+
private struct SourceFileCache: ~Copyable {
388388
private let fileSystem: any FileSystem
389389

390390
private var sourceFiles: [AbsolutePath: SourceFile]

0 commit comments

Comments
 (0)