[INFO] cloning repository https://github.com/eiowlta/rust_gb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eiowlta/rust_gb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feiowlta%2Frust_gb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feiowlta%2Frust_gb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 706febdaea1416aa1e5617091471f790d90adeb2 [INFO] checking eiowlta/rust_gb against master#4d1bd0db7f489b22c6d8aa2385937a95412c015b for pr-114682 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feiowlta%2Frust_gb" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eiowlta/rust_gb on toolchain 4d1bd0db7f489b22c6d8aa2385937a95412c015b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d1bd0db7f489b22c6d8aa2385937a95412c015b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eiowlta/rust_gb [INFO] finished tweaking git repo https://github.com/eiowlta/rust_gb [INFO] tweaked toml for git repo https://github.com/eiowlta/rust_gb written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/eiowlta/rust_gb 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" "+4d1bd0db7f489b22c6d8aa2385937a95412c015b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking eiowlta/rust_gb against try#785364c7e5e0804473a3fddfb579798ea14e3493 for pr-114682 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feiowlta%2Frust_gb" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eiowlta/rust_gb on toolchain 785364c7e5e0804473a3fddfb579798ea14e3493 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+785364c7e5e0804473a3fddfb579798ea14e3493" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eiowlta/rust_gb [INFO] finished tweaking git repo https://github.com/eiowlta/rust_gb [INFO] tweaked toml for git repo https://github.com/eiowlta/rust_gb written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/eiowlta/rust_gb 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" "+785364c7e5e0804473a3fddfb579798ea14e3493" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+785364c7e5e0804473a3fddfb579798ea14e3493" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4adc9102edfc38554e85817444ab238426c84a03ec92f86ab44748488d0ae38d [INFO] running `Command { std: "docker" "start" "-a" "4adc9102edfc38554e85817444ab238426c84a03ec92f86ab44748488d0ae38d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4adc9102edfc38554e85817444ab238426c84a03ec92f86ab44748488d0ae38d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4adc9102edfc38554e85817444ab238426c84a03ec92f86ab44748488d0ae38d", kill_on_drop: false }` [INFO] [stdout] 4adc9102edfc38554e85817444ab238426c84a03ec92f86ab44748488d0ae38d [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+785364c7e5e0804473a3fddfb579798ea14e3493" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8123f268e2602a278a570d7e88dd65ae3ea368097f700b95f82e6916e29e79c2 [INFO] running `Command { std: "docker" "start" "-a" "8123f268e2602a278a570d7e88dd65ae3ea368097f700b95f82e6916e29e79c2", kill_on_drop: false }` [INFO] [stderr] Checking rust_gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Mem` [INFO] [stdout] --> src/cpu.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Io, Mem}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/cpu.rs:655:47 [INFO] [stdout] | [INFO] [stdout] 655 | panic!("Halt not implemented"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 962 | 0x76 => halt!(), [INFO] [stdout] | ------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `halt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/cpu.rs:660:47 [INFO] [stdout] | [INFO] [stdout] 660 | panic!("Stop not implemented"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 963 | 0x10 => stop!(), [INFO] [stdout] | ------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this warning originates in the macro `stop` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/cpu.rs:672:45 [INFO] [stdout] | [INFO] [stdout] 672 | panic!("ei not implemented"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 966 | 0xFB => ei!(), [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this warning originates in the macro `ei` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/cpu.rs:683:47 [INFO] [stdout] | [INFO] [stdout] 683 | panic!("Reti not implemented"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 1006 | 0xD9 => reti!(), [INFO] [stdout] | ------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this warning originates in the macro `reti` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Gb` [INFO] [stdout] --> src/loader.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Gb; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mem` [INFO] [stdout] --> src/cpu.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Io, Mem}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/cpu.rs:655:47 [INFO] [stdout] | [INFO] [stdout] 655 | panic!("Halt not implemented"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 962 | 0x76 => halt!(), [INFO] [stdout] | ------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `halt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/cpu.rs:660:47 [INFO] [stdout] | [INFO] [stdout] 660 | panic!("Stop not implemented"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 963 | 0x10 => stop!(), [INFO] [stdout] | ------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this warning originates in the macro `stop` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/cpu.rs:672:45 [INFO] [stdout] | [INFO] [stdout] 672 | panic!("ei not implemented"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 966 | 0xFB => ei!(), [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this warning originates in the macro `ei` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/cpu.rs:683:47 [INFO] [stdout] | [INFO] [stdout] 683 | panic!("Reti not implemented"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 1006 | 0xD9 => reti!(), [INFO] [stdout] | ------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this warning originates in the macro `reti` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Gb` [INFO] [stdout] --> src/loader.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Gb; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Io` [INFO] [stdout] --> src/loader.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::Io; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Io` [INFO] [stdout] --> src/loader.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::Io; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rom` is never read [INFO] [stdout] --> src/gb.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Gb { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 4 | rom: Rom [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ram` is never constructed [INFO] [stdout] --> src/mem.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 76 | enum RomRamSelect { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 77 | Rom, [INFO] [stdout] 78 | Ram, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RomRamSelect` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rom_bank_lower`, `rom_bank_upper`, and `rom_ram_select` are never read [INFO] [stdout] --> src/mem.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct Mbc1 { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 85 | rom_bank_lower: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 86 | rom_bank_upper: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 87 | rom_ram_select: RomRamSelect, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mbc1` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Nr50` should have a snake case name [INFO] [stdout] --> src/audio.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Nr50: u8, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `nr50` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Nr51` should have a snake case name [INFO] [stdout] --> src/audio.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Nr51: u8, //terminal selection [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `nr51` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Nr52` should have a snake case name [INFO] [stdout] --> src/audio.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | Nr52: u8, //on [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `nr52` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rom` is never read [INFO] [stdout] --> src/gb.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Gb { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 4 | rom: Rom [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ram` is never constructed [INFO] [stdout] --> src/mem.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 76 | enum RomRamSelect { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 77 | Rom, [INFO] [stdout] 78 | Ram, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RomRamSelect` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rom_bank_lower`, `rom_bank_upper`, and `rom_ram_select` are never read [INFO] [stdout] --> src/mem.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct Mbc1 { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 85 | rom_bank_lower: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 86 | rom_bank_upper: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 87 | rom_ram_select: RomRamSelect, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mbc1` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Nr50` should have a snake case name [INFO] [stdout] --> src/audio.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Nr50: u8, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `nr50` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Nr51` should have a snake case name [INFO] [stdout] --> src/audio.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Nr51: u8, //terminal selection [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `nr51` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Nr52` should have a snake case name [INFO] [stdout] --> src/audio.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | Nr52: u8, //on [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `nr52` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/main.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | let mut cpu = Cpu::new(mem); [INFO] [stdout] | -------- ^^^ expected `Box`, found `Mem` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn Io + 'static)>` [INFO] [stdout] found struct `Mem` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/cpu.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(mem: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 12 | let mut cpu = Cpu::new(Box::new(mem)); [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/main.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | let mut cpu = Cpu::new(mem); [INFO] [stdout] | -------- ^^^ expected `Box`, found `Mem` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn Io + 'static)>` [INFO] [stdout] found struct `Mem` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/cpu.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(mem: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 12 | let mut cpu = Cpu::new(Box::new(mem)); [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_gb` (bin "main") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_gb` (bin "main" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "8123f268e2602a278a570d7e88dd65ae3ea368097f700b95f82e6916e29e79c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8123f268e2602a278a570d7e88dd65ae3ea368097f700b95f82e6916e29e79c2", kill_on_drop: false }` [INFO] [stdout] 8123f268e2602a278a570d7e88dd65ae3ea368097f700b95f82e6916e29e79c2