[INFO] cloning repository https://github.com/proudlygeek/gaimboi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/proudlygeek/gaimboi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fproudlygeek%2Fgaimboi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fproudlygeek%2Fgaimboi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d9fe6eef2d393e06a0bfe2baec8dc2e66234309d [INFO] checking proudlygeek/gaimboi against try#39605810efb1a0d52f955bfba9e4eec7a01d5deb for pr-153692 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fproudlygeek%2Fgaimboi" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/proudlygeek/gaimboi [INFO] finished tweaking git repo https://github.com/proudlygeek/gaimboi [INFO] tweaked toml for git repo https://github.com/proudlygeek/gaimboi written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/proudlygeek/gaimboi on toolchain 39605810efb1a0d52f955bfba9e4eec7a01d5deb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/proudlygeek/gaimboi 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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 58e399617cfdd90d6c32b749abc8ebe27af3070e955bf7fb713206a35f016775 [INFO] running `Command { std: "docker" "start" "-a" "58e399617cfdd90d6c32b749abc8ebe27af3070e955bf7fb713206a35f016775", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58e399617cfdd90d6c32b749abc8ebe27af3070e955bf7fb713206a35f016775", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58e399617cfdd90d6c32b749abc8ebe27af3070e955bf7fb713206a35f016775", kill_on_drop: false }` [INFO] [stdout] 58e399617cfdd90d6c32b749abc8ebe27af3070e955bf7fb713206a35f016775 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f0f12fafab680e0ab6deae4fa1a9e0d503c4c37a2dbe810329b4c3139714eb90 [INFO] running `Command { std: "docker" "start" "-a" "f0f12fafab680e0ab6deae4fa1a9e0d503c4c37a2dbe810329b4c3139714eb90", kill_on_drop: false }` [INFO] [stderr] Checking gaimboi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn title(self: &Cart) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] = note: `#[deny(self_lifetime_elision_not_applicable)]` (part of `#[deny(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:70:27 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn rom_size(self: &Cart) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn ram_size(self: &Cart) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:84:27 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn checksum(self: &Cart) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:88:35 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn destination_code(self: &Cart) -> DestinationCode { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:96:37 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn calculate_checksum(self: &Cart) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn cartridge_type(self: &Cart) -> CartridgeType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn lic_code(self: &Cart) -> LicCode { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:129:28 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn read_file(self: &mut Cart, filename: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:143:28 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn read_cart(self: &Cart, address: u16) -> &u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:147:31 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn read_section(self: &Cart, section: HeaderSection) -> &[u8] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/cart.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | section => panic!("header section not implemented: {:?}", section), [INFO] [stdout] | ^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/cart.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 149 | HeaderSection::EntryPoint => &self.content[0x100..=0x103], [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 150 | HeaderSection::NintendoLogo => &self.content[0x104..=0x133], [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 151 | HeaderSection::Title => &self.content[0x134..=0x142], [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 152 | HeaderSection::SGB => &self.content[0x146..=0x146], [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 159 | section => panic!("header section not implemented: {:?}", section), [INFO] [stdout] | ^^^^^^^ ...and 6 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut cpu = CPU::new(); [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] [stderr] error: could not compile `gaimboi` (bin "gaimboi" test) due to 11 previous errors; 4 warnings emitted [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut cpu = CPU::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variant `EliteSystems` is never constructed [INFO] [stdout] --> src/cart.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum LicCode { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | EliteSystems, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LicCode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn title(self: &Cart) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] = note: `#[deny(self_lifetime_elision_not_applicable)]` (part of `#[deny(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gaimboi` (bin "gaimboi") due to 11 previous errors; 10 warnings emitted [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:70:27 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn rom_size(self: &Cart) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn ram_size(self: &Cart) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:84:27 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn checksum(self: &Cart) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:88:35 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn destination_code(self: &Cart) -> DestinationCode { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:96:37 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn calculate_checksum(self: &Cart) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn cartridge_type(self: &Cart) -> CartridgeType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn lic_code(self: &Cart) -> LicCode { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:129:28 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn read_file(self: &mut Cart, filename: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:143:28 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn read_cart(self: &Cart, address: u16) -> &u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/cart.rs:147:31 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn read_section(self: &Cart, section: HeaderSection) -> &[u8] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [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 #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/cart.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | section => panic!("header section not implemented: {:?}", section), [INFO] [stdout] | ^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/cart.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 149 | HeaderSection::EntryPoint => &self.content[0x100..=0x103], [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 150 | HeaderSection::NintendoLogo => &self.content[0x104..=0x133], [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 151 | HeaderSection::Title => &self.content[0x134..=0x142], [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 152 | HeaderSection::SGB => &self.content[0x146..=0x146], [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 159 | section => panic!("header section not implemented: {:?}", section), [INFO] [stdout] | ^^^^^^^ ...and 6 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut cpu = CPU::new(); [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: `cpu` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut cpu = CPU::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EntryPoint`, `NintendoLogo`, and `SGB` are never constructed [INFO] [stdout] --> src/cart.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum HeaderSection { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 7 | EntryPoint, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | NintendoLogo, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | Title, [INFO] [stdout] 10 | SGB, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeaderSection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EliteSystems` is never constructed [INFO] [stdout] --> src/cart.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum LicCode { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | EliteSystems, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LicCode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_cart` is never used [INFO] [stdout] --> src/cart.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Cart { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn read_cart(self: &Cart, address: u16) -> &u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `registers`, `pc`, and `sp` are never read [INFO] [stdout] --> src/cpu.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CPU { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 4 | registers: Registers, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | pc: u16, // Program counter -> 2 bytes [INFO] [stdout] | ^^ [INFO] [stdout] 6 | sp: u16, // Stack Pointer -> 2 bytes [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `execute_cycle` and `add` are never used [INFO] [stdout] --> src/cpu.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl CPU { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn execute_cycle(&mut self, opcode: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn add(&mut self, value: u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/registers.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Registers { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 3 | pub a: u8, [INFO] [stdout] | ^ [INFO] [stdout] 4 | pub f: FlagsRegister, [INFO] [stdout] | ^ [INFO] [stdout] 5 | pub b: u8, [INFO] [stdout] | ^ [INFO] [stdout] 6 | pub c: u8, [INFO] [stdout] | ^ [INFO] [stdout] 7 | pub d: u8, [INFO] [stdout] | ^ [INFO] [stdout] 8 | pub e: u8, [INFO] [stdout] | ^ [INFO] [stdout] 9 | pub h: u8, [INFO] [stdout] | ^ [INFO] [stdout] 10 | pub l: u8, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/registers.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Registers { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | fn af(&mut self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn bc(&mut self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn de(&mut self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn hl(&mut self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn set_af(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn set_bc(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn set_de(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn set_hl(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f0f12fafab680e0ab6deae4fa1a9e0d503c4c37a2dbe810329b4c3139714eb90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0f12fafab680e0ab6deae4fa1a9e0d503c4c37a2dbe810329b4c3139714eb90", kill_on_drop: false }` [INFO] [stdout] f0f12fafab680e0ab6deae4fa1a9e0d503c4c37a2dbe810329b4c3139714eb90