[INFO] cloning repository https://github.com/jmeyers35/rusty-nes
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jmeyers35/rusty-nes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjmeyers35%2Frusty-nes", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjmeyers35%2Frusty-nes'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6b73358cc1ca5c691985ac3534139e69a04adcbf
[INFO] testing jmeyers35/rusty-nes against 1.90.0 for beta-1.91-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjmeyers35%2Frusty-nes" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/jmeyers35/rusty-nes
[INFO] finished tweaking git repo https://github.com/jmeyers35/rusty-nes
[INFO] tweaked toml for git repo https://github.com/jmeyers35/rusty-nes written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jmeyers35/rusty-nes on toolchain 1.90.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/jmeyers35/rusty-nes 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" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2ee7e7b9659ad97a82a41cca88c4aa47a71c4744e36d8fc7d5d6e5312f755266
[INFO] running `Command { std: "docker" "start" "-a" "2ee7e7b9659ad97a82a41cca88c4aa47a71c4744e36d8fc7d5d6e5312f755266", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2ee7e7b9659ad97a82a41cca88c4aa47a71c4744e36d8fc7d5d6e5312f755266", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2ee7e7b9659ad97a82a41cca88c4aa47a71c4744e36d8fc7d5d6e5312f755266", kill_on_drop: false }`
[INFO] [stdout] 2ee7e7b9659ad97a82a41cca88c4aa47a71c4744e36d8fc7d5d6e5312f755266
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cc1a38554f7874d18e40ce89cb9c22fd337b7e98256f5910170858fed3857cb5
[INFO] running `Command { std: "docker" "start" "-a" "cc1a38554f7874d18e40ce89cb9c22fd337b7e98256f5910170858fed3857cb5", kill_on_drop: false }`
[INFO] [stderr]    Compiling rust-nes v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:701:23
[INFO] [stdout]     |
[INFO] [stdout] 701 |                     | (self.mem.borrow().ram_read(in_addr + 1) << 8) as u16;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(arithmetic_overflow)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:695:23
[INFO] [stdout]     |
[INFO] [stdout] 695 |                     | (self.mem.borrow().ram_read(in_addr + 1) << 8) as u16;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:679:23
[INFO] [stdout]     |
[INFO] [stdout] 679 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:684:27
[INFO] [stdout]     |
[INFO] [stdout] 684 |                         | (self.mem.borrow().ram_read(in_addr + 1) << 8) as u16
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:687:27
[INFO] [stdout]     |
[INFO] [stdout] 687 |                         | (self.mem.borrow().ram_read(in_addr & 0xFF00) << 8) as u16
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:657:23
[INFO] [stdout]     |
[INFO] [stdout] 657 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16)
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:651:23
[INFO] [stdout]     |
[INFO] [stdout] 651 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16)
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:646:23
[INFO] [stdout]     |
[INFO] [stdout] 646 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CPU` is never constructed
[INFO] [stdout]  --> src/cpu.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct CPU {
[INFO] [stdout]   |            ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StatusRegister` is never constructed
[INFO] [stdout]   --> src/cpu.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 | struct StatusRegister {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/cpu.rs:34:12
[INFO] [stdout]     |
[INFO] [stdout]  33 | impl CPU {
[INFO] [stdout]     | -------- associated items in this implementation
[INFO] [stdout]  34 |     pub fn new(mem: Rc<RefCell<Memory>>) -> CPU {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  46 |     pub fn reset(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  52 |     fn tick_clock(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  56 |     fn fetch_instruction(&mut self) -> Instruction {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  61 |     fn push_byte(&mut self, data: u8) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  67 |     fn pop_byte(&mut self) -> u8 {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  72 |     fn execute_instruction(&mut self, inst: &Instruction) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 642 |     fn get_operand(&mut self, addr_mode: AddrMode) -> (i8, Option<u16>) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 712 |     pub fn advance_cpu(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/cpu.rs:734:12
[INFO] [stdout]     |
[INFO] [stdout] 733 | impl StatusRegister {
[INFO] [stdout]     | ------------------- associated items in this implementation
[INFO] [stdout] 734 |     pub fn new() -> StatusRegister {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 746 |     pub fn set_c(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 749 |     pub fn clear_c(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 752 |     pub fn get_c(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 756 |     pub fn set_z(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 759 |     pub fn clear_z(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 762 |     pub fn get_z(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 766 |     pub fn set_i(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 769 |     pub fn clear_i(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 772 |     pub fn get_i(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 776 |     pub fn set_d(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 779 |     pub fn clear_d(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 782 |     pub fn get_d(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 786 |     pub fn set_b(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 789 |     pub fn clear_b(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 792 |     pub fn get_b(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 796 |     pub fn set_bit_5(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 799 |     pub fn clear_bit_5(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 802 |     pub fn get_bit_5(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 806 |     pub fn set_v(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 809 |     pub fn clear_v(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 812 |     pub fn get_v(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 816 |     pub fn set_n(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 819 |     pub fn clear_n(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 822 |     pub fn get_n(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 826 |     pub fn get_flags(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 836 |     pub fn set_flags(&mut self, flags: u8) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `signed_overflow_add` is never used
[INFO] [stdout]    --> src/cpu.rs:849:4
[INFO] [stdout]     |
[INFO] [stdout] 849 | fn signed_overflow_add(x: i8, y: i8) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `signed_overflow_sub` is never used
[INFO] [stdout]    --> src/cpu.rs:853:4
[INFO] [stdout]     |
[INFO] [stdout] 853 | fn signed_overflow_sub(x: i8, y: i8) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `page_crossed` is never used
[INFO] [stdout]    --> src/cpu.rs:860:4
[INFO] [stdout]     |
[INFO] [stdout] 860 | fn page_crossed(old_addr: u16, new_addr: u16) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Instruction` is never constructed
[INFO] [stdout]  --> src/instruction.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub struct Instruction {
[INFO] [stdout]   |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `AddrMode` is never used
[INFO] [stdout]  --> src/instruction.rs:9:10
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub enum AddrMode {
[INFO] [stdout]   |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `OpCode` is never used
[INFO] [stdout]   --> src/instruction.rs:26:10
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub enum OpCode {
[INFO] [stdout]    |          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/instruction.rs:86:12
[INFO] [stdout]    |
[INFO] [stdout] 85 | impl Instruction {
[INFO] [stdout]    | ---------------- associated function in this implementation
[INFO] [stdout] 86 |     pub fn new(opcode: u8) -> Instruction {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ZERO_PAGE_START` is never used
[INFO] [stdout]   --> src/mem.rs:11:11
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub const ZERO_PAGE_START: u16 = 0x00;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `STACK_TOP` is never used
[INFO] [stdout]   --> src/mem.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const STACK_TOP: u16 = 0x100;
[INFO] [stdout]    |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Memory` is never constructed
[INFO] [stdout]   --> src/mem.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct Memory {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `ram_read`, and `ram_write` are never used
[INFO] [stdout]   --> src/mem.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | impl Memory {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 19 |     pub fn new() -> Memory {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 25 |     pub fn ram_read(&self, addr: u16) -> u8 {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 28 |     pub fn ram_write(&mut self, addr: u16, data: u8) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `NES` is never constructed
[INFO] [stdout]  --> src/nes.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct NES {
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/nes.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl NES {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 13 |     pub fn new() -> NES {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PPU` is never constructed
[INFO] [stdout]  --> src/ppu.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct PPU {
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]  --> src/ppu.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | impl PPU {
[INFO] [stdout]   | -------- associated function in this implementation
[INFO] [stdout] 9 |     pub fn new(mem: Rc<RefCell<Memory>>) -> PPU {
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.50s
[INFO] running `Command { std: "docker" "inspect" "cc1a38554f7874d18e40ce89cb9c22fd337b7e98256f5910170858fed3857cb5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cc1a38554f7874d18e40ce89cb9c22fd337b7e98256f5910170858fed3857cb5", kill_on_drop: false }`
[INFO] [stdout] cc1a38554f7874d18e40ce89cb9c22fd337b7e98256f5910170858fed3857cb5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ad77e0225d96de48f60f3d7f51cfd81379e7f440e855bc58ea9f9a8b8f57b663
[INFO] running `Command { std: "docker" "start" "-a" "ad77e0225d96de48f60f3d7f51cfd81379e7f440e855bc58ea9f9a8b8f57b663", kill_on_drop: false }`
[INFO] [stderr]    Compiling rust-nes v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:701:23
[INFO] [stdout]     |
[INFO] [stdout] 701 |                     | (self.mem.borrow().ram_read(in_addr + 1) << 8) as u16;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(arithmetic_overflow)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:695:23
[INFO] [stdout]     |
[INFO] [stdout] 695 |                     | (self.mem.borrow().ram_read(in_addr + 1) << 8) as u16;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:679:23
[INFO] [stdout]     |
[INFO] [stdout] 679 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:684:27
[INFO] [stdout]     |
[INFO] [stdout] 684 |                         | (self.mem.borrow().ram_read(in_addr + 1) << 8) as u16
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:687:27
[INFO] [stdout]     |
[INFO] [stdout] 687 |                         | (self.mem.borrow().ram_read(in_addr & 0xFF00) << 8) as u16
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:657:23
[INFO] [stdout]     |
[INFO] [stdout] 657 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16)
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:651:23
[INFO] [stdout]     |
[INFO] [stdout] 651 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16)
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this arithmetic operation will overflow
[INFO] [stdout]    --> src/cpu.rs:646:23
[INFO] [stdout]     |
[INFO] [stdout] 646 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CPU` is never constructed
[INFO] [stdout]  --> src/cpu.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct CPU {
[INFO] [stdout]   |            ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StatusRegister` is never constructed
[INFO] [stdout]   --> src/cpu.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 | struct StatusRegister {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/cpu.rs:34:12
[INFO] [stdout]     |
[INFO] [stdout]  33 | impl CPU {
[INFO] [stdout]     | -------- associated items in this implementation
[INFO] [stdout]  34 |     pub fn new(mem: Rc<RefCell<Memory>>) -> CPU {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  46 |     pub fn reset(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  52 |     fn tick_clock(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  56 |     fn fetch_instruction(&mut self) -> Instruction {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  61 |     fn push_byte(&mut self, data: u8) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  67 |     fn pop_byte(&mut self) -> u8 {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  72 |     fn execute_instruction(&mut self, inst: &Instruction) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 642 |     fn get_operand(&mut self, addr_mode: AddrMode) -> (i8, Option<u16>) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 712 |     pub fn advance_cpu(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/cpu.rs:734:12
[INFO] [stdout]     |
[INFO] [stdout] 733 | impl StatusRegister {
[INFO] [stdout]     | ------------------- associated items in this implementation
[INFO] [stdout] 734 |     pub fn new() -> StatusRegister {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 746 |     pub fn set_c(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 749 |     pub fn clear_c(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 752 |     pub fn get_c(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 756 |     pub fn set_z(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 759 |     pub fn clear_z(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 762 |     pub fn get_z(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 766 |     pub fn set_i(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 769 |     pub fn clear_i(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 772 |     pub fn get_i(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 776 |     pub fn set_d(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 779 |     pub fn clear_d(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 782 |     pub fn get_d(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 786 |     pub fn set_b(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 789 |     pub fn clear_b(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 792 |     pub fn get_b(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 796 |     pub fn set_bit_5(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 799 |     pub fn clear_bit_5(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 802 |     pub fn get_bit_5(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 806 |     pub fn set_v(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 809 |     pub fn clear_v(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 812 |     pub fn get_v(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 816 |     pub fn set_n(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 819 |     pub fn clear_n(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 822 |     pub fn get_n(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 826 |     pub fn get_flags(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 836 |     pub fn set_flags(&mut self, flags: u8) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `signed_overflow_add` is never used
[INFO] [stdout]    --> src/cpu.rs:849:4
[INFO] [stdout]     |
[INFO] [stdout] 849 | fn signed_overflow_add(x: i8, y: i8) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `signed_overflow_sub` is never used
[INFO] [stdout]    --> src/cpu.rs:853:4
[INFO] [stdout]     |
[INFO] [stdout] 853 | fn signed_overflow_sub(x: i8, y: i8) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `page_crossed` is never used
[INFO] [stdout]    --> src/cpu.rs:860:4
[INFO] [stdout]     |
[INFO] [stdout] 860 | fn page_crossed(old_addr: u16, new_addr: u16) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Instruction` is never constructed
[INFO] [stdout]  --> src/instruction.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub struct Instruction {
[INFO] [stdout]   |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `AddrMode` is never used
[INFO] [stdout]  --> src/instruction.rs:9:10
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub enum AddrMode {
[INFO] [stdout]   |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `OpCode` is never used
[INFO] [stdout]   --> src/instruction.rs:26:10
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub enum OpCode {
[INFO] [stdout]    |          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/instruction.rs:86:12
[INFO] [stdout]    |
[INFO] [stdout] 85 | impl Instruction {
[INFO] [stdout]    | ---------------- associated function in this implementation
[INFO] [stdout] 86 |     pub fn new(opcode: u8) -> Instruction {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ZERO_PAGE_START` is never used
[INFO] [stdout]   --> src/mem.rs:11:11
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub const ZERO_PAGE_START: u16 = 0x00;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `STACK_TOP` is never used
[INFO] [stdout]   --> src/mem.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const STACK_TOP: u16 = 0x100;
[INFO] [stdout]    |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Memory` is never constructed
[INFO] [stdout]   --> src/mem.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct Memory {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `ram_read`, and `ram_write` are never used
[INFO] [stdout]   --> src/mem.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | impl Memory {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 19 |     pub fn new() -> Memory {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 25 |     pub fn ram_read(&self, addr: u16) -> u8 {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 28 |     pub fn ram_write(&mut self, addr: u16, data: u8) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `NES` is never constructed
[INFO] [stdout]  --> src/nes.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct NES {
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/nes.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl NES {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 13 |     pub fn new() -> NES {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PPU` is never constructed
[INFO] [stdout]  --> src/ppu.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct PPU {
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]  --> src/ppu.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | impl PPU {
[INFO] [stdout]   | -------- associated function in this implementation
[INFO] [stdout] 9 |     pub fn new(mem: Rc<RefCell<Memory>>) -> PPU {
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.39s
[INFO] running `Command { std: "docker" "inspect" "ad77e0225d96de48f60f3d7f51cfd81379e7f440e855bc58ea9f9a8b8f57b663", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ad77e0225d96de48f60f3d7f51cfd81379e7f440e855bc58ea9f9a8b8f57b663", kill_on_drop: false }`
[INFO] [stdout] ad77e0225d96de48f60f3d7f51cfd81379e7f440e855bc58ea9f9a8b8f57b663
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] a22655d7393e44f0394b41f29c7db01170f0d5cfa36e4a114d5604b6a4968476
[INFO] running `Command { std: "docker" "start" "-a" "a22655d7393e44f0394b41f29c7db01170f0d5cfa36e4a114d5604b6a4968476", kill_on_drop: false }`
[INFO] [stderr] warning: this arithmetic operation will overflow
[INFO] [stderr]    --> src/cpu.rs:701:23
[INFO] [stderr]     |
[INFO] [stderr] 701 |                     | (self.mem.borrow().ram_read(in_addr + 1) << 8) as u16;
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(arithmetic_overflow)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: this arithmetic operation will overflow
[INFO] [stderr]    --> src/cpu.rs:695:23
[INFO] [stderr]     |
[INFO] [stderr] 695 |                     | (self.mem.borrow().ram_read(in_addr + 1) << 8) as u16;
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stderr] 
[INFO] [stderr] warning: this arithmetic operation will overflow
[INFO] [stderr]    --> src/cpu.rs:679:23
[INFO] [stderr]     |
[INFO] [stderr] 679 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16;
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stderr] 
[INFO] [stderr] warning: this arithmetic operation will overflow
[INFO] [stderr]    --> src/cpu.rs:684:27
[INFO] [stderr]     |
[INFO] [stderr] 684 |                         | (self.mem.borrow().ram_read(in_addr + 1) << 8) as u16
[INFO] [stderr]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stderr] 
[INFO] [stderr] warning: this arithmetic operation will overflow
[INFO] [stderr]    --> src/cpu.rs:687:27
[INFO] [stderr]     |
[INFO] [stderr] 687 |                         | (self.mem.borrow().ram_read(in_addr & 0xFF00) << 8) as u16
[INFO] [stderr]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stderr] 
[INFO] [stderr] warning: this arithmetic operation will overflow
[INFO] [stderr]    --> src/cpu.rs:657:23
[INFO] [stderr]     |
[INFO] [stderr] 657 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16)
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stderr] 
[INFO] [stderr] warning: this arithmetic operation will overflow
[INFO] [stderr]    --> src/cpu.rs:651:23
[INFO] [stderr]     |
[INFO] [stderr] 651 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16)
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stderr] 
[INFO] [stderr] warning: this arithmetic operation will overflow
[INFO] [stderr]    --> src/cpu.rs:646:23
[INFO] [stderr]     |
[INFO] [stderr] 646 |                     | (self.mem.borrow().ram_read(self.pc + 1) << 8) as u16;
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
[INFO] [stderr] 
[INFO] [stderr] warning: struct `CPU` is never constructed
[INFO] [stderr]  --> src/cpu.rs:9:12
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub struct CPU {
[INFO] [stderr]   |            ^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: struct `StatusRegister` is never constructed
[INFO] [stderr]   --> src/cpu.rs:22:8
[INFO] [stderr]    |
[INFO] [stderr] 22 | struct StatusRegister {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: multiple associated items are never used
[INFO] [stderr]    --> src/cpu.rs:34:12
[INFO] [stderr]     |
[INFO] [stderr]  33 | impl CPU {
[INFO] [stderr]     | -------- associated items in this implementation
[INFO] [stderr]  34 |     pub fn new(mem: Rc<RefCell<Memory>>) -> CPU {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] ...
[INFO] [stderr]  46 |     pub fn reset(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  52 |     fn tick_clock(&mut self) {
[INFO] [stderr]     |        ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  56 |     fn fetch_instruction(&mut self) -> Instruction {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  61 |     fn push_byte(&mut self, data: u8) {
[INFO] [stderr]     |        ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  67 |     fn pop_byte(&mut self) -> u8 {
[INFO] [stderr]     |        ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  72 |     fn execute_instruction(&mut self, inst: &Instruction) {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 642 |     fn get_operand(&mut self, addr_mode: AddrMode) -> (i8, Option<u16>) {
[INFO] [stderr]     |        ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 712 |     pub fn advance_cpu(&mut self) {
[INFO] [stderr]     |            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: multiple associated items are never used
[INFO] [stderr]    --> src/cpu.rs:734:12
[INFO] [stderr]     |
[INFO] [stderr] 733 | impl StatusRegister {
[INFO] [stderr]     | ------------------- associated items in this implementation
[INFO] [stderr] 734 |     pub fn new() -> StatusRegister {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 746 |     pub fn set_c(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 749 |     pub fn clear_c(&mut self) {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 752 |     pub fn get_c(&self) -> u8 {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 756 |     pub fn set_z(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 759 |     pub fn clear_z(&mut self) {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 762 |     pub fn get_z(&self) -> u8 {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 766 |     pub fn set_i(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 769 |     pub fn clear_i(&mut self) {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 772 |     pub fn get_i(&self) -> u8 {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 776 |     pub fn set_d(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 779 |     pub fn clear_d(&mut self) {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 782 |     pub fn get_d(&self) -> u8 {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 786 |     pub fn set_b(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 789 |     pub fn clear_b(&mut self) {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 792 |     pub fn get_b(&self) -> u8 {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 796 |     pub fn set_bit_5(&mut self) {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 799 |     pub fn clear_bit_5(&mut self) {
[INFO] [stderr]     |            ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 802 |     pub fn get_bit_5(&self) -> u8 {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 806 |     pub fn set_v(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 809 |     pub fn clear_v(&mut self) {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 812 |     pub fn get_v(&self) -> u8 {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 816 |     pub fn set_n(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 819 |     pub fn clear_n(&mut self) {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 822 |     pub fn get_n(&self) -> u8 {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 826 |     pub fn get_flags(&self) -> u8 {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 836 |     pub fn set_flags(&mut self, flags: u8) {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `signed_overflow_add` is never used
[INFO] [stderr]    --> src/cpu.rs:849:4
[INFO] [stderr]     |
[INFO] [stderr] 849 | fn signed_overflow_add(x: i8, y: i8) -> bool {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `signed_overflow_sub` is never used
[INFO] [stderr]    --> src/cpu.rs:853:4
[INFO] [stderr]     |
[INFO] [stderr] 853 | fn signed_overflow_sub(x: i8, y: i8) -> bool {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `page_crossed` is never used
[INFO] [stderr]    --> src/cpu.rs:860:4
[INFO] [stderr]     |
[INFO] [stderr] 860 | fn page_crossed(old_addr: u16, new_addr: u16) -> bool {
[INFO] [stderr]     |    ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Instruction` is never constructed
[INFO] [stderr]  --> src/instruction.rs:1:12
[INFO] [stderr]   |
[INFO] [stderr] 1 | pub struct Instruction {
[INFO] [stderr]   |            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `AddrMode` is never used
[INFO] [stderr]  --> src/instruction.rs:9:10
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub enum AddrMode {
[INFO] [stderr]   |          ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `OpCode` is never used
[INFO] [stderr]   --> src/instruction.rs:26:10
[INFO] [stderr]    |
[INFO] [stderr] 26 | pub enum OpCode {
[INFO] [stderr]    |          ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]   --> src/instruction.rs:86:12
[INFO] [stderr]    |
[INFO] [stderr] 85 | impl Instruction {
[INFO] [stderr]    | ---------------- associated function in this implementation
[INFO] [stderr] 86 |     pub fn new(opcode: u8) -> Instruction {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `ZERO_PAGE_START` is never used
[INFO] [stderr]   --> src/mem.rs:11:11
[INFO] [stderr]    |
[INFO] [stderr] 11 | pub const ZERO_PAGE_START: u16 = 0x00;
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `STACK_TOP` is never used
[INFO] [stderr]   --> src/mem.rs:12:11
[INFO] [stderr]    |
[INFO] [stderr] 12 | pub const STACK_TOP: u16 = 0x100;
[INFO] [stderr]    |           ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Memory` is never constructed
[INFO] [stderr]   --> src/mem.rs:14:12
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub struct Memory {
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `ram_read`, and `ram_write` are never used
[INFO] [stderr]   --> src/mem.rs:19:12
[INFO] [stderr]    |
[INFO] [stderr] 18 | impl Memory {
[INFO] [stderr]    | ----------- associated items in this implementation
[INFO] [stderr] 19 |     pub fn new() -> Memory {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 25 |     pub fn ram_read(&self, addr: u16) -> u8 {
[INFO] [stderr]    |            ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 28 |     pub fn ram_write(&mut self, addr: u16, data: u8) {
[INFO] [stderr]    |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `NES` is never constructed
[INFO] [stderr]  --> src/nes.rs:7:8
[INFO] [stderr]   |
[INFO] [stderr] 7 | struct NES {
[INFO] [stderr]   |        ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]   --> src/nes.rs:13:12
[INFO] [stderr]    |
[INFO] [stderr] 12 | impl NES {
[INFO] [stderr]    | -------- associated function in this implementation
[INFO] [stderr] 13 |     pub fn new() -> NES {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `PPU` is never constructed
[INFO] [stderr]  --> src/ppu.rs:4:12
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub struct PPU {
[INFO] [stderr]   |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]  --> src/ppu.rs:9:12
[INFO] [stderr]   |
[INFO] [stderr] 8 | impl PPU {
[INFO] [stderr]   | -------- associated function in this implementation
[INFO] [stderr] 9 |     pub fn new(mem: Rc<RefCell<Memory>>) -> PPU {
[INFO] [stderr]   |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `rust-nes` (bin "rust-nes" test) generated 27 warnings
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_nes-a3949285566b682e)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "a22655d7393e44f0394b41f29c7db01170f0d5cfa36e4a114d5604b6a4968476", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a22655d7393e44f0394b41f29c7db01170f0d5cfa36e4a114d5604b6a4968476", kill_on_drop: false }`
[INFO] [stdout] a22655d7393e44f0394b41f29c7db01170f0d5cfa36e4a114d5604b6a4968476
