[INFO] cloning repository https://github.com/leElvyn/rustyboy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/leElvyn/rustyboy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FleElvyn%2Frustyboy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FleElvyn%2Frustyboy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a3a1628a53bf3af7b71537c049bdde92b104716 [INFO] building leElvyn/rustyboy against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FleElvyn%2Frustyboy" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/leElvyn/rustyboy on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/leElvyn/rustyboy [INFO] finished tweaking git repo https://github.com/leElvyn/rustyboy [INFO] tweaked toml for git repo https://github.com/leElvyn/rustyboy written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/leElvyn/rustyboy 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 799e45d3d0e22510e3ca2ad09f315b7f0647028f51f0802a7177b2de9df4c056 [INFO] running `Command { std: "docker" "start" "-a" "799e45d3d0e22510e3ca2ad09f315b7f0647028f51f0802a7177b2de9df4c056", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "799e45d3d0e22510e3ca2ad09f315b7f0647028f51f0802a7177b2de9df4c056", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "799e45d3d0e22510e3ca2ad09f315b7f0647028f51f0802a7177b2de9df4c056", kill_on_drop: false }` [INFO] [stdout] 799e45d3d0e22510e3ca2ad09f315b7f0647028f51f0802a7177b2de9df4c056 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a331c36817914dd0026c245a7d361b86094be3eb4929601bc2069e401cc6cc78 [INFO] running `Command { std: "docker" "start" "-a" "a331c36817914dd0026c245a7d361b86094be3eb4929601bc2069e401cc6cc78", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling rustyboy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/processingUnit/mod.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | _ => panic!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/processingUnit/mod.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 20 | ArgumentTypes::MemoryAddress => {self.ram.access_memory({ // retrieve the value of the memory address [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 25 | ArgumentTypes::RegisterAddress => {self.registers.access(start_location)}, // access the register [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] 26 | ArgumentTypes::NumericalValue => {start_location.parse::().unwrap()} // parse int [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 27 | _ => panic!() [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cpu` is never constructed [INFO] [stdout] --> src/processingUnit/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ld` is never used [INFO] [stdout] --> src/processingUnit/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Cpu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn ld(mut self, end_location: &str, start_location: &str) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FullMemory` is never constructed [INFO] [stdout] --> src/processingUnit/memory.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct FullMemory { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FullMemory` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_memory` and `access_memory` are never used [INFO] [stdout] --> src/processingUnit/memory.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl FullMemory { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 7 | [INFO] [stdout] 8 | pub fn update_memory(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn access_memory(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Registers` is never constructed [INFO] [stdout] --> src/processingUnit/registers.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Registers { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Registers` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `access` and `update` are never used [INFO] [stdout] --> src/processingUnit/registers.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Registers { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 16 | pub fn access(self, address: &str) -> u8{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn update(mut self, address: &str, value: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_arg` is never used [INFO] [stdout] --> src/utils/match_argument.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn match_arg(argument:&str) -> ArgumentTypes{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ArgumentTypes` is never used [INFO] [stdout] --> src/enums/enumsProcessingUnit.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum ArgumentTypes { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `processingUnit` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod processingUnit; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `processing_unit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `enumsProcessingUnit` should have a snake case name [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod enumsProcessingUnit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `enums_processing_unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.37s [INFO] running `Command { std: "docker" "inspect" "a331c36817914dd0026c245a7d361b86094be3eb4929601bc2069e401cc6cc78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a331c36817914dd0026c245a7d361b86094be3eb4929601bc2069e401cc6cc78", kill_on_drop: false }` [INFO] [stdout] a331c36817914dd0026c245a7d361b86094be3eb4929601bc2069e401cc6cc78 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 16111adf81304117ad25a2f6863afe03281f43e91f8a4c9052db8a6aeb7fa31f [INFO] running `Command { std: "docker" "start" "-a" "16111adf81304117ad25a2f6863afe03281f43e91f8a4c9052db8a6aeb7fa31f", kill_on_drop: false }` [INFO] [stderr] Compiling rustyboy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/processingUnit/mod.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | _ => panic!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/processingUnit/mod.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 20 | ArgumentTypes::MemoryAddress => {self.ram.access_memory({ // retrieve the value of the memory address [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 25 | ArgumentTypes::RegisterAddress => {self.registers.access(start_location)}, // access the register [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] 26 | ArgumentTypes::NumericalValue => {start_location.parse::().unwrap()} // parse int [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 27 | _ => panic!() [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cpu` is never constructed [INFO] [stdout] --> src/processingUnit/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ld` is never used [INFO] [stdout] --> src/processingUnit/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Cpu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn ld(mut self, end_location: &str, start_location: &str) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FullMemory` is never constructed [INFO] [stdout] --> src/processingUnit/memory.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct FullMemory { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FullMemory` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_memory` and `access_memory` are never used [INFO] [stdout] --> src/processingUnit/memory.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl FullMemory { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 7 | [INFO] [stdout] 8 | pub fn update_memory(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn access_memory(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Registers` is never constructed [INFO] [stdout] --> src/processingUnit/registers.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Registers { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Registers` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `access` and `update` are never used [INFO] [stdout] --> src/processingUnit/registers.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Registers { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 16 | pub fn access(self, address: &str) -> u8{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn update(mut self, address: &str, value: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_arg` is never used [INFO] [stdout] --> src/utils/match_argument.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn match_arg(argument:&str) -> ArgumentTypes{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ArgumentTypes` is never used [INFO] [stdout] --> src/enums/enumsProcessingUnit.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum ArgumentTypes { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `processingUnit` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod processingUnit; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `processing_unit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `enumsProcessingUnit` should have a snake case name [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod enumsProcessingUnit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `enums_processing_unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] running `Command { std: "docker" "inspect" "16111adf81304117ad25a2f6863afe03281f43e91f8a4c9052db8a6aeb7fa31f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16111adf81304117ad25a2f6863afe03281f43e91f8a4c9052db8a6aeb7fa31f", kill_on_drop: false }` [INFO] [stdout] 16111adf81304117ad25a2f6863afe03281f43e91f8a4c9052db8a6aeb7fa31f