[INFO] cloning repository https://github.com/ryuseikurata/computer_system [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ryuseikurata/computer_system" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryuseikurata%2Fcomputer_system", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryuseikurata%2Fcomputer_system'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5609128bfdf796c22f84c327a55f771a8d28c23a [INFO] checking ryuseikurata/computer_system against try#3bb2879ea9e58d65b875f9a98df44f4a43ce2597 for pr-85387 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryuseikurata%2Fcomputer_system" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ryuseikurata/computer_system on toolchain 3bb2879ea9e58d65b875f9a98df44f4a43ce2597 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ryuseikurata/computer_system [INFO] finished tweaking git repo https://github.com/ryuseikurata/computer_system [INFO] tweaked toml for git repo https://github.com/ryuseikurata/computer_system written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/ryuseikurata/computer_system already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 23c992ffdacfb16bb7563bb055c2cddceb0dbf2ca315c8b9454cb4dcb50bc42c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "23c992ffdacfb16bb7563bb055c2cddceb0dbf2ca315c8b9454cb4dcb50bc42c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23c992ffdacfb16bb7563bb055c2cddceb0dbf2ca315c8b9454cb4dcb50bc42c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23c992ffdacfb16bb7563bb055c2cddceb0dbf2ca315c8b9454cb4dcb50bc42c", kill_on_drop: false }` [INFO] [stdout] 23c992ffdacfb16bb7563bb055c2cddceb0dbf2ca315c8b9454cb4dcb50bc42c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cce0c03fc56116da6477a6736e26fedb4f641d0360bbecd6ae3c95cccb1ce0bc [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cce0c03fc56116da6477a6736e26fedb4f641d0360bbecd6ae3c95cccb1ce0bc", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking computer_system v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `mux` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | gates::{and, mux, mux16}, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mux` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | gates::{and, mux, mux16}, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_memory` [INFO] [stdout] --> src/computer_components/cpu.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn execute(input_memory: Word, instruction: Word, reset: bool) {} [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_memory` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> src/computer_components/cpu.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn execute(input_memory: Word, instruction: Word, reset: bool) {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reset` [INFO] [stdout] --> src/computer_components/cpu.rs:6:59 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn execute(input_memory: Word, instruction: Word, reset: bool) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_reset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/computer_components/screen.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn calc(input: Word, load: bool, address: [bool; 13]) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `load` [INFO] [stdout] --> src/computer_components/screen.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn calc(input: Word, load: bool, address: [bool; 13]) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_load` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/computer_components/screen.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn calc(input: Word, load: bool, address: [bool; 13]) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/sequence_circuits/read_only_memory.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let file = File::open(file_name.clone()).expect(&format!("Fail to Open {}", file_name)); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reset` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:27:65 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn cycle(&mut self, in_memory: Word, instruction: Word, reset: bool) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_reset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sequence_circuits/word.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from_str(mut s: &str) -> Word { [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: struct is never constructed: `HalfAdder` [INFO] [stdout] --> src/adders/half_adder.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct HalfAdder { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calc` [INFO] [stdout] --> src/adders/half_adder.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn calc(a: bool, b: bool) -> AdderResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `FullAdder` [INFO] [stdout] --> src/adders/full_adder.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct FullAdder { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calc` [INFO] [stdout] --> src/adders/full_adder.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn calc(a: bool, b: bool, c: bool) -> AdderResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/adders/adder16.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn calc(a: Word, b: Word) -> Word { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/adders/incrementer16.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn calc(input: Word) -> Word { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/adders/alu.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn calc( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `zero_or_negate` [INFO] [stdout] --> src/adders/alu.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn zero_or_negate(input: Word, z: bool, n: bool) -> Word { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_or_and` [INFO] [stdout] --> src/adders/alu.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn add_or_and(a: Word, b: Word, f: bool) -> Word { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `equal_zero` [INFO] [stdout] --> src/adders/alu.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn equal_zero(input: Word) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CPU` [INFO] [stdout] --> src/computer_components/cpu.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CPU {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/computer_components/cpu.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn execute(input_memory: Word, instruction: Word, reset: bool) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Screen` [INFO] [stdout] --> src/computer_components/screen.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Screen {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calc` [INFO] [stdout] --> src/computer_components/screen.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn calc(input: Word, load: bool, address: [bool; 13]) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ZERO` [INFO] [stdout] --> src/const_values.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const ZERO: Word = [false; 16]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ONE` [INFO] [stdout] --> src/const_values.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub const ONE: Word = [ [INFO] [stdout] 8 | | true, false, false, false, false, false, false, false, false, false, false, false, false, [INFO] [stdout] 9 | | false, false, false, [INFO] [stdout] 10 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FULL` [INFO] [stdout] --> src/const_values.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub const FULL: Word = [true; 16]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_1` [INFO] [stdout] --> src/const_values.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub const SAMPLE_1: Word = [ [INFO] [stdout] 14 | | true, false, true, false, true, true, false, true, false, true, false, true, false, true, [INFO] [stdout] 15 | | false, false, [INFO] [stdout] 16 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_2` [INFO] [stdout] --> src/const_values.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | / pub const SAMPLE_2: Word = [ [INFO] [stdout] 19 | | false, true, false, true, false, true, false, true, false, true, false, true, false, true, [INFO] [stdout] 20 | | false, false, [INFO] [stdout] 21 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_3` [INFO] [stdout] --> src/const_values.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | / pub const SAMPLE_3: Word = [ [INFO] [stdout] 24 | | false, true, false, true, true, true, false, true, false, true, true, true, false, true, false, [INFO] [stdout] 25 | | false, [INFO] [stdout] 26 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_4` [INFO] [stdout] --> src/const_values.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / pub const SAMPLE_4: Word = [ [INFO] [stdout] 29 | | false, true, true, true, true, true, true, true, false, true, true, true, false, false, false, [INFO] [stdout] 30 | | false, [INFO] [stdout] 31 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_5` [INFO] [stdout] --> src/const_values.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / pub const SAMPLE_5: Word = [ [INFO] [stdout] 34 | | false, true, true, false, true, false, false, true, false, true, false, true, false, true, [INFO] [stdout] 35 | | false, false, [INFO] [stdout] 36 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_6` [INFO] [stdout] --> src/const_values.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / pub const SAMPLE_6: Word = [ [INFO] [stdout] 39 | | false, true, true, false, true, true, true, true, true, true, true, true, false, true, [INFO] [stdout] 40 | | false, false, [INFO] [stdout] 41 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/and.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn calc(a: bool, b: bool) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/and16.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn calc(a: Word, b: Word) -> Word { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/dmux.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn calc(input: bool, sel: bool) -> [bool; 2] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/dmux4way.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn calc(input: bool, sel: [bool; 2]) -> [bool; 4] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/dmux8way.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn calc(input: bool, sel: [bool; 3]) -> [bool; 8] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/mux.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn calc(a: bool, b: bool, sel: bool) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/mux16.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn calc(a: Word, b: Word, sel: bool) -> Word { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/mux4way16.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn calc(a: Word, b: Word, c: Word, d: Word, sel: [bool; 2]) -> Word { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/mux8way16.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn calc( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/nand.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn calc(a: bool, b: bool) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/not.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn calc(a: bool) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/not16.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn calc(a: Word) -> Word { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/or.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn calc(a: bool, b: bool) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/or8way.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn calc(input: [bool; 8]) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/xor.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn calc(a: bool, b: bool) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Counter` [INFO] [stdout] --> src/sequence_circuits/counter_circuit.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/counter_circuit.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calc` [INFO] [stdout] --> src/sequence_circuits/counter_circuit.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn calc(&mut self, input: Word, inc: bool, load: bool, reset: bool) -> Word { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `FlipFlop` [INFO] [stdout] --> src/sequence_circuits/flip_flop.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct FlipFlop { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/flip_flop.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn new() -> FlipFlop { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/flip_flop.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn out(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/flip_flop.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn clock(&mut self, a: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RAM8` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RAM8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn out(&self, address: [bool; 3]) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn clock(&mut self, address: [bool; 3], input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RAM64` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct RAM64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn out(&self, address: [bool; 6]) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn clock(&mut self, address: [bool; 6], input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RAM512` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct RAM512 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn out(&self, address: [bool; 9]) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn clock(&mut self, address: [bool; 9], input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RAM4K` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct RAM4K { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn out(&self, address: [bool; 12]) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn clock(&mut self, address: [bool; 12], input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RAM16K` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub struct RAM16K { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn out(&self, address: [bool; 14]) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:258:12 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn clock(&mut self, address: [bool; 14], input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ROM32K` [INFO] [stdout] --> src/sequence_circuits/read_only_memory.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ROM32K { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/sequence_circuits/read_only_memory.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn load(&mut self, file_name: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BitRegister` [INFO] [stdout] --> src/sequence_circuits/bit_register.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BitRegister { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/bit_register.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/bit_register.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn out(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/bit_register.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn clock(&mut self, input: bool, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Register` [INFO] [stdout] --> src/sequence_circuits/register.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Register { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/register.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/register.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn out(&self) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/register.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn clock(&mut self, input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Clock` [INFO] [stdout] --> src/sequence_circuits/clock.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Clock { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `state` [INFO] [stdout] --> src/sequence_circuits/clock.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn state(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next` [INFO] [stdout] --> src/sequence_circuits/clock.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn next(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/clock.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Word` [INFO] [stdout] --> src/sequence_circuits/word.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub type Word = [bool; 16]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_string` [INFO] [stdout] --> src/sequence_circuits/word.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn from_string(mut s: String) -> Word { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_str` [INFO] [stdout] --> src/sequence_circuits/word.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from_str(mut s: &str) -> Word { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CPU` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct CPU { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cycle` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn cycle(&mut self, in_memory: Word, instruction: Word, reset: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn decode(instruction: Word) -> (bool, [bool; 2], bool, [bool; 6], [bool; 3], [bool; 3]) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 96 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_memory` [INFO] [stdout] --> src/computer_components/cpu.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn execute(input_memory: Word, instruction: Word, reset: bool) {} [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_memory` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> src/computer_components/cpu.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn execute(input_memory: Word, instruction: Word, reset: bool) {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reset` [INFO] [stdout] --> src/computer_components/cpu.rs:6:59 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn execute(input_memory: Word, instruction: Word, reset: bool) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_reset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/computer_components/screen.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn calc(input: Word, load: bool, address: [bool; 13]) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `load` [INFO] [stdout] --> src/computer_components/screen.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn calc(input: Word, load: bool, address: [bool; 13]) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_load` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/computer_components/screen.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn calc(input: Word, load: bool, address: [bool; 13]) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/sequence_circuits/read_only_memory.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let file = File::open(file_name.clone()).expect(&format!("Fail to Open {}", file_name)); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reset` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:27:65 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn cycle(&mut self, in_memory: Word, instruction: Word, reset: bool) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_reset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sequence_circuits/word.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from_str(mut s: &str) -> Word { [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: field is never read: `a` [INFO] [stdout] --> src/adders/half_adder.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | a: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `b` [INFO] [stdout] --> src/adders/half_adder.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | b: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `a` [INFO] [stdout] --> src/adders/full_adder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | a: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `b` [INFO] [stdout] --> src/adders/full_adder.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | b: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/adders/incrementer16.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn calc(input: Word) -> Word { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CPU` [INFO] [stdout] --> src/computer_components/cpu.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CPU {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/computer_components/cpu.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn execute(input_memory: Word, instruction: Word, reset: bool) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Screen` [INFO] [stdout] --> src/computer_components/screen.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Screen {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calc` [INFO] [stdout] --> src/computer_components/screen.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn calc(input: Word, load: bool, address: [bool; 13]) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_6` [INFO] [stdout] --> src/const_values.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / pub const SAMPLE_6: Word = [ [INFO] [stdout] 39 | | false, true, true, false, true, true, true, true, true, true, true, true, false, true, [INFO] [stdout] 40 | | false, false, [INFO] [stdout] 41 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/gates/dmux8way.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn calc(input: bool, sel: [bool; 3]) -> [bool; 8] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Counter` [INFO] [stdout] --> src/sequence_circuits/counter_circuit.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/counter_circuit.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calc` [INFO] [stdout] --> src/sequence_circuits/counter_circuit.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn calc(&mut self, input: Word, inc: bool, load: bool, reset: bool) -> Word { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `FlipFlop` [INFO] [stdout] --> src/sequence_circuits/flip_flop.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct FlipFlop { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/flip_flop.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn new() -> FlipFlop { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/flip_flop.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn out(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/flip_flop.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn clock(&mut self, a: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RAM8` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RAM8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn out(&self, address: [bool; 3]) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn clock(&mut self, address: [bool; 3], input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RAM64` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct RAM64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn out(&self, address: [bool; 6]) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn clock(&mut self, address: [bool; 6], input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RAM512` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct RAM512 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn out(&self, address: [bool; 9]) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn clock(&mut self, address: [bool; 9], input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RAM4K` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct RAM4K { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn out(&self, address: [bool; 12]) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn clock(&mut self, address: [bool; 12], input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RAM16K` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub struct RAM16K { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn out(&self, address: [bool; 14]) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/random_access_memory.rs:258:12 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn clock(&mut self, address: [bool; 14], input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ROM32K` [INFO] [stdout] --> src/sequence_circuits/read_only_memory.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ROM32K { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/sequence_circuits/read_only_memory.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn load(&mut self, file_name: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BitRegister` [INFO] [stdout] --> src/sequence_circuits/bit_register.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BitRegister { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/bit_register.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/bit_register.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn out(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/bit_register.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn clock(&mut self, input: bool, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Register` [INFO] [stdout] --> src/sequence_circuits/register.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Register { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/register.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `out` [INFO] [stdout] --> src/sequence_circuits/register.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn out(&self) -> Word { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/sequence_circuits/register.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn clock(&mut self, input: Word, load: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Clock` [INFO] [stdout] --> src/sequence_circuits/clock.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Clock { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `state` [INFO] [stdout] --> src/sequence_circuits/clock.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn state(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next` [INFO] [stdout] --> src/sequence_circuits/clock.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn next(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/clock.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_string` [INFO] [stdout] --> src/sequence_circuits/word.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn from_string(mut s: String) -> Word { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CPU` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct CPU { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cycle` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn cycle(&mut self, in_memory: Word, instruction: Word, reset: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn decode(instruction: Word) -> (bool, [bool; 2], bool, [bool; 6], [bool; 3], [bool; 3]) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 67 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.96s [INFO] running `Command { std: "docker" "inspect" "cce0c03fc56116da6477a6736e26fedb4f641d0360bbecd6ae3c95cccb1ce0bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cce0c03fc56116da6477a6736e26fedb4f641d0360bbecd6ae3c95cccb1ce0bc", kill_on_drop: false }` [INFO] [stdout] cce0c03fc56116da6477a6736e26fedb4f641d0360bbecd6ae3c95cccb1ce0bc