[INFO] cloning repository https://github.com/ctames/rusc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ctames/rusc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fctames%2Frusc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fctames%2Frusc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 738956a019bb0472fb011a489fc8fe954a97ad18 [INFO] checking ctames/rusc against master#d14d202262d13df896b0c624b0cec6e4bfde631a for pr-143028 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fctames%2Frusc" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ctames/rusc [INFO] finished tweaking git repo https://github.com/ctames/rusc [INFO] tweaked toml for git repo https://github.com/ctames/rusc written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ctames/rusc on toolchain d14d202262d13df896b0c624b0cec6e4bfde631a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ctames/rusc 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" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f313855b8e56b6a4f8a8ad33cb21ddf305a91571e8eb2caeb4fdfb12b0cde8d [INFO] running `Command { std: "docker" "start" "-a" "3f313855b8e56b6a4f8a8ad33cb21ddf305a91571e8eb2caeb4fdfb12b0cde8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f313855b8e56b6a4f8a8ad33cb21ddf305a91571e8eb2caeb4fdfb12b0cde8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f313855b8e56b6a4f8a8ad33cb21ddf305a91571e8eb2caeb4fdfb12b0cde8d", kill_on_drop: false }` [INFO] [stdout] 3f313855b8e56b6a4f8a8ad33cb21ddf305a91571e8eb2caeb4fdfb12b0cde8d [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 857e78e39eca0f832c12185edb29f6a714b2b20d48dcdebde7e746cb21d0f4b0 [INFO] running `Command { std: "docker" "start" "-a" "857e78e39eca0f832c12185edb29f6a714b2b20d48dcdebde7e746cb21d0f4b0", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking rusc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/cpu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/cpu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/cpu.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | Err(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | let mut reader = BufReader::new(file.unwrap()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:161:7 [INFO] [stdout] | [INFO] [stdout] 161 | let mut line_split: Vec<&str> = line.split(" ").collect(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 289 | let mut stage = Stage { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/cpu.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | Err(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | let mut reader = BufReader::new(file.unwrap()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ZERO` is never used [INFO] [stdout] --> src/cpu.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | static ZERO: i16 = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `immed` is never read [INFO] [stdout] --> src/cpu.rs:141:2 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct Instruction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 141 | immed: i16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:161:7 [INFO] [stdout] | [INFO] [stdout] 161 | let mut line_split: Vec<&str> = line.split(" ").collect(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 289 | let mut stage = Stage { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 21 | io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `addc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | static addc: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 16 - static addc: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] 16 + static ADDC: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `addic` should have an upper case name [INFO] [stdout] --> src/cpu.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | static addic: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 17 - static addic: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] 17 + static ADDIC: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `nandc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static nandc: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 18 - static nandc: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] 18 + static NANDC: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `luic` should have an upper case name [INFO] [stdout] --> src/cpu.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | static luic: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 19 - static luic: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] 19 + static LUIC: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `swc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | static swc: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 20 - static swc: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] 20 + static SWC: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lwc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | static lwc: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 21 - static lwc: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] 21 + static LWC: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `beqc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | static beqc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 22 - static beqc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] 22 + static BEQC: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `jalrc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | static jalrc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 23 - static jalrc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] 23 + static JALRC: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `haltc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | static haltc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 24 - static haltc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] 24 + static HALTC: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | write!(f, "gpreg{} : {}\n", x, self.registers[x]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:405:3 [INFO] [stdout] | [INFO] [stdout] 405 | write!(f, "STATE AFTER CYCLE: {:?}\n ", self.cycle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:406:3 [INFO] [stdout] | [INFO] [stdout] 406 | write!(f, "IF: {} - cycles {:?} out of {:?}\n", self.stages[0].clone().instr.unwrap_or(default.clone()), self.stages[0].ce, self.stages[0].cn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:407:3 [INFO] [stdout] | [INFO] [stdout] 407 | write!(f, "ID: {} - cycles {:?} out of {:?}\n", self.stages[1].clone().instr.unwrap_or(default.clone()), self.stages[1].ce, self.stages[1].cn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:408:3 [INFO] [stdout] | [INFO] [stdout] 408 | write!(f, "EX: {} - cycles {:?} out of {:?}\n", self.stages[2].clone().instr.unwrap_or(default.clone()), self.stages[2].ce, self.stages[2].cn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:409:3 [INFO] [stdout] | [INFO] [stdout] 409 | write!(f, "ME: {} - cycles {:?} out of {:?}\n", self.stages[3].clone().instr.unwrap_or(default.clone()), self.stages[3].ce, self.stages[3].cn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:410:3 [INFO] [stdout] | [INFO] [stdout] 410 | write!(f, "WB: {} - cycles {:?} out of {:?}\n", self.stages[4].clone().instr.unwrap_or(default.clone()), self.stages[4].ce, self.stages[4].cn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ZERO` is never used [INFO] [stdout] --> src/cpu.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | static ZERO: i16 = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `immed` is never read [INFO] [stdout] --> src/cpu.rs:141:2 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct Instruction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 141 | immed: i16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 21 | io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `addc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | static addc: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 16 - static addc: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] 16 + static ADDC: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `addic` should have an upper case name [INFO] [stdout] --> src/cpu.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | static addic: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 17 - static addic: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] 17 + static ADDIC: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `nandc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static nandc: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 18 - static nandc: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] 18 + static NANDC: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `luic` should have an upper case name [INFO] [stdout] --> src/cpu.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | static luic: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 19 - static luic: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] 19 + static LUIC: [u8; 5] = [1, 1, 2, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `swc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | static swc: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 20 - static swc: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] 20 + static SWC: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lwc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | static lwc: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 21 - static lwc: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] 21 + static LWC: [u8; 5] = [1, 1, 2, 3, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `beqc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | static beqc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 22 - static beqc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] 22 + static BEQC: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `jalrc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | static jalrc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 23 - static jalrc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] 23 + static JALRC: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `haltc` should have an upper case name [INFO] [stdout] --> src/cpu.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | static haltc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 24 - static haltc: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] 24 + static HALTC: [u8; 5] = [1, 1, 1, 1, 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | write!(f, "gpreg{} : {}\n", x, self.registers[x]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:405:3 [INFO] [stdout] | [INFO] [stdout] 405 | write!(f, "STATE AFTER CYCLE: {:?}\n ", self.cycle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:406:3 [INFO] [stdout] | [INFO] [stdout] 406 | write!(f, "IF: {} - cycles {:?} out of {:?}\n", self.stages[0].clone().instr.unwrap_or(default.clone()), self.stages[0].ce, self.stages[0].cn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:407:3 [INFO] [stdout] | [INFO] [stdout] 407 | write!(f, "ID: {} - cycles {:?} out of {:?}\n", self.stages[1].clone().instr.unwrap_or(default.clone()), self.stages[1].ce, self.stages[1].cn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:408:3 [INFO] [stdout] | [INFO] [stdout] 408 | write!(f, "EX: {} - cycles {:?} out of {:?}\n", self.stages[2].clone().instr.unwrap_or(default.clone()), self.stages[2].ce, self.stages[2].cn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:409:3 [INFO] [stdout] | [INFO] [stdout] 409 | write!(f, "ME: {} - cycles {:?} out of {:?}\n", self.stages[3].clone().instr.unwrap_or(default.clone()), self.stages[3].ce, self.stages[3].cn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:410:3 [INFO] [stdout] | [INFO] [stdout] 410 | write!(f, "WB: {} - cycles {:?} out of {:?}\n", self.stages[4].clone().instr.unwrap_or(default.clone()), self.stages[4].ce, self.stages[4].cn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "857e78e39eca0f832c12185edb29f6a714b2b20d48dcdebde7e746cb21d0f4b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "857e78e39eca0f832c12185edb29f6a714b2b20d48dcdebde7e746cb21d0f4b0", kill_on_drop: false }` [INFO] [stdout] 857e78e39eca0f832c12185edb29f6a714b2b20d48dcdebde7e746cb21d0f4b0