[INFO] cloning repository https://github.com/witchofthewires/nandputer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/witchofthewires/nandputer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwitchofthewires%2Fnandputer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwitchofthewires%2Fnandputer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dc2729d478d2af1bc8b07abe9819ad7b6e47c7be [INFO] checking witchofthewires/nandputer against master#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwitchofthewires%2Fnandputer" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/witchofthewires/nandputer [INFO] finished tweaking git repo https://github.com/witchofthewires/nandputer [INFO] tweaked toml for git repo https://github.com/witchofthewires/nandputer written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/witchofthewires/nandputer on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/witchofthewires/nandputer 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" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 320cac10393c6aefe1f0a6c224b9486e7f4aa86984c63aa4d8f51023dd2c6adc [INFO] running `Command { std: "docker" "start" "-a" "320cac10393c6aefe1f0a6c224b9486e7f4aa86984c63aa4d8f51023dd2c6adc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "320cac10393c6aefe1f0a6c224b9486e7f4aa86984c63aa4d8f51023dd2c6adc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "320cac10393c6aefe1f0a6c224b9486e7f4aa86984c63aa4d8f51023dd2c6adc", kill_on_drop: false }` [INFO] [stdout] 320cac10393c6aefe1f0a6c224b9486e7f4aa86984c63aa4d8f51023dd2c6adc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d730bc5be1a95bf74f097acdc28614fe8dc2ea38d06116b315ea9da2d2c8a36b [INFO] running `Command { std: "docker" "start" "-a" "d730bc5be1a95bf74f097acdc28614fe8dc2ea38d06116b315ea9da2d2c8a36b", kill_on_drop: false }` [INFO] [stderr] Checking nandputer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/gates.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> src/gates.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/adder.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gates::mux4way16` [INFO] [stdout] --> src/adder.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gates::mux4way16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter` [INFO] [stdout] --> src/memory.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{iter,fmt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/gates.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::boollist_to_bytes` [INFO] [stdout] --> src/gates.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | use utils::boollist_to_bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/gates.rs:422:16 [INFO] [stdout] | [INFO] [stdout] 422 | if (byte == 0) { expected = false; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 422 - if (byte == 0) { expected = false; } [INFO] [stdout] 422 + if byte == 0 { expected = false; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/gates.rs:426:29 [INFO] [stdout] | [INFO] [stdout] 426 | inputs[i] = (((byte >> i) & 1) == 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 426 - inputs[i] = (((byte >> i) & 1) == 1); [INFO] [stdout] 426 + inputs[i] = ((byte >> i) & 1) == 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/adder.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gates::mux4way16` [INFO] [stdout] --> src/adder.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gates::mux4way16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter` [INFO] [stdout] --> src/memory.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{iter,fmt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::bytes_to_boollist` [INFO] [stdout] --> src/memory.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | use utils::bytes_to_boollist; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut addr_bits = bytes_to_boollist(&[byte2,byte1]); [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: unused variable: `args` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut val: u8 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut val: u8 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RISCvCtrl` is more private than the item `riscv_alu` [INFO] [stdout] --> src/adder.rs:146:1 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn riscv_alu(val1: &[bool; 32], val2: &[bool; 32], ctrl: &RISCvCtrl) -> [bool; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `riscv_alu` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `RISCvCtrl` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/adder.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | struct RISCvCtrl { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not16` is never used [INFO] [stdout] --> src/gates.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn not16(val: &[bool; 16]) -> [bool; 16] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not32` is never used [INFO] [stdout] --> src/gates.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn not32(val: &[bool; 32]) -> [bool; 32] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `and16` is never used [INFO] [stdout] --> src/gates.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn and16(val1: &[bool; 16], val2: &[bool; 16]) -> [bool; 16] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `and32` is never used [INFO] [stdout] --> src/gates.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn and32(val1: &[bool; 32], val2: &[bool; 32]) -> [bool; 32] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `or16` is never used [INFO] [stdout] --> src/gates.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn or16(val1: &[bool; 16], val2: &[bool; 16]) -> [bool; 16] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `or32` is never used [INFO] [stdout] --> src/gates.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn or32(val1: &[bool; 32], val2: &[bool; 32]) -> [bool; 32] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `or8way` is never used [INFO] [stdout] --> src/gates.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn or8way(val1: bool, val2: bool, val3: bool, val4: bool, val5: bool, val6: bool, val7: bool, val8: bool) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nor` is never used [INFO] [stdout] --> src/gates.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn nor(val1: bool, val2: bool) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xor` is never used [INFO] [stdout] --> src/gates.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn xor(val1: bool, val2: bool) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xor16` is never used [INFO] [stdout] --> src/gates.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn xor16(val1: &[bool; 16], val2: &[bool; 16]) -> [bool; 16] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xor32` is never used [INFO] [stdout] --> src/gates.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn xor32(val1: &[bool; 32], val2: &[bool; 32]) -> [bool; 32] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mux32` is never used [INFO] [stdout] --> src/gates.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn mux32(val1: &[bool; 32], val2: &[bool; 32], sel: bool) -> [bool; 32] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mux4way32` is never used [INFO] [stdout] --> src/gates.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn mux4way32(vals: &[[bool; 32]; 4], sel: (bool, bool)) -> [bool; 32] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mux8way32` is never used [INFO] [stdout] --> src/gates.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn mux8way32(vals: &[[bool; 32]; 8], sel: (bool, bool, bool)) -> [bool; 32] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dmux` is never used [INFO] [stdout] --> src/gates.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn dmux(val: bool, sel: bool) -> (bool, bool) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dmux4way` is never used [INFO] [stdout] --> src/gates.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn dmux4way(val: bool, sel1: bool, sel2: bool) -> [bool; 4] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HackCtrl` is never constructed [INFO] [stdout] --> src/adder.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct HackCtrl { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/adder.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl HackCtrl { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 17 | fn new(zx: bool, nx: bool, zy: bool, ny: bool, f: bool, no: bool) -> HackCtrl { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RISCvCtrl` is never constructed [INFO] [stdout] --> src/adder.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct RISCvCtrl { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/adder.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl RISCvCtrl { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 32 | fn new(ir: bool, al: bool, c: bool, d: bool, pn: bool) -> RISCvCtrl { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HackOut` is never constructed [INFO] [stdout] --> src/adder.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct HackOut { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/adder.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl HackOut { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 44 | fn new(out: [bool; 16], zr: bool, ng: bool) -> HackOut { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `half_adder` is never used [INFO] [stdout] --> src/adder.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn half_adder(bit1: bool, bit2: bool) -> (bool, bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `full_adder` is never used [INFO] [stdout] --> src/adder.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn full_adder(bit1: bool, bit2: bool, carry: bool) -> (bool, bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add16` is never used [INFO] [stdout] --> src/adder.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn add16(val1: &[bool; 16], val2: &[bool; 16]) -> [bool; 16] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add32` is never used [INFO] [stdout] --> src/adder.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn add32(val1: &[bool; 32], val2: &[bool; 32]) -> [bool; 32] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inc16` is never used [INFO] [stdout] --> src/adder.rs:110:4 [INFO] [stdout] | [INFO] [stdout] 110 | fn inc16(val: &[bool; 16]) -> [bool; 16] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inc32` is never used [INFO] [stdout] --> src/adder.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn inc32(val: &[bool; 32]) -> [bool; 32] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `riscv_alu` is never used [INFO] [stdout] --> src/adder.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn riscv_alu(val1: &[bool; 32], val2: &[bool; 32], ctrl: &RISCvCtrl) -> [bool; 32] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hack_alu` is never used [INFO] [stdout] --> src/adder.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn hack_alu(val1: &[bool; 16], val2: &[bool; 16], ctrl: &HackCtrl) -> HackOut { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Register32` is never constructed [INFO] [stdout] --> src/memory.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct Register32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `clk_cycle` are never used [INFO] [stdout] --> src/memory.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 104 | impl Register32 { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 105 | fn new() -> Register32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn clk_cycle(&mut self, val: &[bool], load: bool) -> [bool; 32] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RAM512` is never constructed [INFO] [stdout] --> src/memory.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | pub struct RAM512 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `clk_cycle` are never used [INFO] [stdout] --> src/memory.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 207 | impl RAM512 { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 208 | pub fn new() -> RAM512 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn clk_cycle(&mut self, val: &[bool], addr: &[bool], load: bool) -> [bool; 16] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RAM4096` is never constructed [INFO] [stdout] --> src/memory.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 223 | pub struct RAM4096 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `clk_cycle` are never used [INFO] [stdout] --> src/memory.rs:228:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl RAM4096 { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 228 | pub fn new() -> RAM4096 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | pub fn clk_cycle(&mut self, val: &[bool], addr: &[bool], load: bool) -> [bool; 16] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RAM16384` is never constructed [INFO] [stdout] --> src/memory.rs:243:12 [INFO] [stdout] | [INFO] [stdout] 243 | pub struct RAM16384 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `clk_cycle` are never used [INFO] [stdout] --> src/memory.rs:248:12 [INFO] [stdout] | [INFO] [stdout] 247 | impl RAM16384 { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 248 | pub fn new() -> RAM16384 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn clk_cycle(&mut self, val: &[bool], addr: &[bool], load: bool) -> [bool; 16] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_to_boollist32` is never used [INFO] [stdout] --> src/utils.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn bytes_to_boollist32(bytes: &[u8]) -> [bool; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `boollist_to_bytes32` is never used [INFO] [stdout] --> src/utils.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn boollist_to_bytes32(boollist: &[bool]) -> [u8; 4] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_memaddr` is never used [INFO] [stdout] --> src/utils.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn gen_memaddr(val: u16) -> [bool; 16] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_to_boolvec` is never used [INFO] [stdout] --> src/utils.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn bytes_to_boolvec(bytes: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut addr_bits = bytes_to_boollist(&[byte2,byte1]); [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: unused variable: `args` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut val: u8 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut val: u8 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `adder::RISCvCtrl` is more private than the item `adder::riscv_alu` [INFO] [stdout] --> src/adder.rs:146:1 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn riscv_alu(val1: &[bool; 32], val2: &[bool; 32], ctrl: &RISCvCtrl) -> [bool; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `adder::riscv_alu` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `adder::RISCvCtrl` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/adder.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | struct RISCvCtrl { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ir` is never read [INFO] [stdout] --> src/adder.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct RISCvCtrl { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 24 | ir: bool, // R-Type 1, I-Type 0 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Register32` is never constructed [INFO] [stdout] --> src/memory.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct Register32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `clk_cycle` are never used [INFO] [stdout] --> src/memory.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 104 | impl Register32 { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 105 | fn new() -> Register32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn clk_cycle(&mut self, val: &[bool], load: bool) -> [bool; 32] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "d730bc5be1a95bf74f097acdc28614fe8dc2ea38d06116b315ea9da2d2c8a36b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d730bc5be1a95bf74f097acdc28614fe8dc2ea38d06116b315ea9da2d2c8a36b", kill_on_drop: false }` [INFO] [stdout] d730bc5be1a95bf74f097acdc28614fe8dc2ea38d06116b315ea9da2d2c8a36b