[INFO] cloning repository https://github.com/zacgeis/aoc-2021 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zacgeis/aoc-2021" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzacgeis%2Faoc-2021", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzacgeis%2Faoc-2021'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 92fe2d4866198f6b91ea7025b3e31c451f712bd9 [INFO] checking zacgeis/aoc-2021 against master#249cb84316401daf040832cdbb8a45e0f5ab6af8 for pr-138438 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzacgeis%2Faoc-2021" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zacgeis/aoc-2021 on toolchain 249cb84316401daf040832cdbb8a45e0f5ab6af8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+249cb84316401daf040832cdbb8a45e0f5ab6af8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zacgeis/aoc-2021 [INFO] finished tweaking git repo https://github.com/zacgeis/aoc-2021 [INFO] tweaked toml for git repo https://github.com/zacgeis/aoc-2021 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zacgeis/aoc-2021 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" "+249cb84316401daf040832cdbb8a45e0f5ab6af8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+249cb84316401daf040832cdbb8a45e0f5ab6af8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99a8199e4b2f2304143111ff2a5bdcbe84f00b4ed8b3232f9e689d086967d3ce [INFO] running `Command { std: "docker" "start" "-a" "99a8199e4b2f2304143111ff2a5bdcbe84f00b4ed8b3232f9e689d086967d3ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99a8199e4b2f2304143111ff2a5bdcbe84f00b4ed8b3232f9e689d086967d3ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99a8199e4b2f2304143111ff2a5bdcbe84f00b4ed8b3232f9e689d086967d3ce", kill_on_drop: false }` [INFO] [stdout] 99a8199e4b2f2304143111ff2a5bdcbe84f00b4ed8b3232f9e689d086967d3ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+249cb84316401daf040832cdbb8a45e0f5ab6af8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96d3dbbc213b8afb37fc9b17a00d837e8bbf56b1f8d0281e1ff2a9dc0fc94f84 [INFO] running `Command { std: "docker" "start" "-a" "96d3dbbc213b8afb37fc9b17a00d837e8bbf56b1f8d0281e1ff2a9dc0fc94f84", kill_on_drop: false }` [INFO] [stderr] Checking aoc-2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `insts` [INFO] [stdout] --> src/bin/24.rs:90:31 [INFO] [stdout] | [INFO] [stdout] 90 | fn run_program(&mut self, insts: &[Inst]) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_insts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:96:23 [INFO] [stdout] | [INFO] [stdout] 96 | Inst::Inp(r) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:97:23 [INFO] [stdout] | [INFO] [stdout] 97 | Inst::Add(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/24.rs:97:26 [INFO] [stdout] | [INFO] [stdout] 97 | Inst::Add(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:98:23 [INFO] [stdout] | [INFO] [stdout] 98 | Inst::Mul(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/24.rs:98:26 [INFO] [stdout] | [INFO] [stdout] 98 | Inst::Mul(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | Inst::Div(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/24.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 99 | Inst::Div(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | Inst::Mod(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/24.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | Inst::Mod(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | Inst::Eql(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/24.rs:101:26 [INFO] [stdout] | [INFO] [stdout] 101 | Inst::Eql(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/24.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | Reg(Reg), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RegOrIm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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] 27 - Reg(Reg), [INFO] [stdout] 27 + Reg(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/24.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | Im(i64), [INFO] [stdout] | -- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RegOrIm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 28 - Im(i64), [INFO] [stdout] 28 + Im(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/24.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | Inp(Reg), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 44 - Inp(Reg), [INFO] [stdout] 44 + Inp(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/24.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | Add(Reg, RegOrIm), [INFO] [stdout] | --- ^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` 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] 45 - Add(Reg, RegOrIm), [INFO] [stdout] 45 + Add((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/24.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | Mul(Reg, RegOrIm), [INFO] [stdout] | --- ^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` 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] 46 - Mul(Reg, RegOrIm), [INFO] [stdout] 46 + Mul((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/24.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | Div(Reg, RegOrIm), [INFO] [stdout] | --- ^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` 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] 47 - Div(Reg, RegOrIm), [INFO] [stdout] 47 + Div((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/24.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | Mod(Reg, RegOrIm), [INFO] [stdout] | --- ^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` 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] 48 - Mod(Reg, RegOrIm), [INFO] [stdout] 48 + Mod((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/24.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | Eql(Reg, RegOrIm), [INFO] [stdout] | --- ^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` 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] 49 - Eql(Reg, RegOrIm), [INFO] [stdout] 49 + Eql((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Alu` is never constructed [INFO] [stdout] --> src/bin/24.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct Alu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run_program`, `run_inst`, `get_reg`, and `set_reg` are never used [INFO] [stdout] --> src/bin/24.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 89 | impl Alu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 90 | fn run_program(&mut self, insts: &[Inst]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn run_inst(&mut self, inst: &Inst) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn get_reg(&self, r: Reg) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn set_reg(&mut self, r: Reg, v: i64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/bin/04.rs:14:67 [INFO] [stdout] | [INFO] [stdout] 14 | fn row_iter<'a>(&'a self, row: usize) -> impl Iterator + 'a { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/bin/04.rs:18:67 [INFO] [stdout] | [INFO] [stdout] 18 | fn col_iter<'a>(&'a self, col: usize) -> impl Iterator + 'a { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/bin/04.rs:14:67 [INFO] [stdout] | [INFO] [stdout] 14 | fn row_iter<'a>(&'a self, row: usize) -> impl Iterator + 'a { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/bin/04.rs:18:67 [INFO] [stdout] | [INFO] [stdout] 18 | fn col_iter<'a>(&'a self, col: usize) -> impl Iterator + 'a { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `insts` [INFO] [stdout] --> src/bin/24.rs:90:31 [INFO] [stdout] | [INFO] [stdout] 90 | fn run_program(&mut self, insts: &[Inst]) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_insts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:96:23 [INFO] [stdout] | [INFO] [stdout] 96 | Inst::Inp(r) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:97:23 [INFO] [stdout] | [INFO] [stdout] 97 | Inst::Add(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/24.rs:97:26 [INFO] [stdout] | [INFO] [stdout] 97 | Inst::Add(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:98:23 [INFO] [stdout] | [INFO] [stdout] 98 | Inst::Mul(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/24.rs:98:26 [INFO] [stdout] | [INFO] [stdout] 98 | Inst::Mul(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | Inst::Div(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/24.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 99 | Inst::Div(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | Inst::Mod(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/24.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | Inst::Mod(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/bin/24.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | Inst::Eql(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/24.rs:101:26 [INFO] [stdout] | [INFO] [stdout] 101 | Inst::Eql(r, v) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/24.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | Reg(Reg), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RegOrIm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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] 27 - Reg(Reg), [INFO] [stdout] 27 + Reg(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/24.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | Im(i64), [INFO] [stdout] | -- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RegOrIm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 28 - Im(i64), [INFO] [stdout] 28 + Im(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/24.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | Inp(Reg), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 44 - Inp(Reg), [INFO] [stdout] 44 + Inp(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/24.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | Add(Reg, RegOrIm), [INFO] [stdout] | --- ^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` 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] 45 - Add(Reg, RegOrIm), [INFO] [stdout] 45 + Add((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/24.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | Mul(Reg, RegOrIm), [INFO] [stdout] | --- ^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` 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] 46 - Mul(Reg, RegOrIm), [INFO] [stdout] 46 + Mul((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/24.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | Div(Reg, RegOrIm), [INFO] [stdout] | --- ^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` 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] 47 - Div(Reg, RegOrIm), [INFO] [stdout] 47 + Div((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/24.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | Mod(Reg, RegOrIm), [INFO] [stdout] | --- ^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` 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] 48 - Mod(Reg, RegOrIm), [INFO] [stdout] 48 + Mod((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/24.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | Eql(Reg, RegOrIm), [INFO] [stdout] | --- ^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` 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] 49 - Eql(Reg, RegOrIm), [INFO] [stdout] 49 + Eql((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Alu` is never constructed [INFO] [stdout] --> src/bin/24.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct Alu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run_program`, `run_inst`, `get_reg`, and `set_reg` are never used [INFO] [stdout] --> src/bin/24.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 89 | impl Alu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 90 | fn run_program(&mut self, insts: &[Inst]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn run_inst(&mut self, inst: &Inst) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn get_reg(&self, r: Reg) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn set_reg(&mut self, r: Reg, v: i64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.05s [INFO] running `Command { std: "docker" "inspect" "96d3dbbc213b8afb37fc9b17a00d837e8bbf56b1f8d0281e1ff2a9dc0fc94f84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96d3dbbc213b8afb37fc9b17a00d837e8bbf56b1f8d0281e1ff2a9dc0fc94f84", kill_on_drop: false }` [INFO] [stdout] 96d3dbbc213b8afb37fc9b17a00d837e8bbf56b1f8d0281e1ff2a9dc0fc94f84