[INFO] cloning repository https://github.com/AaronC81/tarn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AaronC81/tarn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAaronC81%2Ftarn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAaronC81%2Ftarn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dec742d9153258393f4e891d420d8c71af8a6b1d [INFO] checking AaronC81/tarn/dec742d9153258393f4e891d420d8c71af8a6b1d against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAaronC81%2Ftarn" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AaronC81/tarn on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AaronC81/tarn [INFO] finished tweaking git repo https://github.com/AaronC81/tarn [INFO] tweaked toml for git repo https://github.com/AaronC81/tarn written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/AaronC81/tarn already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded peg-runtime v0.6.2 [INFO] [stderr] Downloaded leb128 v0.2.4 [INFO] [stderr] Downloaded peg v0.6.2 [INFO] [stderr] Downloaded peg-macros v0.6.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 70622370fcf7f86b03a240340891afa668b84d9763c685f4307b7074f339074d [INFO] running `Command { std: "docker" "start" "-a" "70622370fcf7f86b03a240340891afa668b84d9763c685f4307b7074f339074d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "70622370fcf7f86b03a240340891afa668b84d9763c685f4307b7074f339074d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70622370fcf7f86b03a240340891afa668b84d9763c685f4307b7074f339074d", kill_on_drop: false }` [INFO] [stdout] 70622370fcf7f86b03a240340891afa668b84d9763c685f4307b7074f339074d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08fd6a4edb1b0e0bf3721455d7fd420cc3228295bba4002b9010294d484e0aa9 [INFO] running `Command { std: "docker" "start" "-a" "08fd6a4edb1b0e0bf3721455d7fd420cc3228295bba4002b9010294d484e0aa9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling peg-runtime v0.6.2 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking leb128 v0.2.4 [INFO] [stderr] Checking bimap v0.4.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling peg-macros v0.6.2 [INFO] [stderr] Checking peg v0.6.2 [INFO] [stderr] Checking tarn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/semantic_tree/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/semantic_tree/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/semantic_tree/mod.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::wasm::{LocalId, TypeId, FuncId, sections::type_section::FuncType, core::ValueType}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LocalId` and `TypeId` [INFO] [stdout] --> src/semantic_tree/semanticize.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::wasm::{LocalId, TypeId, FuncId}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/semantic_tree/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/semantic_tree/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/semantic_tree/mod.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::wasm::{LocalId, TypeId, FuncId, sections::type_section::FuncType, core::ValueType}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LocalId` and `TypeId` [INFO] [stdout] --> src/semantic_tree/semanticize.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::wasm::{LocalId, TypeId, FuncId}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 47 | return Ok(()); [INFO] [stdout] | ------------- any code following this expression is unreachable [INFO] [stdout] 48 | [INFO] [stdout] 49 | / let nodes = Node::Root(vec![ [INFO] [stdout] 50 | | Node::FunctionDeclaration( [INFO] [stdout] 51 | | FuncId(0), [INFO] [stdout] 52 | | Type::Function( [INFO] [stdout] ... | [INFO] [stdout] 81 | | ) [INFO] [stdout] 82 | | ]); [INFO] [stdout] | |_______^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/semantic_tree/semanticize.rs:43:35 [INFO] [stdout] | [INFO] [stdout] 43 | ParseNode::Identifier(i) => unimplemented!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 47 | return Ok(()); [INFO] [stdout] | ------------- any code following this expression is unreachable [INFO] [stdout] 48 | [INFO] [stdout] 49 | / let nodes = Node::Root(vec![ [INFO] [stdout] 50 | | Node::FunctionDeclaration( [INFO] [stdout] 51 | | FuncId(0), [INFO] [stdout] 52 | | Type::Function( [INFO] [stdout] ... | [INFO] [stdout] 81 | | ) [INFO] [stdout] 82 | | ]); [INFO] [stdout] | |_______^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen/mod.rs:66:50 [INFO] [stdout] | [INFO] [stdout] 66 | if let Node::FunctionDeclaration(id, func_type, def) = child { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/codegen/mod.rs:69:68 [INFO] [stdout] | [INFO] [stdout] 69 | FunctionDefinition::Implementation(locals, body) => [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/semantic_tree/semanticize.rs:43:35 [INFO] [stdout] | [INFO] [stdout] 43 | ParseNode::Identifier(i) => unimplemented!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen/mod.rs:66:50 [INFO] [stdout] | [INFO] [stdout] 66 | if let Node::FunctionDeclaration(id, func_type, def) = child { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/codegen/mod.rs:69:68 [INFO] [stdout] | [INFO] [stdout] 69 | FunctionDefinition::Implementation(locals, body) => [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `I64`, `F32`, and `F64` are never constructed [INFO] [stdout] --> src/wasm/core.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum ValueType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 47 | I32, [INFO] [stdout] 48 | I64, [INFO] [stdout] | ^^^ [INFO] [stdout] 49 | F32, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | F64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValueType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/wasm/instruction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Instruction { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 5 | Unreachable, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | Nop, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | Block(BlockType, Vec), Loop(BlockType, Vec), [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] 8 | If(BlockType, Vec), IfElse(BlockType, Vec, Vec), [INFO] [stdout] | ^^ ^^^^^^ [INFO] [stdout] 9 | Branch(u32), BranchIf(u32), [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] 10 | // TODO: BranchTable, [INFO] [stdout] 11 | Return, Call(u32), CallIndirect(u32), [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 12 | Drop, Select, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | LocalGet(u32), LocalSet(u32), LocalTee(u32), [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 14 | GlobalGet(u32), GlobalSet(u32), [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 15 | I32Load(MemArg), I64Load(MemArg), F32Load(MemArg), F64Load(MemArg), [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] 16 | I32Load8S(MemArg), I32Load8U(MemArg), I32Load16S(MemArg), I32Load16U(MemArg), [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 17 | I64Load8S(MemArg), I64Load8U(MemArg), I64Load16S(MemArg), I64Load16U(MemArg), I64Load32S(MemArg), I64Load32U(MemArg), [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 18 | I32Store(MemArg), I64Store(MemArg), F32Store(MemArg), F64Store(MemArg), [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 19 | I32Store8(MemArg), I32Store16(MemArg), [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 20 | I64Store8(MemArg), I64Store16(MemArg), I64Store32(MemArg), [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 21 | MemorySize, MemoryGrow, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 22 | I32Const(i32), I64Const(i64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 23 | // TODO: unsure if these float types are correct [INFO] [stdout] 24 | F32Const(f32), F64Const(f64), [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Empty`, `ValueType`, and `TypeIndex` are never constructed [INFO] [stdout] --> src/wasm/instruction.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub enum BlockType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 101 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 102 | ValueType(ValueType), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 103 | TypeIndex(u32), // TODO this is hyper cursed or something [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Table` and `Global` are never constructed [INFO] [stdout] --> src/wasm/sections/export_section.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum ExportDesc { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 29 | Func(u32), [INFO] [stdout] 30 | Table(u32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | Mem(u32), [INFO] [stdout] 32 | Global(u32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/semantic_tree/mod.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | Block(Vec, bool), // bool = is this block terminated? [INFO] [stdout] | ----- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 45 | Block(Vec, ()), // bool = is this block terminated? [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Local` is never constructed [INFO] [stdout] --> src/semantic_tree/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum Node { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 42 | Local(LocalId), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `type_table` and `function_table` are never read [INFO] [stdout] --> src/codegen/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CodeGenGlobalContext { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 12 | // A mapping of type IDs to their types. [INFO] [stdout] 13 | pub type_table: BiHashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub function_table: HashMap)>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `global`, `parent`, and `locals` are never read [INFO] [stdout] --> src/codegen/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct CodeGenContext { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 21 | pub global: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | pub parent: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub locals: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SymbolLoc` is never used [INFO] [stdout] --> src/codegen/mod.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum SymbolLoc { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SymbolLoc` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/parser/mod.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | FunctionParameter(String, Box), [INFO] [stdout] | ----------------- ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 22 | FunctionParameter((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `I64`, `F32`, and `F64` are never constructed [INFO] [stdout] --> src/wasm/core.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum ValueType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 47 | I32, [INFO] [stdout] 48 | I64, [INFO] [stdout] | ^^^ [INFO] [stdout] 49 | F32, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | F64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValueType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/wasm/instruction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Instruction { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 5 | Unreachable, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | Nop, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | Block(BlockType, Vec), Loop(BlockType, Vec), [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] 8 | If(BlockType, Vec), IfElse(BlockType, Vec, Vec), [INFO] [stdout] | ^^ ^^^^^^ [INFO] [stdout] 9 | Branch(u32), BranchIf(u32), [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] 10 | // TODO: BranchTable, [INFO] [stdout] 11 | Return, Call(u32), CallIndirect(u32), [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 12 | Drop, Select, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | LocalGet(u32), LocalSet(u32), LocalTee(u32), [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 14 | GlobalGet(u32), GlobalSet(u32), [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 15 | I32Load(MemArg), I64Load(MemArg), F32Load(MemArg), F64Load(MemArg), [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] 16 | I32Load8S(MemArg), I32Load8U(MemArg), I32Load16S(MemArg), I32Load16U(MemArg), [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 17 | I64Load8S(MemArg), I64Load8U(MemArg), I64Load16S(MemArg), I64Load16U(MemArg), I64Load32S(MemArg), I64Load32U(MemArg), [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 18 | I32Store(MemArg), I64Store(MemArg), F32Store(MemArg), F64Store(MemArg), [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 19 | I32Store8(MemArg), I32Store16(MemArg), [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 20 | I64Store8(MemArg), I64Store16(MemArg), I64Store32(MemArg), [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 21 | MemorySize, MemoryGrow, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 22 | I32Const(i32), I64Const(i64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 23 | // TODO: unsure if these float types are correct [INFO] [stdout] 24 | F32Const(f32), F64Const(f64), [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Empty`, `ValueType`, and `TypeIndex` are never constructed [INFO] [stdout] --> src/wasm/instruction.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub enum BlockType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 101 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 102 | ValueType(ValueType), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 103 | TypeIndex(u32), // TODO this is hyper cursed or something [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Table` and `Global` are never constructed [INFO] [stdout] --> src/wasm/sections/export_section.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum ExportDesc { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 29 | Func(u32), [INFO] [stdout] 30 | Table(u32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | Mem(u32), [INFO] [stdout] 32 | Global(u32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/semantic_tree/mod.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | Block(Vec, bool), // bool = is this block terminated? [INFO] [stdout] | ----- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 45 | Block(Vec, ()), // bool = is this block terminated? [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Local` is never constructed [INFO] [stdout] --> src/semantic_tree/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum Node { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 42 | Local(LocalId), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `type_table` and `function_table` are never read [INFO] [stdout] --> src/codegen/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CodeGenGlobalContext { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 12 | // A mapping of type IDs to their types. [INFO] [stdout] 13 | pub type_table: BiHashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub function_table: HashMap)>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `global`, `parent`, and `locals` are never read [INFO] [stdout] --> src/codegen/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct CodeGenContext { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 21 | pub global: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | pub parent: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub locals: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SymbolLoc` is never used [INFO] [stdout] --> src/codegen/mod.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum SymbolLoc { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SymbolLoc` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/parser/mod.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | FunctionParameter(String, Box), [INFO] [stdout] | ----------------- ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 22 | FunctionParameter((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.83s [INFO] running `Command { std: "docker" "inspect" "08fd6a4edb1b0e0bf3721455d7fd420cc3228295bba4002b9010294d484e0aa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08fd6a4edb1b0e0bf3721455d7fd420cc3228295bba4002b9010294d484e0aa9", kill_on_drop: false }` [INFO] [stdout] 08fd6a4edb1b0e0bf3721455d7fd420cc3228295bba4002b9010294d484e0aa9