[INFO] cloning repository https://github.com/bensteku/rust_gba_emu [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bensteku/rust_gba_emu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbensteku%2Frust_gba_emu", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbensteku%2Frust_gba_emu'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eba5068eff1e91dcca157a8d59efb28126bb6350 [INFO] checking bensteku/rust_gba_emu against try#f70ee28831acc074c109afab32d287057c3eca46 for pr-149389 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbensteku%2Frust_gba_emu" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bensteku/rust_gba_emu [INFO] finished tweaking git repo https://github.com/bensteku/rust_gba_emu [INFO] tweaked toml for git repo https://github.com/bensteku/rust_gba_emu written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bensteku/rust_gba_emu on toolchain f70ee28831acc074c109afab32d287057c3eca46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bensteku/rust_gba_emu already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking bensteku/rust_gba_emu against try#f70ee28831acc074c109afab32d287057c3eca46 for pr-149389 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbensteku%2Frust_gba_emu" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bensteku/rust_gba_emu [INFO] finished tweaking git repo https://github.com/bensteku/rust_gba_emu [INFO] tweaked toml for git repo https://github.com/bensteku/rust_gba_emu written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bensteku/rust_gba_emu on toolchain f70ee28831acc074c109afab32d287057c3eca46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bensteku/rust_gba_emu already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num_threads v0.1.7 [INFO] [stderr] Downloaded simple_logger v1.16.0 [INFO] [stderr] Downloaded colored v1.9.4 [INFO] [stderr] Downloaded syn v2.0.87 [INFO] [stderr] Downloaded libc v0.2.162 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ffed7522229dc9771c20443b99065e3e6f0852ae800ca783abb013d6e8a3e5f [INFO] running `Command { std: "docker" "start" "-a" "4ffed7522229dc9771c20443b99065e3e6f0852ae800ca783abb013d6e8a3e5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ffed7522229dc9771c20443b99065e3e6f0852ae800ca783abb013d6e8a3e5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ffed7522229dc9771c20443b99065e3e6f0852ae800ca783abb013d6e8a3e5f", kill_on_drop: false }` [INFO] [stdout] 4ffed7522229dc9771c20443b99065e3e6f0852ae800ca783abb013d6e8a3e5f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8d29289b2570e13ed7da62a3c4496068604d9347e5aef2b4343dc0c3fcb34c64 [INFO] running `Command { std: "docker" "start" "-a" "8d29289b2570e13ed7da62a3c4496068604d9347e5aef2b4343dc0c3fcb34c64", kill_on_drop: false }` [INFO] [stderr] Checking rust_gba_emu v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cartridge::Cartridge` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use cartridge::Cartridge; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::CPU` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use cpu::CPU; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read` [INFO] [stdout] --> src/cartridge.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{read, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R8_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | R8_FIQ = 16, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `R8Fiq` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R9_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | R9_FIQ = 17, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `R9Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R10_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | R10_FIQ = 18, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R10Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R11_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | R11_FIQ = 19, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R11Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R12_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | R12_FIQ = 20, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R12Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R13_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | R13_FIQ = 21, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R13Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R14_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | R14_FIQ = 22, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R14Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R13_IRQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | R13_IRQ = 23, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R13Irq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R14_IRQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | R14_IRQ = 24, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R14Irq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R13_SVC` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | R13_SVC = 25, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R13Svc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R14_SVC` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | R14_SVC = 26, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R14Svc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R13_ABT` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | R13_ABT = 27, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R13Abt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R14_ABT` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | R14_ABT = 28, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R14Abt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R13_UND` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | R13_UND = 29, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R13Und` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R14_UND` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | R14_UND = 30, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R14Und` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SPSR_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | SPSR_FIQ = 32, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `SpsrFiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SPSR_SVC` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | SPSR_SVC = 33, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `SpsrSvc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SPSR_ABT` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | SPSR_ABT = 34, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `SpsrAbt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SPSR_IRQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | SPSR_IRQ = 35, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `SpsrIrq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SPSR_UND` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | SPSR_UND = 36, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `SpsrUnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/instructions/arm.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/instructions/arm.rs:628:15 [INFO] [stdout] | [INFO] [stdout] 628 | let crm = (instruction & B_3_0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 628 - let crm = (instruction & B_3_0); [INFO] [stdout] 628 + let crm = instruction & B_3_0 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CPUMode` [INFO] [stdout] --> src/instructions/thumb.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{cpu::{CPUMode, ConditionFlags, Registers::*, CPU}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CPUMode`, `Registers::*`, and `not_implemented` [INFO] [stdout] --> src/instructions/basic_ops.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{cpu::{CPUMode, ConditionFlags, Registers::*, CPU}, instructions::masks_32bit::*, not_implemented}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cartridge::Cartridge` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use cartridge::Cartridge; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::CPU` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use cpu::CPU; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read` [INFO] [stdout] --> src/cartridge.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{read, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R8_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | R8_FIQ = 16, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `R8Fiq` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R9_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | R9_FIQ = 17, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `R9Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R10_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | R10_FIQ = 18, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R10Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R11_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | R11_FIQ = 19, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R11Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R12_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | R12_FIQ = 20, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R12Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R13_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | R13_FIQ = 21, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R13Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R14_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | R14_FIQ = 22, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R14Fiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R13_IRQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | R13_IRQ = 23, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R13Irq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R14_IRQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | R14_IRQ = 24, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R14Irq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R13_SVC` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | R13_SVC = 25, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R13Svc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R14_SVC` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | R14_SVC = 26, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R14Svc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R13_ABT` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | R13_ABT = 27, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R13Abt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R14_ABT` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | R14_ABT = 28, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R14Abt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R13_UND` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | R13_UND = 29, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R13Und` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `R14_UND` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | R14_UND = 30, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `R14Und` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SPSR_FIQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | SPSR_FIQ = 32, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `SpsrFiq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SPSR_SVC` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | SPSR_SVC = 33, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `SpsrSvc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SPSR_ABT` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | SPSR_ABT = 34, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `SpsrAbt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SPSR_IRQ` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | SPSR_IRQ = 35, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `SpsrIrq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SPSR_UND` should have an upper camel case name [INFO] [stdout] --> src/cpu.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | SPSR_UND = 36, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `SpsrUnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/instructions/arm.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/instructions/arm.rs:628:15 [INFO] [stdout] | [INFO] [stdout] 628 | let crm = (instruction & B_3_0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 628 - let crm = (instruction & B_3_0); [INFO] [stdout] 628 + let crm = instruction & B_3_0 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CPUMode` [INFO] [stdout] --> src/instructions/thumb.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{cpu::{CPUMode, ConditionFlags, Registers::*, CPU}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CPUMode`, `Registers::*`, and `not_implemented` [INFO] [stdout] --> src/instructions/basic_ops.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{cpu::{CPUMode, ConditionFlags, Registers::*, CPU}, instructions::masks_32bit::*, not_implemented}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `RWType` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/cpu.rs:365:65 [INFO] [stdout] | [INFO] [stdout] 365 | _ => panic!("Invalid read type {} in memory read!", rw_type) [INFO] [stdout] | -- ^^^^^^^ `RWType` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `RWType` [INFO] [stdout] --> src/cpu.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | pub enum RWType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `RWType` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/cpu.rs:402:67 [INFO] [stdout] | [INFO] [stdout] 402 | _ => panic!("Invalid write mode {} in memory write!", rw_type) [INFO] [stdout] | -- ^^^^^^^ `RWType` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `RWType` [INFO] [stdout] --> src/cpu.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | pub enum RWType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `RWType` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/cpu.rs:365:65 [INFO] [stdout] | [INFO] [stdout] 365 | _ => panic!("Invalid read type {} in memory read!", rw_type) [INFO] [stdout] | -- ^^^^^^^ `RWType` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `RWType` [INFO] [stdout] --> src/cpu.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | pub enum RWType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `RWType` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/cpu.rs:402:67 [INFO] [stdout] | [INFO] [stdout] 402 | _ => panic!("Invalid write mode {} in memory write!", rw_type) [INFO] [stdout] | -- ^^^^^^^ `RWType` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `RWType` [INFO] [stdout] --> src/cpu.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | pub enum RWType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:409:64 [INFO] [stdout] | [INFO] [stdout] 409 | let load_value = cpu.memory_read(offset_address, if b {0} else {2}); [INFO] [stdout] | ^ expected `RWType`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:409:73 [INFO] [stdout] | [INFO] [stdout] 409 | let load_value = cpu.memory_read(offset_address, if b {0} else {2}); [INFO] [stdout] | ^ expected `RWType`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:414:48 [INFO] [stdout] | [INFO] [stdout] 414 | cpu.memory_write(offset_address, if b {0} else {2}, store_value); [INFO] [stdout] | ^ expected `RWType`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:414:57 [INFO] [stdout] | [INFO] [stdout] 414 | cpu.memory_write(offset_address, if b {0} else {2}, store_value); [INFO] [stdout] | ^ expected `RWType`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:409:64 [INFO] [stdout] | [INFO] [stdout] 409 | let load_value = cpu.memory_read(offset_address, if b {0} else {2}); [INFO] [stdout] | ^ expected `RWType`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:409:73 [INFO] [stdout] | [INFO] [stdout] 409 | let load_value = cpu.memory_read(offset_address, if b {0} else {2}); [INFO] [stdout] | ^ expected `RWType`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:473:61 [INFO] [stdout] | [INFO] [stdout] 473 | load_data = cpu.memory_read(offset_address, 1); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:414:48 [INFO] [stdout] | [INFO] [stdout] 414 | cpu.memory_write(offset_address, if b {0} else {2}, store_value); [INFO] [stdout] | ^ expected `RWType`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:414:57 [INFO] [stdout] | [INFO] [stdout] 414 | cpu.memory_write(offset_address, if b {0} else {2}, store_value); [INFO] [stdout] | ^ expected `RWType`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:481:61 [INFO] [stdout] | [INFO] [stdout] 481 | load_data = cpu.memory_read(offset_address, 0); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:492:57 [INFO] [stdout] | [INFO] [stdout] 492 | load_data = cpu.memory_read(offset_address, 1); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:473:61 [INFO] [stdout] | [INFO] [stdout] 473 | load_data = cpu.memory_read(offset_address, 1); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:499:42 [INFO] [stdout] | [INFO] [stdout] 499 | cpu.memory_write(offset_address, 1, cpu.register_read(rd) & B_15_0); [INFO] [stdout] | ------------ ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 369 | pub fn memory_write(&mut self, address: u32, rw_type: RWType, value: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:481:61 [INFO] [stdout] | [INFO] [stdout] 481 | load_data = cpu.memory_read(offset_address, 0); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:518:43 [INFO] [stdout] | [INFO] [stdout] 518 | let memory_read = cpu.memory_read(rn, b); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:492:57 [INFO] [stdout] | [INFO] [stdout] 492 | load_data = cpu.memory_read(offset_address, 1); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:520:26 [INFO] [stdout] | [INFO] [stdout] 520 | cpu.memory_write(rn, b, cpu.register_read(rm)); [INFO] [stdout] | ------------ ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 369 | pub fn memory_write(&mut self, address: u32, rw_type: RWType, value: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:499:42 [INFO] [stdout] | [INFO] [stdout] 499 | cpu.memory_write(offset_address, 1, cpu.register_read(rd) & B_15_0); [INFO] [stdout] | ------------ ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 369 | pub fn memory_write(&mut self, address: u32, rw_type: RWType, value: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:581:75 [INFO] [stdout] | [INFO] [stdout] 581 | cpu.register_write_custom(i, cpu.memory_read(cur_address, 2), CPUMode::User); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:584:68 [INFO] [stdout] | [INFO] [stdout] 584 | cpu.register_write(i, cpu.memory_read(cur_address, 2)); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:518:43 [INFO] [stdout] | [INFO] [stdout] 518 | let memory_read = cpu.memory_read(rn, b); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:591:47 [INFO] [stdout] | [INFO] [stdout] 591 | cpu.memory_write(cur_address, 2, cpu.register_read_custom(i, CPUMode::User)); [INFO] [stdout] | ------------ ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 369 | pub fn memory_write(&mut self, address: u32, rw_type: RWType, value: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:520:26 [INFO] [stdout] | [INFO] [stdout] 520 | cpu.memory_write(rn, b, cpu.register_read(rm)); [INFO] [stdout] | ------------ ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 369 | pub fn memory_write(&mut self, address: u32, rw_type: RWType, value: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:594:47 [INFO] [stdout] | [INFO] [stdout] 594 | cpu.memory_write(cur_address, 2, cpu.register_read(i)); [INFO] [stdout] | ------------ ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 369 | pub fn memory_write(&mut self, address: u32, rw_type: RWType, value: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:581:75 [INFO] [stdout] | [INFO] [stdout] 581 | cpu.register_write_custom(i, cpu.memory_read(cur_address, 2), CPUMode::User); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:584:68 [INFO] [stdout] | [INFO] [stdout] 584 | cpu.register_write(i, cpu.memory_read(cur_address, 2)); [INFO] [stdout] | ----------- ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn memory_read(&self, address: u32, rw_type: RWType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:591:47 [INFO] [stdout] | [INFO] [stdout] 591 | cpu.memory_write(cur_address, 2, cpu.register_read_custom(i, CPUMode::User)); [INFO] [stdout] | ------------ ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 369 | pub fn memory_write(&mut self, address: u32, rw_type: RWType, value: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instructions/arm.rs:594:47 [INFO] [stdout] | [INFO] [stdout] 594 | cpu.memory_write(cur_address, 2, cpu.register_read(i)); [INFO] [stdout] | ------------ ^ expected `RWType`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/cpu.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 369 | pub fn memory_write(&mut self, address: u32, rw_type: RWType, value: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/instructions/arm.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn placeholder_arm(cpu: &mut CPU, opcode: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opcode` [INFO] [stdout] --> src/instructions/arm.rs:10:39 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn placeholder_arm(cpu: &mut CPU, opcode: u32) { [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/instructions/arm.rs:621:36 [INFO] [stdout] | [INFO] [stdout] 621 | pub fn coprocessor_data_operations(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cp_opc` [INFO] [stdout] --> src/instructions/arm.rs:623:9 [INFO] [stdout] | [INFO] [stdout] 623 | let cp_opc = (instruction & B_23_20) >> 20; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cp_opc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crn` [INFO] [stdout] --> src/instructions/arm.rs:624:9 [INFO] [stdout] | [INFO] [stdout] 624 | let crn = (instruction & B_19_16) >> 16; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_crn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crd` [INFO] [stdout] --> src/instructions/arm.rs:625:9 [INFO] [stdout] | [INFO] [stdout] 625 | let crd = (instruction & B_15_12) >> 12; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_crd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cphash` [INFO] [stdout] --> src/instructions/arm.rs:626:9 [INFO] [stdout] | [INFO] [stdout] 626 | let cphash = (instruction & B_11_8) >> 8; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cphash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cp` [INFO] [stdout] --> src/instructions/arm.rs:627:9 [INFO] [stdout] | [INFO] [stdout] 627 | let cp = (instruction & B_7_5) >> 5; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crm` [INFO] [stdout] --> src/instructions/arm.rs:628:9 [INFO] [stdout] | [INFO] [stdout] 628 | let crm = (instruction & B_3_0); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_crm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/instructions/arm.rs:633:34 [INFO] [stdout] | [INFO] [stdout] 633 | pub fn coprocessor_data_transfer(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/instructions/arm.rs:635:9 [INFO] [stdout] | [INFO] [stdout] 635 | let p = (instruction & B_24) != 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/instructions/arm.rs:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | let u = (instruction & B_23) != 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/instructions/arm.rs:637:9 [INFO] [stdout] | [INFO] [stdout] 637 | let n = (instruction & B_22) != 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/instructions/arm.rs:639:9 [INFO] [stdout] | [INFO] [stdout] 639 | let l = (instruction & B_20) != 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crd` [INFO] [stdout] --> src/instructions/arm.rs:642:9 [INFO] [stdout] | [INFO] [stdout] 642 | let crd = (instruction & B_15_12) >> 12; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_crd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cphash` [INFO] [stdout] --> src/instructions/arm.rs:643:9 [INFO] [stdout] | [INFO] [stdout] 643 | let cphash = (instruction & B_11_8) >> 8; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cphash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/instructions/arm.rs:644:9 [INFO] [stdout] | [INFO] [stdout] 644 | let offset = instruction & B_7_0; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/instructions/arm.rs:653:38 [INFO] [stdout] | [INFO] [stdout] 653 | pub fn coprocessor_register_transfer(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> src/instructions/arm.rs:653:53 [INFO] [stdout] | [INFO] [stdout] 653 | pub fn coprocessor_register_transfer(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/instructions/arm.rs:657:18 [INFO] [stdout] | [INFO] [stdout] 657 | pub fn undefined(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> src/instructions/arm.rs:657:33 [INFO] [stdout] | [INFO] [stdout] 657 | pub fn undefined(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/instructions/thumb.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn placeholder_thumb(cpu: &mut CPU, opcode: u32) { [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/instructions/thumb.rs:7:41 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn placeholder_thumb(cpu: &mut CPU, opcode: u32) { [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/instructions/arm.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn placeholder_arm(cpu: &mut CPU, opcode: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opcode` [INFO] [stdout] --> src/instructions/arm.rs:10:39 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn placeholder_arm(cpu: &mut CPU, opcode: u32) { [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/instructions/arm.rs:621:36 [INFO] [stdout] | [INFO] [stdout] 621 | pub fn coprocessor_data_operations(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cp_opc` [INFO] [stdout] --> src/instructions/arm.rs:623:9 [INFO] [stdout] | [INFO] [stdout] 623 | let cp_opc = (instruction & B_23_20) >> 20; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cp_opc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crn` [INFO] [stdout] --> src/instructions/arm.rs:624:9 [INFO] [stdout] | [INFO] [stdout] 624 | let crn = (instruction & B_19_16) >> 16; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_crn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crd` [INFO] [stdout] --> src/instructions/arm.rs:625:9 [INFO] [stdout] | [INFO] [stdout] 625 | let crd = (instruction & B_15_12) >> 12; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_crd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cphash` [INFO] [stdout] --> src/instructions/arm.rs:626:9 [INFO] [stdout] | [INFO] [stdout] 626 | let cphash = (instruction & B_11_8) >> 8; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cphash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cp` [INFO] [stdout] --> src/instructions/arm.rs:627:9 [INFO] [stdout] | [INFO] [stdout] 627 | let cp = (instruction & B_7_5) >> 5; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crm` [INFO] [stdout] --> src/instructions/arm.rs:628:9 [INFO] [stdout] | [INFO] [stdout] 628 | let crm = (instruction & B_3_0); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_crm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/instructions/arm.rs:633:34 [INFO] [stdout] | [INFO] [stdout] 633 | pub fn coprocessor_data_transfer(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/instructions/arm.rs:635:9 [INFO] [stdout] | [INFO] [stdout] 635 | let p = (instruction & B_24) != 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/instructions/arm.rs:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | let u = (instruction & B_23) != 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/instructions/arm.rs:637:9 [INFO] [stdout] | [INFO] [stdout] 637 | let n = (instruction & B_22) != 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/instructions/arm.rs:639:9 [INFO] [stdout] | [INFO] [stdout] 639 | let l = (instruction & B_20) != 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crd` [INFO] [stdout] --> src/instructions/arm.rs:642:9 [INFO] [stdout] | [INFO] [stdout] 642 | let crd = (instruction & B_15_12) >> 12; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_crd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cphash` [INFO] [stdout] --> src/instructions/arm.rs:643:9 [INFO] [stdout] | [INFO] [stdout] 643 | let cphash = (instruction & B_11_8) >> 8; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cphash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/instructions/arm.rs:644:9 [INFO] [stdout] | [INFO] [stdout] 644 | let offset = instruction & B_7_0; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/instructions/arm.rs:653:38 [INFO] [stdout] | [INFO] [stdout] 653 | pub fn coprocessor_register_transfer(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> src/instructions/arm.rs:653:53 [INFO] [stdout] | [INFO] [stdout] 653 | pub fn coprocessor_register_transfer(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/instructions/arm.rs:657:18 [INFO] [stdout] | [INFO] [stdout] 657 | pub fn undefined(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> src/instructions/arm.rs:657:33 [INFO] [stdout] | [INFO] [stdout] 657 | pub fn undefined(cpu: &mut CPU, instruction: u32) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/instructions/thumb.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn placeholder_thumb(cpu: &mut CPU, opcode: u32) { [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/instructions/thumb.rs:7:41 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn placeholder_thumb(cpu: &mut CPU, opcode: u32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_opcode` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_gba_emu` (bin "rust_gba_emu") due to 16 previous errors; 51 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_gba_emu` (bin "rust_gba_emu" test) due to 16 previous errors; 51 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8d29289b2570e13ed7da62a3c4496068604d9347e5aef2b4343dc0c3fcb34c64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d29289b2570e13ed7da62a3c4496068604d9347e5aef2b4343dc0c3fcb34c64", kill_on_drop: false }` [INFO] [stdout] 8d29289b2570e13ed7da62a3c4496068604d9347e5aef2b4343dc0c3fcb34c64