[INFO] cloning repository https://github.com/tjx076/mNES
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tjx076/mNES" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftjx076%2FmNES", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftjx076%2FmNES'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] de539ec2861cadc8cb47ea8750ac1bac5abf0d31
[INFO] checking tjx076/mNES against try#53f0b05ecbcf011a1f77f1c627304e87ebd05801 for pr-154492
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftjx076%2FmNES" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/tjx076/mNES
[INFO] finished tweaking git repo https://github.com/tjx076/mNES
[INFO] tweaked toml for git repo https://github.com/tjx076/mNES written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/tjx076/mNES on toolchain 53f0b05ecbcf011a1f77f1c627304e87ebd05801
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/tjx076/mNES 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" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "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
[ERROR] error running command: no output for 300 seconds
[INFO] checking tjx076/mNES against try#53f0b05ecbcf011a1f77f1c627304e87ebd05801 for pr-154492
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftjx076%2FmNES" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/tjx076/mNES
[INFO] finished tweaking git repo https://github.com/tjx076/mNES
[INFO] tweaked toml for git repo https://github.com/tjx076/mNES written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/tjx076/mNES on toolchain 53f0b05ecbcf011a1f77f1c627304e87ebd05801
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/tjx076/mNES 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" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8cc51eb626d09eadf28f4d8aae8fd25816c3accfeb72a507ce85dfcd386f40ea
[INFO] running `Command { std: "docker" "start" "-a" "8cc51eb626d09eadf28f4d8aae8fd25816c3accfeb72a507ce85dfcd386f40ea", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8cc51eb626d09eadf28f4d8aae8fd25816c3accfeb72a507ce85dfcd386f40ea", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8cc51eb626d09eadf28f4d8aae8fd25816c3accfeb72a507ce85dfcd386f40ea", kill_on_drop: false }`
[INFO] [stdout] 8cc51eb626d09eadf28f4d8aae8fd25816c3accfeb72a507ce85dfcd386f40ea
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ffbb6cc3a4a11384d66001f38aa610335add4bf54f2c155d2e9729bf3351174f
[INFO] running `Command { std: "docker" "start" "-a" "ffbb6cc3a4a11384d66001f38aa610335add4bf54f2c155d2e9729bf3351174f", kill_on_drop: false }`
[INFO] [stderr]     Checking mNES v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variant `ZERO_PAGE` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:28:5
[INFO] [stdout]    |
[INFO] [stdout] 28 |     ZERO_PAGE(AddrModeFn), //zp = $00
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroPage`
[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 `ZERO_PAGE_X` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 |     ZERO_PAGE_X(AddrModeFn), //zpx = $00,X
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroPageX`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ZERO_PAGE_Y` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 |     ZERO_PAGE_Y(AddrModeFn), //zpy = $00,Y
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroPageY`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ABSOLUTE_X` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 33 |     ABSOLUTE_X(AddrModeFn), //abx = $0000,X
[INFO] [stdout]    |     ^^^^^^^^^^ help: convert the identifier to upper camel case: `AbsoluteX`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ZERO_PAGE` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:28:5
[INFO] [stdout]    |
[INFO] [stdout] 28 |     ZERO_PAGE(AddrModeFn), //zp = $00
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroPage`
[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 `ABSOLUTE_Y` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     ABSOLUTE_Y(AddrModeFn), //aby = $0000,Y
[INFO] [stdout]    |     ^^^^^^^^^^ help: convert the identifier to upper camel case: `AbsoluteY`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `X_INDEXED_INDIRECT` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 |     X_INDEXED_INDIRECT(AddrModeFn), //izx = ($00,X)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `XIndexedIndirect`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ZERO_PAGE_X` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 |     ZERO_PAGE_X(AddrModeFn), //zpx = $00,X
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroPageX`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ZERO_PAGE_Y` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 |     ZERO_PAGE_Y(AddrModeFn), //zpy = $00,Y
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroPageY`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `INDIRECT_Y_INDEXED` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:37:5
[INFO] [stdout]    |
[INFO] [stdout] 37 |     INDIRECT_Y_INDEXED(AddrModeFn), //izy = ($00),Y
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `IndirectYIndexed`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ABSOLUTE_X` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 33 |     ABSOLUTE_X(AddrModeFn), //abx = $0000,X
[INFO] [stdout]    |     ^^^^^^^^^^ help: convert the identifier to upper camel case: `AbsoluteX`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ABSOLUTE_Y` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     ABSOLUTE_Y(AddrModeFn), //aby = $0000,Y
[INFO] [stdout]    |     ^^^^^^^^^^ help: convert the identifier to upper camel case: `AbsoluteY`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `X_INDEXED_INDIRECT` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 |     X_INDEXED_INDIRECT(AddrModeFn), //izx = ($00,X)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `XIndexedIndirect`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `INDIRECT_Y_INDEXED` should have an upper camel case name
[INFO] [stdout]   --> src/cpu/addr_mode.rs:37:5
[INFO] [stdout]    |
[INFO] [stdout] 37 |     INDIRECT_Y_INDEXED(AddrModeFn), //izy = ($00),Y
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `IndirectYIndexed`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cpu`
[INFO] [stdout]   --> src/cpu/addr_mode.rs:66:13
[INFO] [stdout]    |
[INFO] [stdout] 66 | fn implicit(cpu: &mut CPU) -> AddressData {
[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: `cpu`
[INFO] [stdout]   --> src/cpu/addr_mode.rs:66:13
[INFO] [stdout]    |
[INFO] [stdout] 66 | fn implicit(cpu: &mut CPU) -> AddressData {
[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: value assigned to `address` is never read
[INFO] [stdout]    --> src/cpu/addr_mode.rs:132:29
[INFO] [stdout]     |
[INFO] [stdout] 132 |     let mut address : u16 = 0;
[INFO] [stdout]     |                             ^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `address` is never read
[INFO] [stdout]    --> src/cpu/addr_mode.rs:132:29
[INFO] [stdout]     |
[INFO] [stdout] 132 |     let mut address : u16 = 0;
[INFO] [stdout]     |                             ^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cpu`
[INFO] [stdout]    --> src/cpu/instruction.rs:104:8
[INFO] [stdout]     |
[INFO] [stdout] 104 | fn ora(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |        ^^^ help: if this is intentional, prefix it with an underscore: `_cpu`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cpu`
[INFO] [stdout]    --> src/cpu/instruction.rs:104:8
[INFO] [stdout]     |
[INFO] [stdout] 104 | fn ora(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |        ^^^ help: if this is intentional, prefix it with an underscore: `_cpu`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ad`
[INFO] [stdout]    --> src/cpu/instruction.rs:104:23
[INFO] [stdout]     |
[INFO] [stdout] 104 | fn ora(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |                       ^^ help: if this is intentional, prefix it with an underscore: `_ad`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ad`
[INFO] [stdout]    --> src/cpu/instruction.rs:104:23
[INFO] [stdout]     |
[INFO] [stdout] 104 | fn ora(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |                       ^^ help: if this is intentional, prefix it with an underscore: `_ad`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cpu`
[INFO] [stdout]    --> src/cpu/instruction.rs:108:8
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn and(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |        ^^^ help: if this is intentional, prefix it with an underscore: `_cpu`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ad`
[INFO] [stdout]    --> src/cpu/instruction.rs:108:23
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn and(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |                       ^^ help: if this is intentional, prefix it with an underscore: `_ad`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cpu`
[INFO] [stdout]    --> src/cpu/instruction.rs:108:8
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn and(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |        ^^^ help: if this is intentional, prefix it with an underscore: `_cpu`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ad`
[INFO] [stdout]    --> src/cpu/instruction.rs:108:23
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn and(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |                       ^^ help: if this is intentional, prefix it with an underscore: `_ad`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mapper`
[INFO] [stdout]   --> src/main.rs:16:9
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let mapper = Mapper0::from(&cartridge);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mapper`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mapper`
[INFO] [stdout]   --> src/main.rs:16:9
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let mapper = Mapper0::from(&cartridge);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mapper`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `io_regs_1` and `io_regs_2` are never read
[INFO] [stdout]   --> src/bus/cpu_bus.rs:63:5
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub struct CPUBus {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 63 |     io_regs_1: Vec<u8>,//$2000-2008
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 64 |     io_regs_2: Vec<u8>,//$4000-$4020
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SRAM_SIZE` is never used
[INFO] [stdout]  --> src/cartridge.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const SRAM_SIZE: usize = 8 * 1024;
[INFO] [stdout]   |       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `io_regs_1` and `io_regs_2` are never read
[INFO] [stdout]   --> src/bus/cpu_bus.rs:63:5
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub struct CPUBus {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 63 |     io_regs_1: Vec<u8>,//$2000-2008
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 64 |     io_regs_2: Vec<u8>,//$4000-$4020
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `VRAM_SIZE` is never used
[INFO] [stdout]  --> src/cartridge.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const VRAM_SIZE: usize = 2 * 1024;
[INFO] [stdout]   |       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SRAM_SIZE` is never used
[INFO] [stdout]  --> src/cartridge.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const SRAM_SIZE: usize = 8 * 1024;
[INFO] [stdout]   |       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `InterruptVector` is never used
[INFO] [stdout]   --> src/cpu.rs:18:6
[INFO] [stdout]    |
[INFO] [stdout] 18 | enum InterruptVector {
[INFO] [stdout]    |      ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `VRAM_SIZE` is never used
[INFO] [stdout]  --> src/cartridge.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const VRAM_SIZE: usize = 2 * 1024;
[INFO] [stdout]   |       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `InterruptVector` is never used
[INFO] [stdout]   --> src/cpu.rs:18:6
[INFO] [stdout]    |
[INFO] [stdout] 18 | enum InterruptVector {
[INFO] [stdout]    |      ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `address`, `data`, and `cross_page` are never read
[INFO] [stdout]   --> src/cpu/addr_mode.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub struct AddressData {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 41 |     address: Option<u16>, // Set value to None if immediate mode
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 42 |     data: Option<u8>, // Set value to None if not immediate mode
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 43 |     cross_page: bool,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `address`, `data`, and `cross_page` are never read
[INFO] [stdout]   --> src/cpu/addr_mode.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub struct AddressData {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 41 |     address: Option<u16>, // Set value to None if immediate mode
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 42 |     data: Option<u8>, // Set value to None if not immediate mode
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 43 |     cross_page: bool,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `implicit` is never used
[INFO] [stdout]   --> src/cpu/addr_mode.rs:66:4
[INFO] [stdout]    |
[INFO] [stdout] 66 | fn implicit(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]    |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `accumulator` is never used
[INFO] [stdout]   --> src/cpu/addr_mode.rs:74:4
[INFO] [stdout]    |
[INFO] [stdout] 74 | fn accumulator(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `immediate` is never used
[INFO] [stdout]   --> src/cpu/addr_mode.rs:82:4
[INFO] [stdout]    |
[INFO] [stdout] 82 | fn immediate(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `zero_page` is never used
[INFO] [stdout]   --> src/cpu/addr_mode.rs:94:4
[INFO] [stdout]    |
[INFO] [stdout] 94 | fn zero_page(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `zero_page_x` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:105:4
[INFO] [stdout]     |
[INFO] [stdout] 105 | fn zero_page_x(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `zero_page_y` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:116:4
[INFO] [stdout]     |
[INFO] [stdout] 116 | fn zero_page_y(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `relative` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:127:4
[INFO] [stdout]     |
[INFO] [stdout] 127 | fn relative(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `implicit` is never used
[INFO] [stdout]   --> src/cpu/addr_mode.rs:66:4
[INFO] [stdout]    |
[INFO] [stdout] 66 | fn implicit(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]    |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `accumulator` is never used
[INFO] [stdout]   --> src/cpu/addr_mode.rs:74:4
[INFO] [stdout]    |
[INFO] [stdout] 74 | fn accumulator(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `absolute` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:147:4
[INFO] [stdout]     |
[INFO] [stdout] 147 | fn absolute(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `immediate` is never used
[INFO] [stdout]   --> src/cpu/addr_mode.rs:82:4
[INFO] [stdout]    |
[INFO] [stdout] 82 | fn immediate(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `absolute_x` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:158:4
[INFO] [stdout]     |
[INFO] [stdout] 158 | fn absolute_x(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `zero_page` is never used
[INFO] [stdout]   --> src/cpu/addr_mode.rs:94:4
[INFO] [stdout]    |
[INFO] [stdout] 94 | fn zero_page(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `zero_page_x` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:105:4
[INFO] [stdout]     |
[INFO] [stdout] 105 | fn zero_page_x(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `absolute_y` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:171:4
[INFO] [stdout]     |
[INFO] [stdout] 171 | fn absolute_y(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `zero_page_y` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:116:4
[INFO] [stdout]     |
[INFO] [stdout] 116 | fn zero_page_y(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `indirect` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:183:4
[INFO] [stdout]     |
[INFO] [stdout] 183 | fn indirect(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `relative` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:127:4
[INFO] [stdout]     |
[INFO] [stdout] 127 | fn relative(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `x_indexed_indirect` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:200:4
[INFO] [stdout]     |
[INFO] [stdout] 200 | fn x_indexed_indirect(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `absolute` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:147:4
[INFO] [stdout]     |
[INFO] [stdout] 147 | fn absolute(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `absolute_x` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:158:4
[INFO] [stdout]     |
[INFO] [stdout] 158 | fn absolute_x(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `indirect_y_indexed` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:216:4
[INFO] [stdout]     |
[INFO] [stdout] 216 | fn indirect_y_indexed(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `absolute_y` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:171:4
[INFO] [stdout]     |
[INFO] [stdout] 171 | fn absolute_y(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_cross_page` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:233:4
[INFO] [stdout]     |
[INFO] [stdout] 233 | fn is_cross_page(addr1: u16, addr2: u16) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `InstFn` is never used
[INFO] [stdout]   --> src/cpu/instruction.rs:93:6
[INFO] [stdout]    |
[INFO] [stdout] 93 | type InstFn = fn(&mut CPU, AddressData);
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `indirect` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:183:4
[INFO] [stdout]     |
[INFO] [stdout] 183 | fn indirect(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ora` is never used
[INFO] [stdout]    --> src/cpu/instruction.rs:104:4
[INFO] [stdout]     |
[INFO] [stdout] 104 | fn ora(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `x_indexed_indirect` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:200:4
[INFO] [stdout]     |
[INFO] [stdout] 200 | fn x_indexed_indirect(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `and` is never used
[INFO] [stdout]    --> src/cpu/instruction.rs:108:4
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn and(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `indirect_y_indexed` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:216:4
[INFO] [stdout]     |
[INFO] [stdout] 216 | fn indirect_y_indexed(cpu: &mut CPU) -> AddressData {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `cart` and `cpu` are never read
[INFO] [stdout]  --> src/emulator.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Emulator {
[INFO] [stdout]   |            -------- fields in this struct
[INFO] [stdout] 6 |     cart: Cartridge,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 7 |     cpu: CPU,
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_cross_page` is never used
[INFO] [stdout]    --> src/cpu/addr_mode.rs:233:4
[INFO] [stdout]     |
[INFO] [stdout] 233 | fn is_cross_page(addr1: u16, addr2: u16) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `InstFn` is never used
[INFO] [stdout]   --> src/cpu/instruction.rs:93:6
[INFO] [stdout]    |
[INFO] [stdout] 93 | type InstFn = fn(&mut CPU, AddressData);
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ora` is never used
[INFO] [stdout]    --> src/cpu/instruction.rs:104:4
[INFO] [stdout]     |
[INFO] [stdout] 104 | fn ora(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `and` is never used
[INFO] [stdout]    --> src/cpu/instruction.rs:108:4
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn and(cpu: &mut CPU, ad: AddressData) {
[INFO] [stdout]     |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `cart` and `cpu` are never read
[INFO] [stdout]  --> src/emulator.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Emulator {
[INFO] [stdout]   |            -------- fields in this struct
[INFO] [stdout] 6 |     cart: Cartridge,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 7 |     cpu: CPU,
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `PC` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     pub PC: u16,//程序计数器，记录下一条指令地址
[INFO] [stdout]   |         ^^ help: convert the identifier to snake case: `pc`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `PC` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     pub PC: u16,//程序计数器，记录下一条指令地址
[INFO] [stdout]   |         ^^ help: convert the identifier to snake case: `pc`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `SP` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |     pub SP: u8,//堆栈寄存器，其值为 0x00 ~ 0xFF，对应着 CPU 总线上的 0x100 ~ 0x1FF
[INFO] [stdout]   |         ^^ help: convert the identifier to snake case: `sp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `P` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     pub P: u8,//标志寄存器
[INFO] [stdout]   |         ^ help: convert the identifier to snake case: `p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `A` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub A: u8,//通常作为累加器
[INFO] [stdout]   |         ^ help: convert the identifier to snake case: `a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `SP` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |     pub SP: u8,//堆栈寄存器，其值为 0x00 ~ 0xFF，对应着 CPU 总线上的 0x100 ~ 0x1FF
[INFO] [stdout]   |         ^^ help: convert the identifier to snake case: `sp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `X` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub X: u8,//通常作为循环计数器
[INFO] [stdout]   |         ^ help: convert the identifier to snake case (notice the capitalization): `x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Y` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pub Y: u8,//通常作为循环计数器
[INFO] [stdout]   |         ^ help: convert the identifier to snake case (notice the capitalization): `y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `P` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     pub P: u8,//标志寄存器
[INFO] [stdout]   |         ^ help: convert the identifier to snake case: `p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `A` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub A: u8,//通常作为累加器
[INFO] [stdout]   |         ^ help: convert the identifier to snake case: `a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `X` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub X: u8,//通常作为循环计数器
[INFO] [stdout]   |         ^ help: convert the identifier to snake case (notice the capitalization): `x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Y` should have a snake case name
[INFO] [stdout]  --> src/cpu/registers.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pub Y: u8,//通常作为循环计数器
[INFO] [stdout]   |         ^ help: convert the identifier to snake case (notice the capitalization): `y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.09s
[INFO] running `Command { std: "docker" "inspect" "ffbb6cc3a4a11384d66001f38aa610335add4bf54f2c155d2e9729bf3351174f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ffbb6cc3a4a11384d66001f38aa610335add4bf54f2c155d2e9729bf3351174f", kill_on_drop: false }`
[INFO] [stdout] ffbb6cc3a4a11384d66001f38aa610335add4bf54f2c155d2e9729bf3351174f
