Skip to content

Commit f702339

Browse files
committed
Add missing ~Copyable constraint to WasmGen.swift
1 parent a544abe commit f702339

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/WasmParser/BinaryInstructionDecoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protocol BinaryInstructionDecoder {
9090
}
9191

9292
@inlinable
93-
func parseBinaryInstruction(visitor: inout some InstructionVisitor, decoder: inout some BinaryInstructionDecoder) throws -> Bool {
93+
func parseBinaryInstruction(visitor: inout some InstructionVisitor & ~Copyable, decoder: inout some BinaryInstructionDecoder) throws -> Bool {
9494
let opcode0 = try decoder.claimNextByte()
9595
switch opcode0 {
9696
case 0x00:

Utilities/Sources/WasmGen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ enum WasmGen {
561561
code += """
562562
563563
@inlinable
564-
func parseBinaryInstruction(visitor: inout some InstructionVisitor, decoder: inout some BinaryInstructionDecoder) throws -> Bool {
564+
func parseBinaryInstruction(visitor: inout some InstructionVisitor & ~Copyable, decoder: inout some BinaryInstructionDecoder) throws -> Bool {
565565
"""
566566

567567
func renderSwitchCase(_ root: Trie, depth: Int = 0) {

0 commit comments

Comments
 (0)