[INFO] cloning repository https://github.com/FuSoftware/microchip-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FuSoftware/microchip-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFuSoftware%2Fmicrochip-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFuSoftware%2Fmicrochip-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 83f72efc93a530f697bd023a421120509571c1ba [INFO] checking FuSoftware/microchip-rs against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFuSoftware%2Fmicrochip-rs" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/FuSoftware/microchip-rs on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/FuSoftware/microchip-rs [INFO] finished tweaking git repo https://github.com/FuSoftware/microchip-rs [INFO] tweaked toml for git repo https://github.com/FuSoftware/microchip-rs written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/FuSoftware/microchip-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3d166eed81bb771d49a84d4e6713db1bc081315fe60419ad002f5fbe341528ad [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" "3d166eed81bb771d49a84d4e6713db1bc081315fe60419ad002f5fbe341528ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d166eed81bb771d49a84d4e6713db1bc081315fe60419ad002f5fbe341528ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d166eed81bb771d49a84d4e6713db1bc081315fe60419ad002f5fbe341528ad", kill_on_drop: false }` [INFO] [stdout] 3d166eed81bb771d49a84d4e6713db1bc081315fe60419ad002f5fbe341528ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a14dd8c44bebf5cd3fe8453a2a3300496e4a9bd110abc8ee4bcd2b93a59c1a00 [INFO] running `Command { std: "docker" "start" "-a" "a14dd8c44bebf5cd3fe8453a2a3300496e4a9bd110abc8ee4bcd2b93a59c1a00", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling syn v1.0.34 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking microchip-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking plotters v0.2.15 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stdout] warning: type `WD1772_PINS` should have an upper camel case name [INFO] [stdout] --> src/lib/components/wd1772.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum WD1772_PINS { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Wd1772Pins` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_Decompiler_Instruction` should have an upper camel case name [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MCS51_Decompiler_Instruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51DecompilerInstruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_Decompiler` should have an upper camel case name [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct MCS51_Decompiler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Decompiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::decompiler::mcs51` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lib::decompiler::mcs51; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_REGISTERS` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum MCS51_REGISTERS { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Registers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `REGISTER_COUNT` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | REGISTER_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RegisterCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_ADDRESSING` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum MCS51_ADDRESSING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Addressing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `INDIRECT_Ri` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | INDIRECT_Ri(u8), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `IndirectRi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADDR_16` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | ADDR_16, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Addr16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADDR_11` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | ADDR_11, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Addr11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PIC16F628A_INSTRUCTION` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum PIC16F628A_INSTRUCTION { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Pic16f628aInstruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PIC16F628A_REGISTERS` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | pub enum PIC16F628A_REGISTERS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Pic16f628aRegisters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `REGISTER_COUNT` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | REGISTER_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RegisterCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking crossbeam-epoch v0.8.2 [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | dispatch: [|cpu| {}; 256], [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opcode` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:547:13 [INFO] [stdout] | [INFO] [stdout] 547 | let opcode = self.program[self.pc as usize]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_opcode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1398:32 [INFO] [stdout] | [INFO] [stdout] 1398 | self.dispatch[0xB1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1399:32 [INFO] [stdout] | [INFO] [stdout] 1399 | self.dispatch[0xB2] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1400:32 [INFO] [stdout] | [INFO] [stdout] 1400 | self.dispatch[0xB3] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1449:32 [INFO] [stdout] | [INFO] [stdout] 1449 | self.dispatch[0xC0] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1450:32 [INFO] [stdout] | [INFO] [stdout] 1450 | self.dispatch[0xC1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1507:32 [INFO] [stdout] | [INFO] [stdout] 1507 | self.dispatch[0xD0] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1508:32 [INFO] [stdout] | [INFO] [stdout] 1508 | self.dispatch[0xD1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1509:32 [INFO] [stdout] | [INFO] [stdout] 1509 | self.dispatch[0xD2] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1510:32 [INFO] [stdout] | [INFO] [stdout] 1510 | self.dispatch[0xD3] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1511:32 [INFO] [stdout] | [INFO] [stdout] 1511 | self.dispatch[0xD4] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1516:32 [INFO] [stdout] | [INFO] [stdout] 1516 | self.dispatch[0xD6] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1517:32 [INFO] [stdout] | [INFO] [stdout] 1517 | self.dispatch[0xD7] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1553:32 [INFO] [stdout] | [INFO] [stdout] 1553 | self.dispatch[0xE1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1611:32 [INFO] [stdout] | [INFO] [stdout] 1611 | self.dispatch[0xF1] = |cpu: &mut MCS51| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_addr` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1731:13 [INFO] [stdout] | [INFO] [stdout] 1731 | let src_addr = self.get_u8(MCS51_ADDRESSING::REGISTER(reg)); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_addr` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1735:13 [INFO] [stdout] | [INFO] [stdout] 1735 | let dest_addr = self.get_u8(MCS51_ADDRESSING::REGISTER(reg)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `result` is assigned to, but never used [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1827:13 [INFO] [stdout] | [INFO] [stdout] 1827 | let mut result = acc - src; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1830:13 [INFO] [stdout] | [INFO] [stdout] 1830 | result -= 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_data` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:855:13 [INFO] [stdout] | [INFO] [stdout] 855 | let new_data = data & !(1 << b); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_data` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:861:13 [INFO] [stdout] | [INFO] [stdout] 861 | let new_data = data | (1 << b); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:904:27 [INFO] [stdout] | [INFO] [stdout] 904 | fn op_call(&mut self, k: u16) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:932:28 [INFO] [stdout] | [INFO] [stdout] 932 | fn op_retlw(&mut self, k: u8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `WD1772_PINS` [INFO] [stdout] --> src/lib/components/wd1772.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum WD1772_PINS { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `WD1772` [INFO] [stdout] --> src/lib/components/wd1772.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct WD1772 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib/components/wd1772.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new() -> WD1772 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `k_addr` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | k_addr: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `opcode` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | opcode: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `status` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | status: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `stack` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | stack: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stdout] warning: type `WD1772_PINS` should have an upper camel case name [INFO] [stdout] --> src/lib/components/wd1772.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum WD1772_PINS { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Wd1772Pins` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_Decompiler_Instruction` should have an upper camel case name [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MCS51_Decompiler_Instruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51DecompilerInstruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_Decompiler` should have an upper camel case name [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct MCS51_Decompiler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Decompiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::decompiler::mcs51` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lib::decompiler::mcs51; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_REGISTERS` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum MCS51_REGISTERS { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Registers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `REGISTER_COUNT` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | REGISTER_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RegisterCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_ADDRESSING` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum MCS51_ADDRESSING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Addressing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `INDIRECT_Ri` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | INDIRECT_Ri(u8), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `IndirectRi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADDR_16` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | ADDR_16, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Addr16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADDR_11` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | ADDR_11, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Addr11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PIC16F628A_INSTRUCTION` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum PIC16F628A_INSTRUCTION { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Pic16f628aInstruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PIC16F628A_REGISTERS` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | pub enum PIC16F628A_REGISTERS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Pic16f628aRegisters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `REGISTER_COUNT` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | REGISTER_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RegisterCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/bin_main.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/bin_main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rayon-core v1.7.1 [INFO] [stdout] warning: unused variable: `prev_pc` [INFO] [stdout] --> src/bin_main.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 409 | let mut prev_pc: u16 = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_pc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inst` [INFO] [stdout] --> src/bin_main.rs:415:13 [INFO] [stdout] | [INFO] [stdout] 415 | let inst = decomp.get_instruction(*pc); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_inst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | dispatch: [|cpu| {}; 256], [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opcode` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:547:13 [INFO] [stdout] | [INFO] [stdout] 547 | let opcode = self.program[self.pc as usize]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_opcode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1398:32 [INFO] [stdout] | [INFO] [stdout] 1398 | self.dispatch[0xB1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1399:32 [INFO] [stdout] | [INFO] [stdout] 1399 | self.dispatch[0xB2] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1400:32 [INFO] [stdout] | [INFO] [stdout] 1400 | self.dispatch[0xB3] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1449:32 [INFO] [stdout] | [INFO] [stdout] 1449 | self.dispatch[0xC0] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1450:32 [INFO] [stdout] | [INFO] [stdout] 1450 | self.dispatch[0xC1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1507:32 [INFO] [stdout] | [INFO] [stdout] 1507 | self.dispatch[0xD0] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1508:32 [INFO] [stdout] | [INFO] [stdout] 1508 | self.dispatch[0xD1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1509:32 [INFO] [stdout] | [INFO] [stdout] 1509 | self.dispatch[0xD2] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1510:32 [INFO] [stdout] | [INFO] [stdout] 1510 | self.dispatch[0xD3] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1511:32 [INFO] [stdout] | [INFO] [stdout] 1511 | self.dispatch[0xD4] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1516:32 [INFO] [stdout] | [INFO] [stdout] 1516 | self.dispatch[0xD6] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1517:32 [INFO] [stdout] | [INFO] [stdout] 1517 | self.dispatch[0xD7] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1553:32 [INFO] [stdout] | [INFO] [stdout] 1553 | self.dispatch[0xE1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1611:32 [INFO] [stdout] | [INFO] [stdout] 1611 | self.dispatch[0xF1] = |cpu: &mut MCS51| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_addr` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1731:13 [INFO] [stdout] | [INFO] [stdout] 1731 | let src_addr = self.get_u8(MCS51_ADDRESSING::REGISTER(reg)); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_addr` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1735:13 [INFO] [stdout] | [INFO] [stdout] 1735 | let dest_addr = self.get_u8(MCS51_ADDRESSING::REGISTER(reg)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `result` is assigned to, but never used [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1827:13 [INFO] [stdout] | [INFO] [stdout] 1827 | let mut result = acc - src; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1830:13 [INFO] [stdout] | [INFO] [stdout] 1830 | result -= 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_data` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:855:13 [INFO] [stdout] | [INFO] [stdout] 855 | let new_data = data & !(1 << b); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_data` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:861:13 [INFO] [stdout] | [INFO] [stdout] 861 | let new_data = data | (1 << b); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:904:27 [INFO] [stdout] | [INFO] [stdout] 904 | fn op_call(&mut self, k: u16) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:932:28 [INFO] [stdout] | [INFO] [stdout] 932 | fn op_retlw(&mut self, k: u8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin_main.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 409 | let mut prev_pc: u16 = 0; [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: enum is never used: `WD1772_PINS` [INFO] [stdout] --> src/lib/components/wd1772.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum WD1772_PINS { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `WD1772` [INFO] [stdout] --> src/lib/components/wd1772.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct WD1772 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib/components/wd1772.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new() -> WD1772 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `label_list` [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn label_list(&self) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_to_file` [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn write_to_file(&self, path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bit_address_name_num` [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn bit_address_name_num(address: u8) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_opcode` [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 213 | pub fn get_opcode(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ADDR_11` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | ADDR_11, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RELATIVE` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | RELATIVE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_stack_pointer` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn set_stack_pointer(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_sfr_mut` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn get_sfr_mut(&mut self, register: MCS51_REGISTERS) -> Option<&mut u8> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_pc_rel` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn write_pc_rel(&mut self, value: u16, sub: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_current_register_bank` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn get_current_register_bank(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_raw` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn read_raw(&self, address: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_aux_carry_flag` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:462:12 [INFO] [stdout] | [INFO] [stdout] 462 | pub fn get_aux_carry_flag(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_overflow_flag` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:475:12 [INFO] [stdout] | [INFO] [stdout] 475 | pub fn get_overflow_flag(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:491:12 [INFO] [stdout] | [INFO] [stdout] 491 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_registers` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:498:12 [INFO] [stdout] | [INFO] [stdout] 498 | pub fn reset_registers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:527:12 [INFO] [stdout] | [INFO] [stdout] 527 | pub fn clock(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_instruction_debug_match` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:542:12 [INFO] [stdout] | [INFO] [stdout] 542 | pub fn next_instruction_debug_match(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_instruction_debug_table` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:551:12 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn next_instruction_debug_table(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `op_movx_a_ri` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1730:12 [INFO] [stdout] | [INFO] [stdout] 1730 | pub fn op_movx_a_ri(&mut self, reg: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `op_movx_ri_a` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1734:12 [INFO] [stdout] | [INFO] [stdout] 1734 | pub fn op_movx_ri_a(&mut self, reg: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `PIC16F628A_INSTRUCTION` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum PIC16F628A_INSTRUCTION { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn parse(opcode: u16) -> PIC16F628A_INSTRUCTION { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `k_addr` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | k_addr: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `opcode` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | opcode: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `status` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | status: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `program_memory` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 183 | program_memory: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `stack` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | stack: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pc_offset` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 223 | pub fn pc_offset(&mut self, offset: i8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pc_read` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:249:12 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn pc_read(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_bank` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn set_bank(&mut self, bank: u8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_program` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:266:12 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn set_program(&mut self, program: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_digital_carry_flag` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:349:12 [INFO] [stdout] | [INFO] [stdout] 349 | pub fn get_digital_carry_flag(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_zero_flag` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:357:12 [INFO] [stdout] | [INFO] [stdout] 357 | pub fn get_zero_flag(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_instruction` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:546:12 [INFO] [stdout] | [INFO] [stdout] 546 | pub fn next_instruction(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `INPUT` [INFO] [stdout] --> src/lib/traits/component.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | INPUT, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `OUTPUT` [INFO] [stdout] --> src/lib/traits/component.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | OUTPUT, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BOTH` [INFO] [stdout] --> src/lib/traits/component.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | BOTH, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pin` [INFO] [stdout] --> src/lib/traits/component.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Pin { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib/traits/component.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(direction: PinDirection) -> Pin { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_value` [INFO] [stdout] --> src/lib/traits/component.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn set_value(&mut self, value: bool, direction: PinDirection) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_value` [INFO] [stdout] --> src/lib/traits/component.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_value(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_emulator_16f628a` [INFO] [stdout] --> src/bin_main.rs:191:4 [INFO] [stdout] | [INFO] [stdout] 191 | fn test_emulator_16f628a() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_emulator_mcs51` [INFO] [stdout] --> src/bin_main.rs:282:4 [INFO] [stdout] | [INFO] [stdout] 282 | fn test_emulator_mcs51() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_file_as_byte_vec` [INFO] [stdout] --> src/bin_main.rs:365:4 [INFO] [stdout] | [INFO] [stdout] 365 | fn get_file_as_byte_vec(filename: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_decompile_mcs51` [INFO] [stdout] --> src/bin_main.rs:373:4 [INFO] [stdout] | [INFO] [stdout] 373 | fn test_decompile_mcs51() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 90 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking criterion-plot v0.4.3 [INFO] [stderr] Checking rayon v1.3.1 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking bstr v0.2.13 [INFO] [stderr] Checking serde_json v1.0.56 [INFO] [stderr] Checking serde_cbor v0.11.1 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Checking csv v1.1.3 [INFO] [stderr] Checking tinytemplate v1.1.0 [INFO] [stderr] Checking criterion v0.3.3 [INFO] [stdout] warning: unused import: `black_box` [INFO] [stdout] --> benches/bench.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use criterion::{black_box, criterion_group, criterion_main, Criterion}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `WD1772_PINS` should have an upper camel case name [INFO] [stdout] --> src/lib/components/wd1772.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum WD1772_PINS { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Wd1772Pins` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_Decompiler_Instruction` should have an upper camel case name [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MCS51_Decompiler_Instruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51DecompilerInstruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_Decompiler` should have an upper camel case name [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct MCS51_Decompiler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Decompiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::decompiler::mcs51` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lib::decompiler::mcs51; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_REGISTERS` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum MCS51_REGISTERS { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Registers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `REGISTER_COUNT` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | REGISTER_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RegisterCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_ADDRESSING` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum MCS51_ADDRESSING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Addressing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `INDIRECT_Ri` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | INDIRECT_Ri(u8), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `IndirectRi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADDR_16` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | ADDR_16, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Addr16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADDR_11` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | ADDR_11, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Addr11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PIC16F628A_INSTRUCTION` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum PIC16F628A_INSTRUCTION { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Pic16f628aInstruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PIC16F628A_REGISTERS` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | pub enum PIC16F628A_REGISTERS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Pic16f628aRegisters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `REGISTER_COUNT` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | REGISTER_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RegisterCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `WD1772_PINS` should have an upper camel case name [INFO] [stdout] --> src/lib/components/wd1772.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum WD1772_PINS { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Wd1772Pins` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_Decompiler_Instruction` should have an upper camel case name [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MCS51_Decompiler_Instruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51DecompilerInstruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_Decompiler` should have an upper camel case name [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct MCS51_Decompiler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Decompiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::decompiler::mcs51` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lib::decompiler::mcs51; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_REGISTERS` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum MCS51_REGISTERS { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Registers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `REGISTER_COUNT` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | REGISTER_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RegisterCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MCS51_ADDRESSING` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum MCS51_ADDRESSING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mcs51Addressing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `INDIRECT_Ri` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | INDIRECT_Ri(u8), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `IndirectRi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADDR_16` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | ADDR_16, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Addr16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADDR_11` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/mcs51.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | ADDR_11, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Addr11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PIC16F628A_INSTRUCTION` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum PIC16F628A_INSTRUCTION { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Pic16f628aInstruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PIC16F628A_REGISTERS` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | pub enum PIC16F628A_REGISTERS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Pic16f628aRegisters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `REGISTER_COUNT` should have an upper camel case name [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | REGISTER_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RegisterCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/bin_main.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/bin_main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_pc` [INFO] [stdout] --> src/bin_main.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 409 | let mut prev_pc: u16 = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_pc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inst` [INFO] [stdout] --> src/bin_main.rs:415:13 [INFO] [stdout] | [INFO] [stdout] 415 | let inst = decomp.get_instruction(*pc); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_inst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | dispatch: [|cpu| {}; 256], [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opcode` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:547:13 [INFO] [stdout] | [INFO] [stdout] 547 | let opcode = self.program[self.pc as usize]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_opcode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1398:32 [INFO] [stdout] | [INFO] [stdout] 1398 | self.dispatch[0xB1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1399:32 [INFO] [stdout] | [INFO] [stdout] 1399 | self.dispatch[0xB2] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1400:32 [INFO] [stdout] | [INFO] [stdout] 1400 | self.dispatch[0xB3] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1449:32 [INFO] [stdout] | [INFO] [stdout] 1449 | self.dispatch[0xC0] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1450:32 [INFO] [stdout] | [INFO] [stdout] 1450 | self.dispatch[0xC1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1507:32 [INFO] [stdout] | [INFO] [stdout] 1507 | self.dispatch[0xD0] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1508:32 [INFO] [stdout] | [INFO] [stdout] 1508 | self.dispatch[0xD1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1509:32 [INFO] [stdout] | [INFO] [stdout] 1509 | self.dispatch[0xD2] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1510:32 [INFO] [stdout] | [INFO] [stdout] 1510 | self.dispatch[0xD3] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1511:32 [INFO] [stdout] | [INFO] [stdout] 1511 | self.dispatch[0xD4] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1516:32 [INFO] [stdout] | [INFO] [stdout] 1516 | self.dispatch[0xD6] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1517:32 [INFO] [stdout] | [INFO] [stdout] 1517 | self.dispatch[0xD7] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1553:32 [INFO] [stdout] | [INFO] [stdout] 1553 | self.dispatch[0xE1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1611:32 [INFO] [stdout] | [INFO] [stdout] 1611 | self.dispatch[0xF1] = |cpu: &mut MCS51| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_addr` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1731:13 [INFO] [stdout] | [INFO] [stdout] 1731 | let src_addr = self.get_u8(MCS51_ADDRESSING::REGISTER(reg)); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_addr` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1735:13 [INFO] [stdout] | [INFO] [stdout] 1735 | let dest_addr = self.get_u8(MCS51_ADDRESSING::REGISTER(reg)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `result` is assigned to, but never used [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1827:13 [INFO] [stdout] | [INFO] [stdout] 1827 | let mut result = acc - src; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1830:13 [INFO] [stdout] | [INFO] [stdout] 1830 | result -= 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_data` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:855:13 [INFO] [stdout] | [INFO] [stdout] 855 | let new_data = data & !(1 << b); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_data` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:861:13 [INFO] [stdout] | [INFO] [stdout] 861 | let new_data = data | (1 << b); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:904:27 [INFO] [stdout] | [INFO] [stdout] 904 | fn op_call(&mut self, k: u16) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:932:28 [INFO] [stdout] | [INFO] [stdout] 932 | fn op_retlw(&mut self, k: u8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin_main.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 409 | let mut prev_pc: u16 = 0; [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: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | dispatch: [|cpu| {}; 256], [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opcode` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:547:13 [INFO] [stdout] | [INFO] [stdout] 547 | let opcode = self.program[self.pc as usize]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_opcode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1398:32 [INFO] [stdout] | [INFO] [stdout] 1398 | self.dispatch[0xB1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1399:32 [INFO] [stdout] | [INFO] [stdout] 1399 | self.dispatch[0xB2] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1400:32 [INFO] [stdout] | [INFO] [stdout] 1400 | self.dispatch[0xB3] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1449:32 [INFO] [stdout] | [INFO] [stdout] 1449 | self.dispatch[0xC0] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1450:32 [INFO] [stdout] | [INFO] [stdout] 1450 | self.dispatch[0xC1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1507:32 [INFO] [stdout] | [INFO] [stdout] 1507 | self.dispatch[0xD0] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1508:32 [INFO] [stdout] | [INFO] [stdout] 1508 | self.dispatch[0xD1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1509:32 [INFO] [stdout] | [INFO] [stdout] 1509 | self.dispatch[0xD2] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1510:32 [INFO] [stdout] | [INFO] [stdout] 1510 | self.dispatch[0xD3] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1511:32 [INFO] [stdout] | [INFO] [stdout] 1511 | self.dispatch[0xD4] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1516:32 [INFO] [stdout] | [INFO] [stdout] 1516 | self.dispatch[0xD6] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1517:32 [INFO] [stdout] | [INFO] [stdout] 1517 | self.dispatch[0xD7] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1553:32 [INFO] [stdout] | [INFO] [stdout] 1553 | self.dispatch[0xE1] = |cpu: &mut MCS51| {}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1611:32 [INFO] [stdout] | [INFO] [stdout] 1611 | self.dispatch[0xF1] = |cpu: &mut MCS51| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_addr` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1731:13 [INFO] [stdout] | [INFO] [stdout] 1731 | let src_addr = self.get_u8(MCS51_ADDRESSING::REGISTER(reg)); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_addr` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1735:13 [INFO] [stdout] | [INFO] [stdout] 1735 | let dest_addr = self.get_u8(MCS51_ADDRESSING::REGISTER(reg)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `result` is assigned to, but never used [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1827:13 [INFO] [stdout] | [INFO] [stdout] 1827 | let mut result = acc - src; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1830:13 [INFO] [stdout] | [INFO] [stdout] 1830 | result -= 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_data` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:855:13 [INFO] [stdout] | [INFO] [stdout] 855 | let new_data = data & !(1 << b); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_data` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:861:13 [INFO] [stdout] | [INFO] [stdout] 861 | let new_data = data | (1 << b); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:904:27 [INFO] [stdout] | [INFO] [stdout] 904 | fn op_call(&mut self, k: u16) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:932:28 [INFO] [stdout] | [INFO] [stdout] 932 | fn op_retlw(&mut self, k: u8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `WD1772_PINS` [INFO] [stdout] --> src/lib/components/wd1772.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum WD1772_PINS { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `WD1772` [INFO] [stdout] --> src/lib/components/wd1772.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct WD1772 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib/components/wd1772.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new() -> WD1772 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `label_list` [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn label_list(&self) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_to_file` [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn write_to_file(&self, path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bit_address_name_num` [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn bit_address_name_num(address: u8) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_opcode` [INFO] [stdout] --> src/lib/decompiler/mcs51.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 213 | pub fn get_opcode(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ADDR_11` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | ADDR_11, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RELATIVE` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | RELATIVE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_stack_pointer` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn set_stack_pointer(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_sfr_mut` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn get_sfr_mut(&mut self, register: MCS51_REGISTERS) -> Option<&mut u8> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_pc_rel` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn write_pc_rel(&mut self, value: u16, sub: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_raw` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn read_raw(&self, address: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:527:12 [INFO] [stdout] | [INFO] [stdout] 527 | pub fn clock(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_instruction_debug_match` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:542:12 [INFO] [stdout] | [INFO] [stdout] 542 | pub fn next_instruction_debug_match(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_instruction_debug_table` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:551:12 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn next_instruction_debug_table(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `op_movx_a_ri` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1730:12 [INFO] [stdout] | [INFO] [stdout] 1730 | pub fn op_movx_a_ri(&mut self, reg: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `op_movx_ri_a` [INFO] [stdout] --> src/lib/mcus/mcs51.rs:1734:12 [INFO] [stdout] | [INFO] [stdout] 1734 | pub fn op_movx_ri_a(&mut self, reg: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `PIC16F628A_INSTRUCTION` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum PIC16F628A_INSTRUCTION { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn parse(opcode: u16) -> PIC16F628A_INSTRUCTION { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `k_addr` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | k_addr: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `opcode` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | opcode: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `status` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | status: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `program_memory` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 183 | program_memory: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `stack` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | stack: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pc_offset` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 223 | pub fn pc_offset(&mut self, offset: i8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pc_read` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:249:12 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn pc_read(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_program` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:266:12 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn set_program(&mut self, program: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_digital_carry_flag` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:349:12 [INFO] [stdout] | [INFO] [stdout] 349 | pub fn get_digital_carry_flag(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_zero_flag` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:357:12 [INFO] [stdout] | [INFO] [stdout] 357 | pub fn get_zero_flag(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_instruction` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:546:12 [INFO] [stdout] | [INFO] [stdout] 546 | pub fn next_instruction(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `INPUT` [INFO] [stdout] --> src/lib/traits/component.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | INPUT, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `OUTPUT` [INFO] [stdout] --> src/lib/traits/component.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | OUTPUT, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BOTH` [INFO] [stdout] --> src/lib/traits/component.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | BOTH, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pin` [INFO] [stdout] --> src/lib/traits/component.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Pin { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib/traits/component.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(direction: PinDirection) -> Pin { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_value` [INFO] [stdout] --> src/lib/traits/component.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn set_value(&mut self, value: bool, direction: PinDirection) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_value` [INFO] [stdout] --> src/lib/traits/component.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_value(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_emulator_16f628a` [INFO] [stdout] --> src/bin_main.rs:191:4 [INFO] [stdout] | [INFO] [stdout] 191 | fn test_emulator_16f628a() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_emulator_mcs51` [INFO] [stdout] --> src/bin_main.rs:282:4 [INFO] [stdout] | [INFO] [stdout] 282 | fn test_emulator_mcs51() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_file_as_byte_vec` [INFO] [stdout] --> src/bin_main.rs:365:4 [INFO] [stdout] | [INFO] [stdout] 365 | fn get_file_as_byte_vec(filename: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_decompile_mcs51` [INFO] [stdout] --> src/bin_main.rs:373:4 [INFO] [stdout] | [INFO] [stdout] 373 | fn test_decompile_mcs51() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `WD1772_PINS` [INFO] [stdout] --> src/lib/components/wd1772.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum WD1772_PINS { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 84 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `WD1772` [INFO] [stdout] --> src/lib/components/wd1772.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct WD1772 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib/components/wd1772.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new() -> WD1772 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `k_addr` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | k_addr: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `opcode` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | opcode: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `status` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | status: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `stack` [INFO] [stdout] --> src/lib/mcus/pic16f628a.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | stack: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 52.62s [INFO] running `Command { std: "docker" "inspect" "a14dd8c44bebf5cd3fe8453a2a3300496e4a9bd110abc8ee4bcd2b93a59c1a00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a14dd8c44bebf5cd3fe8453a2a3300496e4a9bd110abc8ee4bcd2b93a59c1a00", kill_on_drop: false }` [INFO] [stdout] a14dd8c44bebf5cd3fe8453a2a3300496e4a9bd110abc8ee4bcd2b93a59c1a00