[INFO] cloning repository https://github.com/Comba92/tomboy-emulator
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Comba92/tomboy-emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FComba92%2Ftomboy-emulator", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FComba92%2Ftomboy-emulator'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 14ec0e47381a2e855c193deae6e9c31bd69347d0
[INFO] checking Comba92/tomboy-emulator against master#292be5c7c05138d753bbd4b30db7a3f1a5c914f7 for pr-148271
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FComba92%2Ftomboy-emulator" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Comba92/tomboy-emulator
[INFO] finished tweaking git repo https://github.com/Comba92/tomboy-emulator
[INFO] tweaked toml for git repo https://github.com/Comba92/tomboy-emulator written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Comba92/tomboy-emulator on toolchain 292be5c7c05138d753bbd4b30db7a3f1a5c914f7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Comba92/tomboy-emulator 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" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded prettydiff v0.8.0
[INFO] [stderr]   Downloaded bitfield-struct v0.10.0
[INFO] [stderr]   Downloaded pad v0.1.6
[INFO] [stderr]   Downloaded circular-buffer v0.1.9
[INFO] [stderr]   Downloaded owo-colors v4.1.0
[INFO] [stderr]   Downloaded prettytable-rs v0.10.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] aa4737854d65394e17e4e771d7e8bb4507c4622692e1071065c347add35056ea
[INFO] running `Command { std: "docker" "start" "-a" "aa4737854d65394e17e4e771d7e8bb4507c4622692e1071065c347add35056ea", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "aa4737854d65394e17e4e771d7e8bb4507c4622692e1071065c347add35056ea", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aa4737854d65394e17e4e771d7e8bb4507c4622692e1071065c347add35056ea", kill_on_drop: false }`
[INFO] [stdout] aa4737854d65394e17e4e771d7e8bb4507c4622692e1071065c347add35056ea
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] eea22468898a759f17e9a09542a0abe3f3634c57dd2cd65e1ca1bbf88f8d0236
[INFO] running `Command { std: "docker" "start" "-a" "eea22468898a759f17e9a09542a0abe3f3634c57dd2cd65e1ca1bbf88f8d0236", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.89
[INFO] [stderr]    Compiling unicode-ident v1.0.13
[INFO] [stderr]     Checking csv-core v0.1.11
[INFO] [stderr]    Compiling serde_json v1.0.132
[INFO] [stderr]    Compiling owo-colors v4.1.0
[INFO] [stderr]     Checking encode_unicode v1.0.0
[INFO] [stderr]     Checking dirs-sys-next v0.1.2
[INFO] [stderr]     Checking is-terminal v0.4.13
[INFO] [stderr]     Checking pad v0.1.6
[INFO] [stderr]     Checking bitflags v2.6.0
[INFO] [stderr]     Checking circular-buffer v0.1.9
[INFO] [stderr]     Checking dirs-next v2.0.0
[INFO] [stderr]     Checking term v0.7.0
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.87
[INFO] [stderr]    Compiling serde_derive v1.0.215
[INFO] [stderr]    Compiling bitfield-struct v0.10.0
[INFO] [stderr]     Checking serde v1.0.215
[INFO] [stderr]     Checking csv v1.3.1
[INFO] [stderr]     Checking prettytable-rs v0.10.0
[INFO] [stderr]     Checking prettydiff v0.8.0
[INFO] [stderr]     Checking tomboy-emulator v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/bus.rs:179:14
[INFO] [stdout]     |
[INFO] [stdout] 179 |   pub fn new(mut cart: Cart) -> Bus {
[INFO] [stdout]     |              ----^^^^
[INFO] [stdout]     |              |
[INFO] [stdout]     |              help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/bus.rs:179:14
[INFO] [stdout]     |
[INFO] [stdout] 179 |   pub fn new(mut cart: Cart) -> Bus {
[INFO] [stdout]     |              ----^^^^
[INFO] [stdout]     |              |
[INFO] [stdout]     |              help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/apu.rs:10:22
[INFO] [stdout]    |
[INFO] [stdout] 10 |   pub fn read(&self, addr: u16) -> u8 {
[INFO] [stdout]    |                      ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/apu.rs:14:23
[INFO] [stdout]    |
[INFO] [stdout] 14 |   pub fn write(&self, addr: u16, val: u8) {
[INFO] [stdout]    |                       ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `val`
[INFO] [stdout]   --> src/apu.rs:14:34
[INFO] [stdout]    |
[INFO] [stdout] 14 |   pub fn write(&self, addr: u16, val: u8) {
[INFO] [stdout]    |                                  ^^^ help: if this is intentional, prefix it with an underscore: `_val`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/apu.rs:10:22
[INFO] [stdout]    |
[INFO] [stdout] 10 |   pub fn read(&self, addr: u16) -> u8 {
[INFO] [stdout]    |                      ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/apu.rs:14:23
[INFO] [stdout]    |
[INFO] [stdout] 14 |   pub fn write(&self, addr: u16, val: u8) {
[INFO] [stdout]    |                       ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `val`
[INFO] [stdout]   --> src/apu.rs:14:34
[INFO] [stdout]    |
[INFO] [stdout] 14 |   pub fn write(&self, addr: u16, val: u8) {
[INFO] [stdout]    |                                  ^^^ help: if this is intentional, prefix it with an underscore: `_val`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `indirect_zero16`, `indirect_abs16`, `set_indirect_abs8`, and `set_indirect_zero16` are never used
[INFO] [stdout]    --> src/cpu.rs:288:5
[INFO] [stdout]     |
[INFO] [stdout] 181 | impl<M: Memory> Cpu<M> {
[INFO] [stdout]     | ---------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 288 |     fn indirect_zero16(&mut self) -> u16 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 292 |     fn indirect_abs16(&mut self) -> u16 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 335 |     fn set_indirect_abs8(&mut self, val: u8) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 339 |     fn set_indirect_zero16(&mut self, val: u16) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `send_lcd_int` and `send_lyc_int` are never used
[INFO] [stdout]    --> src/ppu.rs:355:6
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl Ppu {
[INFO] [stdout]     | -------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 355 |   fn send_lcd_int(&mut self, flag: Stat) {
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 376 |   fn send_lyc_int(&mut self) {
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `indirect_zero16`, `indirect_abs16`, `set_indirect_abs8`, and `set_indirect_zero16` are never used
[INFO] [stdout]    --> src/cpu.rs:288:5
[INFO] [stdout]     |
[INFO] [stdout] 181 | impl<M: Memory> Cpu<M> {
[INFO] [stdout]     | ---------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 288 |     fn indirect_zero16(&mut self) -> u16 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 292 |     fn indirect_abs16(&mut self) -> u16 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 335 |     fn set_indirect_abs8(&mut self, val: u8) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 339 |     fn set_indirect_zero16(&mut self, val: u16) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `send_lcd_int` and `send_lyc_int` are never used
[INFO] [stdout]    --> src/ppu.rs:355:6
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl Ppu {
[INFO] [stdout]     | -------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 355 |   fn send_lcd_int(&mut self, flag: Stat) {
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 376 |   fn send_lyc_int(&mut self) {
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: missing generics for struct `Cpu`
[INFO] [stdout]   --> tests/cpu_test.rs:79:24
[INFO] [stdout]    |
[INFO] [stdout] 79 |   fn log_cpu(cpu: &mut Cpu) -> String {
[INFO] [stdout]    |                        ^^^ expected 1 generic argument
[INFO] [stdout]    |
[INFO] [stdout] note: struct defined here, with 1 generic parameter: `M`
[INFO] [stdout]   --> /opt/rustwide/workdir/src/cpu.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub struct Cpu<M: Memory> {
[INFO] [stdout]    |            ^^^ -
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 79 |   fn log_cpu(cpu: &mut Cpu<M>) -> String {
[INFO] [stdout]    |                           +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sdl2`
[INFO] [stdout]  --> tests/ppu_test.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     use sdl2::{event::Event, pixels::PixelFormatEnum};
[INFO] [stdout]   |         ^^^^ use of unresolved module or unlinked crate `sdl2`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `sdl2`, use `cargo add sdl2` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: couldn't read `tests/sm83/v1/00.json`: No such file or directory (os error 2)
[INFO] [stdout]   --> tests/cpu_step_tests.rs:67:16
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let json = include_str!("sm83/v1/00.json");
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]   --> tests/cpu_test.rs:29:21
[INFO] [stdout]    |
[INFO] [stdout] 29 |       let mut cpu = Cpu::new();
[INFO] [stdout]    |                     ^^^^^^^^-- argument #1 of type `Cart` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/cpu.rs:99:9
[INFO] [stdout]    |
[INFO] [stdout] 99 |     pub fn new(cart: Cart) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 29 |       let mut cpu = Cpu::new(/* Cart */);
[INFO] [stdout]    |                              ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused label
[INFO] [stdout]    --> tests/cpu_step_tests.rs:101:5
[INFO] [stdout]     |
[INFO] [stdout] 101 |     'testing: for test in tests.iter() {
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_labels)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `mem` on type `Bus`
[INFO] [stdout]   --> tests/cpu_test.rs:34:15
[INFO] [stdout]    |
[INFO] [stdout] 34 |       cpu.bus.mem[0xFF44] = 0x90;
[INFO] [stdout]    |               ^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `cart`, `ppu`, `timer`, `serial`, `joypad` ... and 3 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `mem` on type `Bus`
[INFO] [stdout]   --> tests/cpu_test.rs:38:31
[INFO] [stdout]    |
[INFO] [stdout] 38 |       let (left, _) = cpu.bus.mem.split_at_mut(rom.len());
[INFO] [stdout]    |                               ^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `cart`, `ppu`, `timer`, `serial`, `joypad` ... and 3 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> tests/cpu_test.rs:39:7
[INFO] [stdout]    |
[INFO] [stdout] 39 |       left.copy_from_slice(&rom);
[INFO] [stdout]    |       ^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0107, E0282, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `tomboy-emulator` (test "cpu_test") due to 5 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sdl2`
[INFO] [stdout]   --> tests/ppu_test.rs:13:15
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let sdl = sdl2::init()?;
[INFO] [stdout]    |               ^^^^ use of unresolved module or unlinked crate `sdl2`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `sdl2`, use `cargo add sdl2` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]   --> tests/ppu_test.rs:27:19
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut emu = Cpu::new();
[INFO] [stdout]    |                   ^^^^^^^^-- argument #1 of type `Cart` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/cpu.rs:99:9
[INFO] [stdout]    |
[INFO] [stdout] 99 |     pub fn new(cart: Cart) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut emu = Cpu::new(/* Cart */);
[INFO] [stdout]    |                            ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `borrow_mut` found for struct `Bus` in the current scope
[INFO] [stdout]   --> tests/ppu_test.rs:32:27
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let mut bus = emu.bus.borrow_mut();
[INFO] [stdout]    |                           ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   --> /rustc/292be5c7c05138d753bbd4b30db7a3f1a5c914f7/library/core/src/borrow.rs:207:8
[INFO] [stdout]    |
[INFO] [stdout]    = note: the method is available for `Bus` here
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `BorrowMut` which provides `borrow_mut` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]    |
[INFO] [stdout]  5 +     use std::borrow::BorrowMut;
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `borrow` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 32 -     let mut bus = emu.bus.borrow_mut();
[INFO] [stdout] 32 +     let mut bus = emu.bus.borrow();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> tests/ppu_test.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     left.copy_from_slice(&rom);
[INFO] [stdout]    |     ^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `ppu` on type `Cpu<Bus>`
[INFO] [stdout]   --> tests/ppu_test.rs:46:17
[INFO] [stdout]    |
[INFO] [stdout] 46 |       while emu.ppu.vblank.take().is_none() {
[INFO] [stdout]    |                 ^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout] help: one of the expressions' fields has a field of the same name
[INFO] [stdout]    |
[INFO] [stdout] 46 |       while emu.bus.ppu.vblank.take().is_none() {
[INFO] [stdout]    |                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]   --> tests/ppu_test.rs:54:19
[INFO] [stdout]    |
[INFO] [stdout] 54 |             emu = Cpu::new();
[INFO] [stdout]    |                   ^^^^^^^^-- argument #1 of type `Cart` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/cpu.rs:99:9
[INFO] [stdout]    |
[INFO] [stdout] 99 |     pub fn new(cart: Cart) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 54 |             emu = Cpu::new(/* Cart */);
[INFO] [stdout]    |                            ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `borrow_mut` found for struct `Bus` in the current scope
[INFO] [stdout]   --> tests/ppu_test.rs:57:35
[INFO] [stdout]    |
[INFO] [stdout] 57 |             let mut bus = emu.bus.borrow_mut();
[INFO] [stdout]    |                                   ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   --> /rustc/292be5c7c05138d753bbd4b30db7a3f1a5c914f7/library/core/src/borrow.rs:207:8
[INFO] [stdout]    |
[INFO] [stdout]    = note: the method is available for `Bus` here
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `BorrowMut` which provides `borrow_mut` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]    |
[INFO] [stdout]  5 +     use std::borrow::BorrowMut;
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `borrow` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 57 -             let mut bus = emu.bus.borrow_mut();
[INFO] [stdout] 57 +             let mut bus = emu.bus.borrow();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> tests/ppu_test.rs:59:13
[INFO] [stdout]    |
[INFO] [stdout] 59 |             left.copy_from_slice(&rom);
[INFO] [stdout]    |             ^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `borrow` found for struct `Bus` in the current scope
[INFO] [stdout]   --> tests/ppu_test.rs:71:29
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let tile = &emu.bus.borrow().mem[tile_start..tile_start+16];
[INFO] [stdout]    |                             ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   --> /rustc/292be5c7c05138d753bbd4b30db7a3f1a5c914f7/library/core/src/borrow.rs:179:8
[INFO] [stdout]    |
[INFO] [stdout]    = note: the method is available for `Bus` here
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `Borrow` which provides `borrow` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]    |
[INFO] [stdout]  5 +     use std::borrow::Borrow;
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `borrow_mut` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let tile = &emu.bus.borrow_mut().mem[tile_start..tile_start+16];
[INFO] [stdout]    |                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sdl2`
[INFO] [stdout]    --> tests/ppu_test.rs:101:15
[INFO] [stdout]     |
[INFO] [stdout] 101 |     let sdl = sdl2::init()?;
[INFO] [stdout]     |               ^^^^ use of unresolved module or unlinked crate `sdl2`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `sdl2`, use `cargo add sdl2` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]    --> tests/ppu_test.rs:115:19
[INFO] [stdout]     |
[INFO] [stdout] 115 |     let mut emu = Cpu::new();
[INFO] [stdout]     |                   ^^^^^^^^-- argument #1 of type `Cart` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]    --> /opt/rustwide/workdir/src/cpu.rs:99:9
[INFO] [stdout]     |
[INFO] [stdout]  99 |     pub fn new(cart: Cart) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 115 |     let mut emu = Cpu::new(/* Cart */);
[INFO] [stdout]     |                            ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `borrow_mut` found for struct `Bus` in the current scope
[INFO] [stdout]    --> tests/ppu_test.rs:120:27
[INFO] [stdout]     |
[INFO] [stdout] 120 |     let mut bus = emu.bus.borrow_mut();
[INFO] [stdout]     |                           ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/292be5c7c05138d753bbd4b30db7a3f1a5c914f7/library/core/src/borrow.rs:207:8
[INFO] [stdout]     |
[INFO] [stdout]     = note: the method is available for `Bus` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `BorrowMut` which provides `borrow_mut` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout]   5 +     use std::borrow::BorrowMut;
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `borrow` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 120 -     let mut bus = emu.bus.borrow_mut();
[INFO] [stdout] 120 +     let mut bus = emu.bus.borrow();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> tests/ppu_test.rs:122:5
[INFO] [stdout]     |
[INFO] [stdout] 122 |     left.copy_from_slice(&rom);
[INFO] [stdout]     |     ^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `ppu` on type `Cpu<Bus>`
[INFO] [stdout]    --> tests/ppu_test.rs:134:17
[INFO] [stdout]     |
[INFO] [stdout] 134 |       while emu.ppu.vblank.take().is_none() {
[INFO] [stdout]     |                 ^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout] help: one of the expressions' fields has a field of the same name
[INFO] [stdout]     |
[INFO] [stdout] 134 |       while emu.bus.ppu.vblank.take().is_none() {
[INFO] [stdout]     |                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]    --> tests/ppu_test.rs:142:19
[INFO] [stdout]     |
[INFO] [stdout] 142 |             emu = Cpu::new();
[INFO] [stdout]     |                   ^^^^^^^^-- argument #1 of type `Cart` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]    --> /opt/rustwide/workdir/src/cpu.rs:99:9
[INFO] [stdout]     |
[INFO] [stdout]  99 |     pub fn new(cart: Cart) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 142 |             emu = Cpu::new(/* Cart */);
[INFO] [stdout]     |                            ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `borrow_mut` found for struct `Bus` in the current scope
[INFO] [stdout]    --> tests/ppu_test.rs:145:35
[INFO] [stdout]     |
[INFO] [stdout] 145 |             let mut bus = emu.bus.borrow_mut();
[INFO] [stdout]     |                                   ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/292be5c7c05138d753bbd4b30db7a3f1a5c914f7/library/core/src/borrow.rs:207:8
[INFO] [stdout]     |
[INFO] [stdout]     = note: the method is available for `Bus` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `BorrowMut` which provides `borrow_mut` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout]   5 +     use std::borrow::BorrowMut;
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `borrow` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 145 -             let mut bus = emu.bus.borrow_mut();
[INFO] [stdout] 145 +             let mut bus = emu.bus.borrow();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> tests/ppu_test.rs:147:13
[INFO] [stdout]     |
[INFO] [stdout] 147 |             left.copy_from_slice(&rom);
[INFO] [stdout]     |             ^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `borrow` found for struct `Bus` in the current scope
[INFO] [stdout]    --> tests/ppu_test.rs:167:29
[INFO] [stdout]     |
[INFO] [stdout] 167 |         let tile = &emu.bus.borrow().mem[tile_start..tile_start+16];
[INFO] [stdout]     |                             ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/292be5c7c05138d753bbd4b30db7a3f1a5c914f7/library/core/src/borrow.rs:179:8
[INFO] [stdout]     |
[INFO] [stdout]     = note: the method is available for `Bus` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `Borrow` which provides `borrow` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout]   5 +     use std::borrow::Borrow;
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `borrow_mut` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 167 |         let tile = &emu.bus.borrow_mut().mem[tile_start..tile_start+16];
[INFO] [stdout]     |                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0282, E0433, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `tomboy-emulator` (test "cpu_step_tests") due to 1 previous error; 1 warning emitted
[INFO] [stderr] error: could not compile `tomboy-emulator` (test "ppu_test") due to 19 previous errors
[INFO] running `Command { std: "docker" "inspect" "eea22468898a759f17e9a09542a0abe3f3634c57dd2cd65e1ca1bbf88f8d0236", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eea22468898a759f17e9a09542a0abe3f3634c57dd2cd65e1ca1bbf88f8d0236", kill_on_drop: false }`
[INFO] [stdout] eea22468898a759f17e9a09542a0abe3f3634c57dd2cd65e1ca1bbf88f8d0236
