[INFO] cloning repository https://github.com/gen0x39/gba-engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gen0x39/gba-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgen0x39%2Fgba-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgen0x39%2Fgba-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b77472582ce8f1100f224a03e3801d2014dd170c [INFO] checking gen0x39/gba-engine/b77472582ce8f1100f224a03e3801d2014dd170c against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgen0x39%2Fgba-engine" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gen0x39/gba-engine on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gen0x39/gba-engine [INFO] finished tweaking git repo https://github.com/gen0x39/gba-engine [INFO] tweaked toml for git repo https://github.com/gen0x39/gba-engine written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/gen0x39/gba-engine 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `linked_list_allocator` dependency) [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded linked_list_allocator v0.8.6 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 619894970a160fae90ab33761e3a4b91343e9761755b46588de6ec41c90438b4 [INFO] running `Command { std: "docker" "start" "-a" "619894970a160fae90ab33761e3a4b91343e9761755b46588de6ec41c90438b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "619894970a160fae90ab33761e3a4b91343e9761755b46588de6ec41c90438b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "619894970a160fae90ab33761e3a4b91343e9761755b46588de6ec41c90438b4", kill_on_drop: false }` [INFO] [stdout] 619894970a160fae90ab33761e3a4b91343e9761755b46588de6ec41c90438b4 [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=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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f1e0811f01f30970c180a3df87263d4fc048574f8f86d2a74f1be3a77efa934 [INFO] running `Command { std: "docker" "start" "-a" "4f1e0811f01f30970c180a3df87263d4fc048574f8f86d2a74f1be3a77efa934", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `linked_list_allocator` dependency) [INFO] [stderr] Checking linked_list_allocator v0.8.6 [INFO] [stderr] Checking lifegameboy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/graphics.rs:87:39 [INFO] [stdout] | [INFO] [stdout] 87 | self.draw_char(character, (x + offset_x), y, color); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 87 - self.draw_char(character, (x + offset_x), y, color); [INFO] [stdout] 87 + self.draw_char(character, x + offset_x, y, color); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/io.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | if ((key_state & KEY_A) > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - if ((key_state & KEY_A) > 0) { [INFO] [stdout] 25 + if (key_state & KEY_A) > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/io.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | if ((key_state & KEY_RIGHT) > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 35 - if ((key_state & KEY_RIGHT) > 0) { [INFO] [stdout] 35 + if (key_state & KEY_RIGHT) > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/io.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | if ((key_state & KEY_LEFT) > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - if ((key_state & KEY_LEFT) > 0) { [INFO] [stdout] 46 + if (key_state & KEY_LEFT) > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/io.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | if ((key_state & KEY_UP) > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 57 - if ((key_state & KEY_UP) > 0) { [INFO] [stdout] 57 + if (key_state & KEY_UP) > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/io.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | if ((key_state & KEY_DOWN) > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - if ((key_state & KEY_DOWN) > 0) { [INFO] [stdout] 68 + if (key_state & KEY_DOWN) > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::io::key_up_is_pressed` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::io::key_up_is_pressed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `object_attributes` should have an upper camel case name [INFO] [stdout] --> src/main.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct object_attributes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ObjectAttributes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | if (key_a_is_pressed()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if (key_a_is_pressed()) { [INFO] [stdout] 115 + if key_a_is_pressed() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:137:15 [INFO] [stdout] | [INFO] [stdout] 137 | while (*REG_DISPLAY_VCOUNT >= 160){;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 137 - while (*REG_DISPLAY_VCOUNT >= 160){;} [INFO] [stdout] 137 + while *REG_DISPLAY_VCOUNT >= 160 {;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:137:44 [INFO] [stdout] | [INFO] [stdout] 137 | while (*REG_DISPLAY_VCOUNT >= 160){;} [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:138:15 [INFO] [stdout] | [INFO] [stdout] 138 | while (*REG_DISPLAY_VCOUNT < 160) {;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 138 - while (*REG_DISPLAY_VCOUNT < 160) {;} [INFO] [stdout] 138 + while *REG_DISPLAY_VCOUNT < 160 {;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:138:44 [INFO] [stdout] | [INFO] [stdout] 138 | while (*REG_DISPLAY_VCOUNT < 160) {;} [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/graphics.rs:87:39 [INFO] [stdout] | [INFO] [stdout] 87 | self.draw_char(character, (x + offset_x), y, color); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 87 - self.draw_char(character, (x + offset_x), y, color); [INFO] [stdout] 87 + self.draw_char(character, x + offset_x, y, color); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/io.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | if ((key_state & KEY_A) > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - if ((key_state & KEY_A) > 0) { [INFO] [stdout] 25 + if (key_state & KEY_A) > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/io.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | if ((key_state & KEY_RIGHT) > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 35 - if ((key_state & KEY_RIGHT) > 0) { [INFO] [stdout] 35 + if (key_state & KEY_RIGHT) > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/io.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | if ((key_state & KEY_LEFT) > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - if ((key_state & KEY_LEFT) > 0) { [INFO] [stdout] 46 + if (key_state & KEY_LEFT) > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/io.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | if ((key_state & KEY_UP) > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 57 - if ((key_state & KEY_UP) > 0) { [INFO] [stdout] 57 + if (key_state & KEY_UP) > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/io.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | if ((key_state & KEY_DOWN) > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - if ((key_state & KEY_DOWN) > 0) { [INFO] [stdout] 68 + if (key_state & KEY_DOWN) > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::io::key_up_is_pressed` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::io::key_up_is_pressed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `object_attributes` should have an upper camel case name [INFO] [stdout] --> src/main.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct object_attributes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ObjectAttributes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | if (key_a_is_pressed()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if (key_a_is_pressed()) { [INFO] [stdout] 115 + if key_a_is_pressed() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:137:15 [INFO] [stdout] | [INFO] [stdout] 137 | while (*REG_DISPLAY_VCOUNT >= 160){;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 137 - while (*REG_DISPLAY_VCOUNT >= 160){;} [INFO] [stdout] 137 + while *REG_DISPLAY_VCOUNT >= 160 {;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:137:44 [INFO] [stdout] | [INFO] [stdout] 137 | while (*REG_DISPLAY_VCOUNT >= 160){;} [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:138:15 [INFO] [stdout] | [INFO] [stdout] 138 | while (*REG_DISPLAY_VCOUNT < 160) {;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 138 - while (*REG_DISPLAY_VCOUNT < 160) {;} [INFO] [stdout] 138 + while *REG_DISPLAY_VCOUNT < 160 {;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:138:44 [INFO] [stdout] | [INFO] [stdout] 138 | while (*REG_DISPLAY_VCOUNT < 160) {;} [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / fn panic(_info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] 7 | | loop {} [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e0ee872a6f64065a.rlib [INFO] [stdout] = note: second definition in the local crate (`lifegameboy`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 110 | / loop { [INFO] [stdout] 111 | | unsafe { [INFO] [stdout] 112 | | wait_for_vsync(); [INFO] [stdout] ... | [INFO] [stdout] 121 | | } [INFO] [stdout] 122 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 123 | 0 [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lifegameboy` (bin "lifegameboy" test) due to 2 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: value assigned to `key_state` is never read [INFO] [stdout] --> src/io.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut key_state: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `key_state` is never read [INFO] [stdout] --> src/io.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut key_state: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `key_state` is never read [INFO] [stdout] --> src/io.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut key_state: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `key_state` is never read [INFO] [stdout] --> src/io.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut key_state: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `key_state` is never read [INFO] [stdout] --> src/io.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut key_state: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red` [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let red: RGB = RGB::red(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_red` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vram` is assigned to, but never used [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut vram: *mut u16 = (MEM_VRAM + (offset * 2)) as *mut u16; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_vram` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `green` [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let green: RGB = RGB::green(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue` [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let blue: RGB = RGB::blue(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let white: RGB = RGB::white(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `vram` is never read [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | vram = (MEM_VRAM + (offset * 2)) as *mut u16; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paddle_attributes` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let paddle_attributes = object_attributes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_paddle_attributes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ball_attributes` [INFO] [stdout] --> src/main.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let ball_attributes = object_attributes { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ball_attributes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_state` [INFO] [stdout] --> src/main.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let mut key_state: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut x: u16 = 100; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut y: u16 = 100; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let mut key_state: u32 = 0; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attribute_zero`, `attribute_one`, `attribute_two`, and `dummy` are never read [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct object_attributes { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 26 | attribute_zero: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 27 | attribute_one: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 28 | attribute_two: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 29 | dummy: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MEM_OAM` is never used [INFO] [stdout] --> src/main.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | const MEM_OAM: u32 = 0x07000000; // 1KB OAM RAM (オブジェクト属性メモリ) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REG_DISPLAY` is never used [INFO] [stdout] --> src/main.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const REG_DISPLAY : *const u32 = (MEM_IO) as *const u32; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `oam_memory` is never used [INFO] [stdout] --> src/main.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | const oam_memory: *mut object_attributes = MEM_OAM as *mut object_attributes; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `tile_memory` is never used [INFO] [stdout] --> src/main.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const tile_memory: *mut u16 = MEM_VRAM as *mut u16; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `black` is never used [INFO] [stdout] --> src/rgb.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait RGBDef { [INFO] [stdout] | ------ associated function in this trait [INFO] [stdout] 8 | fn white() -> Self; [INFO] [stdout] 9 | fn black() -> Self; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `draw_circle`, `width`, and `height` are never used [INFO] [stdout] --> src/graphics.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Graphics { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn draw_circle(&self, center_x:u16, center_y:u16, r:u16, color:&RGB) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn width(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn height(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size_height` is never read [INFO] [stdout] --> src/font.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Font { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 4 | size_width: u16, [INFO] [stdout] 5 | size_height: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `font_height` is never used [INFO] [stdout] --> src/font.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Font { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn font_height(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_B` is never used [INFO] [stdout] --> src/io.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const KEY_B: u32 = 0x00000002; // 1 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_SELECT` is never used [INFO] [stdout] --> src/io.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const KEY_SELECT: u32 = 0x00000004; // 2 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_START` is never used [INFO] [stdout] --> src/io.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const KEY_START: u32 = 0x00000008; // 3 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_RIGHT` is never used [INFO] [stdout] --> src/io.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const KEY_RIGHT: u32 = 0x00000010; // 4 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_LEFT` is never used [INFO] [stdout] --> src/io.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const KEY_LEFT: u32 = 0x00000020; // 5 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_UP` is never used [INFO] [stdout] --> src/io.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const KEY_UP: u32 = 0x00000040; // 6 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_DOWN` is never used [INFO] [stdout] --> src/io.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const KEY_DOWN: u32 = 0x00000080; // 7 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_R` is never used [INFO] [stdout] --> src/io.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const KEY_R: u32 = 0x00000100; // 8 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_L` is never used [INFO] [stdout] --> src/io.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const KEY_L: u32 = 0x00000200; // 9 (10 ~ 15 Not Used) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_right_is_pressed` is never used [INFO] [stdout] --> src/io.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn key_right_is_pressed() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_left_is_pressed` is never used [INFO] [stdout] --> src/io.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn key_left_is_pressed() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_up_is_pressed` is never used [INFO] [stdout] --> src/io.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn key_up_is_pressed() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_down_is_pressed` is never used [INFO] [stdout] --> src/io.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn key_down_is_pressed() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `oam_memory` should have an upper case name [INFO] [stdout] --> src/main.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | const oam_memory: *mut object_attributes = MEM_OAM as *mut object_attributes; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `OAM_MEMORY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `tile_memory` should have an upper case name [INFO] [stdout] --> src/main.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const tile_memory: *mut u16 = MEM_VRAM as *mut u16; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `TILE_MEMORY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `object_palette_memory` should have an upper case name [INFO] [stdout] --> src/main.rs:44:7 [INFO] [stdout] | [INFO] [stdout] 44 | const object_palette_memory: *mut u16 = (MEM_PAL | 0x00000200) as *mut u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `OBJECT_PALETTE_MEMORY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4f1e0811f01f30970c180a3df87263d4fc048574f8f86d2a74f1be3a77efa934", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f1e0811f01f30970c180a3df87263d4fc048574f8f86d2a74f1be3a77efa934", kill_on_drop: false }` [INFO] [stdout] 4f1e0811f01f30970c180a3df87263d4fc048574f8f86d2a74f1be3a77efa934