Skip to content

Commit 0e8eddb

Browse files
committed
SwiftFixIt: Bring back Copyable suppression
The minimum Swift tools version is appropriate for noncopyable types.
1 parent 62c6771 commit 0e8eddb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/SwiftFixIt/SwiftFixIt.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ extension SerializedDiagnostics.SourceLocation: AnySourceLocation, @retroactive
107107
extension SerializedDiagnostics.FixIt: AnyFixIt {}
108108

109109
/// Encapsulates initial diagnostic skipping behavior.
110-
private struct PrimaryDiagnosticFilter<Diagnostic: AnyDiagnostic> {
110+
private struct PrimaryDiagnosticFilter<Diagnostic: AnyDiagnostic>: ~Copyable {
111111
/// A hashable type storing the minimum data necessary to uniquely identify
112112
/// a diagnostic for our purposes.
113113
struct DiagnosticID: Hashable {
@@ -192,7 +192,7 @@ private struct PrimaryDiagnosticFilter<Diagnostic: AnyDiagnostic> {
192192
}
193193

194194
/// The backing API for `SwiftFixitCommand`.
195-
package struct SwiftFixIt /*: ~Copyable */ {
195+
package struct SwiftFixIt: ~Copyable {
196196
private typealias DiagnosticsPerFile = [SourceFile: [SwiftDiagnostics.Diagnostic]]
197197

198198
private let fileSystem: any FileSystem
@@ -381,8 +381,8 @@ extension SourceFile: Hashable {
381381
}
382382
}
383383

384-
private struct DiagnosticConverter /*: ~Copyable */ {
385-
private struct SourceFileCache /*: ~Copyable */ {
384+
private struct DiagnosticConverter: ~Copyable {
385+
private struct SourceFileCache: ~Copyable {
386386
private let fileSystem: any FileSystem
387387

388388
private var sourceFiles: [AbsolutePath: SourceFile]

0 commit comments

Comments
 (0)