[INFO] cloning repository https://github.com/Amejonah1200/RustyMicroMu
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Amejonah1200/RustyMicroMu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmejonah1200%2FRustyMicroMu", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmejonah1200%2FRustyMicroMu'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0ddcb1cae6c8f13ed9a8805cdba588031beca0ff
[INFO] checking Amejonah1200/RustyMicroMu against master#36b21637e93b038453924d3c66821089e71d8baa for pr-143164
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmejonah1200%2FRustyMicroMu" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Amejonah1200/RustyMicroMu
[INFO] finished tweaking git repo https://github.com/Amejonah1200/RustyMicroMu
[INFO] tweaked toml for git repo https://github.com/Amejonah1200/RustyMicroMu written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Amejonah1200/RustyMicroMu on toolchain 36b21637e93b038453924d3c66821089e71d8baa
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Amejonah1200/RustyMicroMu 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" "+36b21637e93b038453924d3c66821089e71d8baa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded num-derive v0.3.0
[INFO] [stderr]   Downloaded proc-macro2 v1.0.18
[INFO] [stderr]   Downloaded syn v1.0.31
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c86dc6e163583c8546282c4967be0ec1c8a3f3f01196d1447a6be35baad3a9a7
[INFO] running `Command { std: "docker" "start" "-a" "c86dc6e163583c8546282c4967be0ec1c8a3f3f01196d1447a6be35baad3a9a7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c86dc6e163583c8546282c4967be0ec1c8a3f3f01196d1447a6be35baad3a9a7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c86dc6e163583c8546282c4967be0ec1c8a3f3f01196d1447a6be35baad3a9a7", kill_on_drop: false }`
[INFO] [stdout] c86dc6e163583c8546282c4967be0ec1c8a3f3f01196d1447a6be35baad3a9a7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] eff2e2d4e70387bd7d2dd9fae7a9a0aa55572bb91137517f67deac35087c9146
[INFO] running `Command { std: "docker" "start" "-a" "eff2e2d4e70387bd7d2dd9fae7a9a0aa55572bb91137517f67deac35087c9146", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.18
[INFO] [stderr]    Compiling unicode-xid v0.2.0
[INFO] [stderr]    Compiling autocfg v1.0.0
[INFO] [stderr]    Compiling syn v1.0.31
[INFO] [stderr]    Compiling num-traits v0.2.11
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]    Compiling num-derive v0.3.0
[INFO] [stderr]     Checking rusty_micromu v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `cpu`
[INFO] [stdout]  --> src/instruction/disassembler.rs:6:26
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn parse_instruction(cpu: &CPU, instruction: Instruction) -> ParseState {
[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: value assigned to `address` is never read
[INFO] [stdout]    --> src/instruction/instruction.rs:109:13
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let mut address = 0u16;
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `word`
[INFO] [stdout]    --> src/instruction/instruction.rs:122:19
[INFO] [stdout]     |
[INFO] [stdout] 122 |         Immediate(word) => cpu.memory.set_word(cpu.get_pc(), value),
[INFO] [stdout]     |                   ^^^^ help: if this is intentional, prefix it with an underscore: `_word`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/instruction/disassembler.rs:17:11
[INFO] [stdout]    |
[INFO] [stdout] 17 |     Error(Instruction),
[INFO] [stdout]    |     ----- ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 17 -     Error(Instruction),
[INFO] [stdout] 17 +     Error(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/instruction/instruction.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct Instruction {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 11 |     address: u16,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Instruction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_address` is never used
[INFO] [stdout]   --> src/instruction/instruction.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Instruction {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub fn get_address(&self) -> u16 {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_addressing_mode_source` is never used
[INFO] [stdout]   --> src/instruction/instruction.rs:32:8
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub fn get_addressing_mode_source(cpu: &CPU, register: u16, source_mode: u16) -> AddressingMode {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_addressing_mode_destination` is never used
[INFO] [stdout]   --> src/instruction/instruction.rs:68:8
[INFO] [stdout]    |
[INFO] [stdout] 68 | pub fn get_addressing_mode_destination(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_value_from_mode` is never used
[INFO] [stdout]   --> src/instruction/instruction.rs:86:8
[INFO] [stdout]    |
[INFO] [stdout] 86 | pub fn get_value_from_mode(cpu: &CPU, mode: AddressingMode) -> u16 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_value_from_mode` is never used
[INFO] [stdout]    --> src/instruction/instruction.rs:108:8
[INFO] [stdout]     |
[INFO] [stdout] 108 | pub fn set_value_from_mode(cpu: &mut CPU, mode: AddressingMode, value: u16) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_word_at_pc` is never used
[INFO] [stdout]    --> src/instruction/instruction.rs:128:4
[INFO] [stdout]     |
[INFO] [stdout] 128 | fn get_word_at_pc(cpu: &CPU) -> u16 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_word_at_pc_next` is never used
[INFO] [stdout]    --> src/instruction/instruction.rs:132:4
[INFO] [stdout]     |
[INFO] [stdout] 132 | fn get_word_at_pc_next(cpu: &CPU) -> u16 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_instruction_type` and `get_instruction_raw` are never used
[INFO] [stdout]    --> src/instruction/instruction.rs:139:8
[INFO] [stdout]     |
[INFO] [stdout] 136 | pub trait ExecutableInstruction {
[INFO] [stdout]     |           --------------------- methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 139 |     fn get_instruction_type(&self) -> InstructionType;
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 140 |     fn get_instruction_raw(&self) -> Instruction;
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_addressing_mode_extension` is never used
[INFO] [stdout]    --> src/instruction/instruction.rs:143:8
[INFO] [stdout]     |
[INFO] [stdout] 143 | pub fn is_addressing_mode_extension(mode: &AddressingMode) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `AddressingMode` is never used
[INFO] [stdout]    --> src/instruction/instruction.rs:184:10
[INFO] [stdout]     |
[INFO] [stdout] 184 | pub enum AddressingMode {
[INFO] [stdout]     |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/instruction/instruction.rs:151:35
[INFO] [stdout]     |
[INFO] [stdout] 151 | #[derive(Debug, PartialEq, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                                   ^------------
[INFO] [stdout]     |                                   |
[INFO] [stdout]     |                                   `FromPrimitive` is not local
[INFO] [stdout]     |                                   move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_InstructionType`
[INFO] [stdout] 152 | pub enum InstructionType {
[INFO] [stdout]     |          --------------- `InstructionType` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]     = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/instruction/instruction.rs:151:50
[INFO] [stdout]     |
[INFO] [stdout] 151 | #[derive(Debug, PartialEq, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                                                  ^----------
[INFO] [stdout]     |                                                  |
[INFO] [stdout]     |                                                  `ToPrimitive` is not local
[INFO] [stdout]     |                                                  move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_InstructionType`
[INFO] [stdout] 152 | pub enum InstructionType {
[INFO] [stdout]     |          --------------- `InstructionType` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/instruction/jump_instruction.rs:100:35
[INFO] [stdout]     |
[INFO] [stdout] 100 | #[derive(Debug, PartialEq, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                                   ^------------
[INFO] [stdout]     |                                   |
[INFO] [stdout]     |                                   `FromPrimitive` is not local
[INFO] [stdout]     |                                   move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_JumpType`
[INFO] [stdout] 101 | pub enum JumpType {
[INFO] [stdout]     |          -------- `JumpType` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/instruction/jump_instruction.rs:100:50
[INFO] [stdout]     |
[INFO] [stdout] 100 | #[derive(Debug, PartialEq, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                                                  ^----------
[INFO] [stdout]     |                                                  |
[INFO] [stdout]     |                                                  `ToPrimitive` is not local
[INFO] [stdout]     |                                                  move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_JumpType`
[INFO] [stdout] 101 | pub enum JumpType {
[INFO] [stdout]     |          -------- `JumpType` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/machine/cpu.rs:113:10
[INFO] [stdout]     |
[INFO] [stdout] 113 | #[derive(FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |          ^------------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `FromPrimitive` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CPURegister`
[INFO] [stdout] 114 | pub enum CPURegister {
[INFO] [stdout]     |          ----------- `CPURegister` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/machine/cpu.rs:113:25
[INFO] [stdout]     |
[INFO] [stdout] 113 | #[derive(FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                         ^----------
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         `ToPrimitive` is not local
[INFO] [stdout]     |                         move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_CPURegister`
[INFO] [stdout] 114 | pub enum CPURegister {
[INFO] [stdout]     |          ----------- `CPURegister` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/machine/cpu.rs:145:10
[INFO] [stdout]     |
[INFO] [stdout] 145 | #[derive(FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |          ^------------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `FromPrimitive` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_StatusFlag`
[INFO] [stdout] 146 | pub enum StatusFlag {
[INFO] [stdout]     |          ---------- `StatusFlag` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/machine/cpu.rs:145:25
[INFO] [stdout]     |
[INFO] [stdout] 145 | #[derive(FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                         ^----------
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         `ToPrimitive` is not local
[INFO] [stdout]     |                         move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_StatusFlag`
[INFO] [stdout] 146 | pub enum StatusFlag {
[INFO] [stdout]     |          ---------- `StatusFlag` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cpu`
[INFO] [stdout]  --> src/instruction/disassembler.rs:6:26
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn parse_instruction(cpu: &CPU, instruction: Instruction) -> ParseState {
[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: value assigned to `address` is never read
[INFO] [stdout]    --> src/instruction/instruction.rs:109:13
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let mut address = 0u16;
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `word`
[INFO] [stdout]    --> src/instruction/instruction.rs:122:19
[INFO] [stdout]     |
[INFO] [stdout] 122 |         Immediate(word) => cpu.memory.set_word(cpu.get_pc(), value),
[INFO] [stdout]     |                   ^^^^ help: if this is intentional, prefix it with an underscore: `_word`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/instruction/disassembler.rs:17:11
[INFO] [stdout]    |
[INFO] [stdout] 17 |     Error(Instruction),
[INFO] [stdout]    |     ----- ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 17 -     Error(Instruction),
[INFO] [stdout] 17 +     Error(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/instruction/instruction.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct Instruction {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 11 |     address: u16,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Instruction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_address` is never used
[INFO] [stdout]   --> src/instruction/instruction.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Instruction {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub fn get_address(&self) -> u16 {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_addressing_mode_source` is never used
[INFO] [stdout]   --> src/instruction/instruction.rs:32:8
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub fn get_addressing_mode_source(cpu: &CPU, register: u16, source_mode: u16) -> AddressingMode {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_addressing_mode_destination` is never used
[INFO] [stdout]   --> src/instruction/instruction.rs:68:8
[INFO] [stdout]    |
[INFO] [stdout] 68 | pub fn get_addressing_mode_destination(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_value_from_mode` is never used
[INFO] [stdout]   --> src/instruction/instruction.rs:86:8
[INFO] [stdout]    |
[INFO] [stdout] 86 | pub fn get_value_from_mode(cpu: &CPU, mode: AddressingMode) -> u16 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_value_from_mode` is never used
[INFO] [stdout]    --> src/instruction/instruction.rs:108:8
[INFO] [stdout]     |
[INFO] [stdout] 108 | pub fn set_value_from_mode(cpu: &mut CPU, mode: AddressingMode, value: u16) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_word_at_pc` is never used
[INFO] [stdout]    --> src/instruction/instruction.rs:128:4
[INFO] [stdout]     |
[INFO] [stdout] 128 | fn get_word_at_pc(cpu: &CPU) -> u16 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_word_at_pc_next` is never used
[INFO] [stdout]    --> src/instruction/instruction.rs:132:4
[INFO] [stdout]     |
[INFO] [stdout] 132 | fn get_word_at_pc_next(cpu: &CPU) -> u16 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_instruction_type` and `get_instruction_raw` are never used
[INFO] [stdout]    --> src/instruction/instruction.rs:139:8
[INFO] [stdout]     |
[INFO] [stdout] 136 | pub trait ExecutableInstruction {
[INFO] [stdout]     |           --------------------- methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 139 |     fn get_instruction_type(&self) -> InstructionType;
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 140 |     fn get_instruction_raw(&self) -> Instruction;
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_addressing_mode_extension` is never used
[INFO] [stdout]    --> src/instruction/instruction.rs:143:8
[INFO] [stdout]     |
[INFO] [stdout] 143 | pub fn is_addressing_mode_extension(mode: &AddressingMode) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `AddressingMode` is never used
[INFO] [stdout]    --> src/instruction/instruction.rs:184:10
[INFO] [stdout]     |
[INFO] [stdout] 184 | pub enum AddressingMode {
[INFO] [stdout]     |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/instruction/instruction.rs:151:35
[INFO] [stdout]     |
[INFO] [stdout] 151 | #[derive(Debug, PartialEq, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                                   ^------------
[INFO] [stdout]     |                                   |
[INFO] [stdout]     |                                   `FromPrimitive` is not local
[INFO] [stdout]     |                                   move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_InstructionType`
[INFO] [stdout] 152 | pub enum InstructionType {
[INFO] [stdout]     |          --------------- `InstructionType` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]     = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/instruction/instruction.rs:151:50
[INFO] [stdout]     |
[INFO] [stdout] 151 | #[derive(Debug, PartialEq, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                                                  ^----------
[INFO] [stdout]     |                                                  |
[INFO] [stdout]     |                                                  `ToPrimitive` is not local
[INFO] [stdout]     |                                                  move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_InstructionType`
[INFO] [stdout] 152 | pub enum InstructionType {
[INFO] [stdout]     |          --------------- `InstructionType` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/instruction/jump_instruction.rs:100:35
[INFO] [stdout]     |
[INFO] [stdout] 100 | #[derive(Debug, PartialEq, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                                   ^------------
[INFO] [stdout]     |                                   |
[INFO] [stdout]     |                                   `FromPrimitive` is not local
[INFO] [stdout]     |                                   move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_JumpType`
[INFO] [stdout] 101 | pub enum JumpType {
[INFO] [stdout]     |          -------- `JumpType` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/instruction/jump_instruction.rs:100:50
[INFO] [stdout]     |
[INFO] [stdout] 100 | #[derive(Debug, PartialEq, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                                                  ^----------
[INFO] [stdout]     |                                                  |
[INFO] [stdout]     |                                                  `ToPrimitive` is not local
[INFO] [stdout]     |                                                  move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_JumpType`
[INFO] [stdout] 101 | pub enum JumpType {
[INFO] [stdout]     |          -------- `JumpType` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/machine/cpu.rs:113:10
[INFO] [stdout]     |
[INFO] [stdout] 113 | #[derive(FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |          ^------------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `FromPrimitive` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CPURegister`
[INFO] [stdout] 114 | pub enum CPURegister {
[INFO] [stdout]     |          ----------- `CPURegister` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/machine/cpu.rs:113:25
[INFO] [stdout]     |
[INFO] [stdout] 113 | #[derive(FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                         ^----------
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         `ToPrimitive` is not local
[INFO] [stdout]     |                         move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_CPURegister`
[INFO] [stdout] 114 | pub enum CPURegister {
[INFO] [stdout]     |          ----------- `CPURegister` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/machine/cpu.rs:145:10
[INFO] [stdout]     |
[INFO] [stdout] 145 | #[derive(FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |          ^------------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `FromPrimitive` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_StatusFlag`
[INFO] [stdout] 146 | pub enum StatusFlag {
[INFO] [stdout]     |          ---------- `StatusFlag` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/machine/cpu.rs:145:25
[INFO] [stdout]     |
[INFO] [stdout] 145 | #[derive(FromPrimitive, ToPrimitive)]
[INFO] [stdout]     |                         ^----------
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         `ToPrimitive` is not local
[INFO] [stdout]     |                         move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_StatusFlag`
[INFO] [stdout] 146 | pub enum StatusFlag {
[INFO] [stdout]     |          ---------- `StatusFlag` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.60s
[INFO] running `Command { std: "docker" "inspect" "eff2e2d4e70387bd7d2dd9fae7a9a0aa55572bb91137517f67deac35087c9146", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eff2e2d4e70387bd7d2dd9fae7a9a0aa55572bb91137517f67deac35087c9146", kill_on_drop: false }`
[INFO] [stdout] eff2e2d4e70387bd7d2dd9fae7a9a0aa55572bb91137517f67deac35087c9146
