[INFO] cloning repository https://github.com/jdholdren/lc3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jdholdren/lc3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdholdren%2Flc3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdholdren%2Flc3'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bb9265de269cd174fb01e859a55ab3bbea0eddc4 [INFO] building jdholdren/lc3 against master#ad211ced81509462cdfe4c29ed10f97279a0acae for pr-135216 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdholdren%2Flc3" "/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/jdholdren/lc3 on toolchain ad211ced81509462cdfe4c29ed10f97279a0acae [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jdholdren/lc3 [INFO] finished tweaking git repo https://github.com/jdholdren/lc3 [INFO] tweaked toml for git repo https://github.com/jdholdren/lc3 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jdholdren/lc3 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" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ca9df0ba049d7f6b1271a469a6ceeec9df6ea02913b45b3ec3313fef6b77ae7f [INFO] running `Command { std: "docker" "start" "-a" "ca9df0ba049d7f6b1271a469a6ceeec9df6ea02913b45b3ec3313fef6b77ae7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca9df0ba049d7f6b1271a469a6ceeec9df6ea02913b45b3ec3313fef6b77ae7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca9df0ba049d7f6b1271a469a6ceeec9df6ea02913b45b3ec3313fef6b77ae7f", kill_on_drop: false }` [INFO] [stdout] ca9df0ba049d7f6b1271a469a6ceeec9df6ea02913b45b3ec3313fef6b77ae7f [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2aaa6d136bffd249cfc5d79d0248622e32536e6bf041fe296e4a8660cfef57db [INFO] running `Command { std: "docker" "start" "-a" "2aaa6d136bffd249cfc5d79d0248622e32536e6bf041fe296e4a8660cfef57db", kill_on_drop: false }` [INFO] [stderr] Compiling lc3 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:309:16 [INFO] [stdout] | [INFO] [stdout] 309 | let sign = (i >> (bit_count - 1) & 0b1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 309 - let sign = (i >> (bit_count - 1) & 0b1); [INFO] [stdout] 309 + let sign = i >> (bit_count - 1) & 0b1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | fn index(&self, index: Register) -> &Self::Output { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | fn index_mut(&mut self, index: Register) -> &mut Self::Output { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | fn from(value: Flag) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | enum Register { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 6 | R0 = 0, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | R1, [INFO] [stdout] | ^^ [INFO] [stdout] 8 | R2, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | R3, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | R4, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | R5, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | R6, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | R7, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `P` and `N` are never constructed [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | enum Flag { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 36 | P = 1 << 0, [INFO] [stdout] | ^ [INFO] [stdout] 37 | Z = 1 << 1, [INFO] [stdout] 38 | N = 1 << 2, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Flag` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mem` is never read [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | struct VM { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 50 | reg: [u16; Register::COUNT as usize], [INFO] [stdout] 51 | mem: [u16; MAX_MEMORY], [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `step` is never used [INFO] [stdout] --> src/main.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 71 | impl VM { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] 72 | // Runs one instruction to completion. [INFO] [stdout] 73 | fn step(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Operation` is never used [INFO] [stdout] --> src/main.rs:122:6 [INFO] [stdout] | [INFO] [stdout] 122 | enum Operation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_op` is never used [INFO] [stdout] --> src/main.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn parse_op(instr: u16) -> Operation { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign_extend` is never used [INFO] [stdout] --> src/main.rs:308:4 [INFO] [stdout] | [INFO] [stdout] 308 | fn sign_extend(i: u16, bit_count: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "2aaa6d136bffd249cfc5d79d0248622e32536e6bf041fe296e4a8660cfef57db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2aaa6d136bffd249cfc5d79d0248622e32536e6bf041fe296e4a8660cfef57db", kill_on_drop: false }` [INFO] [stdout] 2aaa6d136bffd249cfc5d79d0248622e32536e6bf041fe296e4a8660cfef57db [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf3bf047b5c3e2c216c7917a37a9ea5066723b6b201a66042ddec4ee5956aba6 [INFO] running `Command { std: "docker" "start" "-a" "cf3bf047b5c3e2c216c7917a37a9ea5066723b6b201a66042ddec4ee5956aba6", kill_on_drop: false }` [INFO] [stderr] Compiling lc3 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:309:16 [INFO] [stdout] | [INFO] [stdout] 309 | let sign = (i >> (bit_count - 1) & 0b1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 309 - let sign = (i >> (bit_count - 1) & 0b1); [INFO] [stdout] 309 + let sign = i >> (bit_count - 1) & 0b1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/main.rs:492:9 [INFO] [stdout] | [INFO] [stdout] 492 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | fn index(&self, index: Register) -> &Self::Output { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | fn index_mut(&mut self, index: Register) -> &mut Self::Output { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | fn from(value: Flag) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | enum Register { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 6 | R0 = 0, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | R1, [INFO] [stdout] | ^^ [INFO] [stdout] 8 | R2, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | R3, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | R4, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | R5, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | R6, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | R7, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `P` and `N` are never constructed [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | enum Flag { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 36 | P = 1 << 0, [INFO] [stdout] | ^ [INFO] [stdout] 37 | Z = 1 << 1, [INFO] [stdout] 38 | N = 1 << 2, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Flag` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mem` is never read [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | struct VM { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 50 | reg: [u16; Register::COUNT as usize], [INFO] [stdout] 51 | mem: [u16; MAX_MEMORY], [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `step` is never used [INFO] [stdout] --> src/main.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 71 | impl VM { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] 72 | // Runs one instruction to completion. [INFO] [stdout] 73 | fn step(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.48s [INFO] running `Command { std: "docker" "inspect" "cf3bf047b5c3e2c216c7917a37a9ea5066723b6b201a66042ddec4ee5956aba6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf3bf047b5c3e2c216c7917a37a9ea5066723b6b201a66042ddec4ee5956aba6", kill_on_drop: false }` [INFO] [stdout] cf3bf047b5c3e2c216c7917a37a9ea5066723b6b201a66042ddec4ee5956aba6