[INFO] cloning repository https://github.com/Agathe76/rust_grid_game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Agathe76/rust_grid_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAgathe76%2Frust_grid_game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAgathe76%2Frust_grid_game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dab999fb3c3cbe56b38623be0efad649e534bcbf [INFO] building Agathe76/rust_grid_game against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAgathe76%2Frust_grid_game" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Agathe76/rust_grid_game [INFO] finished tweaking git repo https://github.com/Agathe76/rust_grid_game [INFO] tweaked toml for git repo https://github.com/Agathe76/rust_grid_game written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Agathe76/rust_grid_game on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Agathe76/rust_grid_game 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" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quad-rand v0.2.3 [INFO] [stderr] Downloaded macroquad_macro v0.1.8 [INFO] [stderr] Downloaded miniquad v0.4.6 [INFO] [stderr] Downloaded macroquad v0.4.13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8c84805bd002a99465ca26afc97fa2e2555d09544577f5e604036c09559e23f7 [INFO] running `Command { std: "docker" "start" "-a" "8c84805bd002a99465ca26afc97fa2e2555d09544577f5e604036c09559e23f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c84805bd002a99465ca26afc97fa2e2555d09544577f5e604036c09559e23f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c84805bd002a99465ca26afc97fa2e2555d09544577f5e604036c09559e23f7", kill_on_drop: false }` [INFO] [stdout] 8c84805bd002a99465ca26afc97fa2e2555d09544577f5e604036c09559e23f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] a2272c15846f1f21e0db8fbae54a3c8b94011af673ab97d428473fadf7132baf [INFO] running `Command { std: "docker" "start" "-a" "a2272c15846f1f21e0db8fbae54a3c8b94011af673ab97d428473fadf7132baf", kill_on_drop: false }` [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling miniquad v0.4.6 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling bytemuck v1.21.0 [INFO] [stderr] Compiling quad-rand v0.2.3 [INFO] [stderr] Compiling glam v0.27.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling miniz_oxide v0.8.3 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling fontdue v0.7.3 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling macroquad v0.4.13 [INFO] [stderr] Compiling grid v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `circle` [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | let circle = Circle::new(x,y,r); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (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:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | fn draw_map(mut snake: Snake, fruit: Point, score: i32) -> Snake { [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: value assigned to `navigation_lock` is never read [INFO] [stdout] --> src/main.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | navigation_lock = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `navigation_lock` is never read [INFO] [stdout] --> src/main.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | navigation_lock = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `navigation_lock` is never read [INFO] [stdout] --> src/main.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | navigation_lock = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `navigation_lock` is never read [INFO] [stdout] --> src/main.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | navigation_lock = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `navigation_lock` is never read [INFO] [stdout] --> src/main.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | navigation_lock = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SQUARES` is never used [INFO] [stdout] --> src/main.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const SQUARES: i16 = 16; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Point` is never used [INFO] [stdout] --> src/main.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type Point = (i16, i16); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Snake` is never constructed [INFO] [stdout] --> src/main.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Snake { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_map` is never used [INFO] [stdout] --> src/main.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn draw_map(mut snake: Snake, fruit: Point, score: i32) -> Snake { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `game_over_management` is never used [INFO] [stdout] --> src/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn game_over_management(mut snake: Snake, mut fruit: Point, mut score: i32, mut speed: f64, mut last_update: f64, mut game_over: bo... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_game` is never used [INFO] [stdout] --> src/main.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn play_game(mut snake: Snake, mut fruit: Point, mut score: i32, mut speed: f64, mut last_update: f64, mut game_over: bool) -> (Sna... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.40s [INFO] running `Command { std: "docker" "inspect" "a2272c15846f1f21e0db8fbae54a3c8b94011af673ab97d428473fadf7132baf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2272c15846f1f21e0db8fbae54a3c8b94011af673ab97d428473fadf7132baf", kill_on_drop: false }` [INFO] [stdout] a2272c15846f1f21e0db8fbae54a3c8b94011af673ab97d428473fadf7132baf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 1cd3b39a38ce454931016a68f9196012046c6e241c743c5a342ec2ada2084ea3 [INFO] running `Command { std: "docker" "start" "-a" "1cd3b39a38ce454931016a68f9196012046c6e241c743c5a342ec2ada2084ea3", kill_on_drop: false }` [INFO] [stderr] Compiling grid v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `circle` [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | let circle = Circle::new(x,y,r); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (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:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | fn draw_map(mut snake: Snake, fruit: Point, score: i32) -> Snake { [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: value assigned to `navigation_lock` is never read [INFO] [stdout] --> src/main.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | navigation_lock = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `navigation_lock` is never read [INFO] [stdout] --> src/main.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | navigation_lock = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `navigation_lock` is never read [INFO] [stdout] --> src/main.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | navigation_lock = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `navigation_lock` is never read [INFO] [stdout] --> src/main.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | navigation_lock = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `navigation_lock` is never read [INFO] [stdout] --> src/main.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | navigation_lock = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SQUARES` is never used [INFO] [stdout] --> src/main.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const SQUARES: i16 = 16; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Point` is never used [INFO] [stdout] --> src/main.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type Point = (i16, i16); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Snake` is never constructed [INFO] [stdout] --> src/main.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Snake { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_map` is never used [INFO] [stdout] --> src/main.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn draw_map(mut snake: Snake, fruit: Point, score: i32) -> Snake { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `game_over_management` is never used [INFO] [stdout] --> src/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn game_over_management(mut snake: Snake, mut fruit: Point, mut score: i32, mut speed: f64, mut last_update: f64, mut game_over: bo... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_game` is never used [INFO] [stdout] --> src/main.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn play_game(mut snake: Snake, mut fruit: Point, mut score: i32, mut speed: f64, mut last_update: f64, mut game_over: bool) -> (Sna... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.62s [INFO] running `Command { std: "docker" "inspect" "1cd3b39a38ce454931016a68f9196012046c6e241c743c5a342ec2ada2084ea3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cd3b39a38ce454931016a68f9196012046c6e241c743c5a342ec2ada2084ea3", kill_on_drop: false }` [INFO] [stdout] 1cd3b39a38ce454931016a68f9196012046c6e241c743c5a342ec2ada2084ea3