[INFO] cloning repository https://github.com/Ahrimanox/strategy_game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ahrimanox/strategy_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAhrimanox%2Fstrategy_game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAhrimanox%2Fstrategy_game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6c9772f19e6e72f732d0b5c43b0cd5b241b9952b [INFO] testing Ahrimanox/strategy_game against master#b70888601af92f6cdc0364abab3446e418b91d36 for pr-86479 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAhrimanox%2Fstrategy_game" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ahrimanox/strategy_game on toolchain b70888601af92f6cdc0364abab3446e418b91d36 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Ahrimanox/strategy_game [INFO] finished tweaking git repo https://github.com/Ahrimanox/strategy_game [INFO] tweaked toml for git repo https://github.com/Ahrimanox/strategy_game written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/Ahrimanox/strategy_game already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 85deb46134d40407242199d99f3e41a19466562f9225c42ff8212a96a5f5c297 [INFO] running `Command { std: "docker" "start" "-a" "85deb46134d40407242199d99f3e41a19466562f9225c42ff8212a96a5f5c297", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85deb46134d40407242199d99f3e41a19466562f9225c42ff8212a96a5f5c297", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85deb46134d40407242199d99f3e41a19466562f9225c42ff8212a96a5f5c297", kill_on_drop: false }` [INFO] [stdout] 85deb46134d40407242199d99f3e41a19466562f9225c42ff8212a96a5f5c297 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 204e025a558d1c6ef0a5d64a94c50928879f2eb89f43e1f18f20f852f1fa7524 [INFO] running `Command { std: "docker" "start" "-a" "204e025a558d1c6ef0a5d64a94c50928879f2eb89f43e1f18f20f852f1fa7524", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling proc-macro2 v1.0.20 [INFO] [stderr] Compiling libloading v0.6.3 [INFO] [stderr] Compiling piston-float v1.0.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling rayon-core v1.8.0 [INFO] [stderr] Compiling syn v1.0.40 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Compiling piston-graphics_api_version v1.0.0 [INFO] [stderr] Compiling getrandom v0.2.1 [INFO] [stderr] Compiling either v1.6.0 [INFO] [stderr] Compiling weezl v0.1.3 [INFO] [stderr] Compiling interpolation v0.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling bytemuck v1.4.0 [INFO] [stderr] Compiling piston-texture v0.8.0 [INFO] [stderr] Compiling piston-shaders_graphics2d v0.4.0 [INFO] [stderr] Compiling wayland-sys v0.28.3 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling nom v6.0.1 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling rayon v1.4.0 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Compiling piston-viewport v1.0.0 [INFO] [stderr] Compiling vecmath v1.0.0 [INFO] [stderr] Compiling shader_version v0.7.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling png v0.16.7 [INFO] [stderr] Compiling gif v0.11.1 [INFO] [stderr] Compiling piston2d-graphics v0.39.0 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling crossbeam-channel v0.4.4 [INFO] [stderr] Compiling gl v0.13.0 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling wayland-scanner v0.28.3 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling parking_lot_core v0.8.2 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling rand_core v0.6.1 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling xcursor v0.3.3 [INFO] [stderr] Compiling wayland-client v0.28.3 [INFO] [stderr] Compiling wayland-protocols v0.28.3 [INFO] [stderr] Compiling rand v0.8.2 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling jpeg-decoder v0.1.20 [INFO] [stderr] Compiling wayland-commons v0.28.3 [INFO] [stderr] Compiling calloop v0.6.5 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling image v0.23.12 [INFO] [stderr] Compiling wayland-cursor v0.28.3 [INFO] [stderr] Compiling wayland-egl v0.28.3 [INFO] [stderr] Compiling piston2d-opengl_graphics v0.77.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.12.2 [INFO] [stderr] Compiling pistoncore-input v1.0.0 [INFO] [stderr] Compiling winit v0.24.0 [INFO] [stderr] Compiling pistoncore-window v0.47.0 [INFO] [stderr] Compiling pistoncore-event_loop v0.52.0 [INFO] [stderr] Compiling piston v0.52.1 [INFO] [stderr] Compiling glutin v0.26.0 [INFO] [stderr] Compiling pistoncore-glutin_window v0.68.0 [INFO] [stderr] Compiling strategy_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `cell_pix_width` [INFO] [stdout] --> src/game.rs:679:14 [INFO] [stdout] | [INFO] [stdout] 679 | let (cell_pix_width, cell_pix_height) = self.cell_pixel(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cell_pix_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut glyphs: GlyphCache = GlyphCache::new("fonts/Consolas.ttf", (), texture_settings).expect("Failed to load font !"); [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: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/game.rs:372:41 [INFO] [stdout] | [INFO] [stdout] 360 | ... if let Some(underlying_unit) = &self.unit_map[(released_map_cell[0], released_map_cell[1])] { [INFO] [stdout] | ------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 372 | ... self.activate_unit(underlying_unit.position); [INFO] [stdout] | ^^^^ ------------------------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `position` [INFO] [stdout] --> src/path_planning.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | position: (i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `neighbours_4c` [INFO] [stdout] --> src/path_planning.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn neighbours_4c(position: (i32, i32), map_size: (i32, i32)) -> Vec<(i32, i32)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reconstruct_path` [INFO] [stdout] --> src/path_planning.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn reconstruct_path(current: (i32, i32), best_previous_node: HashMap<(i32, i32), (i32, i32)>) -> VecDeque<(i32, i32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `astar_2d_map_4c` [INFO] [stdout] --> src/path_planning.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn astar_2d_map_4c(start: (i32, i32), goal: (i32, i32), map_size: (i32, i32), distance: &impl Distance2D, heuristic: &impl Distance2D... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_in_window` [INFO] [stdout] --> src/game.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | fn is_in_window(&self, window_position: (f64, f64)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:698:21 [INFO] [stdout] | [INFO] [stdout] 698 | / player_text.draw(player.to_string().as_str() , self.glyphs.as_mut().unwrap(), [INFO] [stdout] 699 | | &draw_state::DrawState::default(), c.transform.trans(x, y + font_size as f64), [INFO] [stdout] 700 | | self.gl.as_mut().unwrap()); [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 49.43s [INFO] running `Command { std: "docker" "inspect" "204e025a558d1c6ef0a5d64a94c50928879f2eb89f43e1f18f20f852f1fa7524", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "204e025a558d1c6ef0a5d64a94c50928879f2eb89f43e1f18f20f852f1fa7524", kill_on_drop: false }` [INFO] [stdout] 204e025a558d1c6ef0a5d64a94c50928879f2eb89f43e1f18f20f852f1fa7524 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db392b32817b0ef6286ec505aaf90693110a61afcab8d78c272f15fba0230344 [INFO] running `Command { std: "docker" "start" "-a" "db392b32817b0ef6286ec505aaf90693110a61afcab8d78c272f15fba0230344", 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] [stderr] Compiling strategy_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `cell_pix_width` [INFO] [stdout] --> src/game.rs:679:14 [INFO] [stdout] | [INFO] [stdout] 679 | let (cell_pix_width, cell_pix_height) = self.cell_pixel(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cell_pix_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut glyphs: GlyphCache = GlyphCache::new("fonts/Consolas.ttf", (), texture_settings).expect("Failed to load font !"); [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: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/game.rs:372:41 [INFO] [stdout] | [INFO] [stdout] 360 | ... if let Some(underlying_unit) = &self.unit_map[(released_map_cell[0], released_map_cell[1])] { [INFO] [stdout] | ------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 372 | ... self.activate_unit(underlying_unit.position); [INFO] [stdout] | ^^^^ ------------------------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `position` [INFO] [stdout] --> src/path_planning.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | position: (i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `neighbours_4c` [INFO] [stdout] --> src/path_planning.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn neighbours_4c(position: (i32, i32), map_size: (i32, i32)) -> Vec<(i32, i32)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reconstruct_path` [INFO] [stdout] --> src/path_planning.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn reconstruct_path(current: (i32, i32), best_previous_node: HashMap<(i32, i32), (i32, i32)>) -> VecDeque<(i32, i32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `astar_2d_map_4c` [INFO] [stdout] --> src/path_planning.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn astar_2d_map_4c(start: (i32, i32), goal: (i32, i32), map_size: (i32, i32), distance: &impl Distance2D, heuristic: &impl Distance2D... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_in_window` [INFO] [stdout] --> src/game.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | fn is_in_window(&self, window_position: (f64, f64)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:698:21 [INFO] [stdout] | [INFO] [stdout] 698 | / player_text.draw(player.to_string().as_str() , self.glyphs.as_mut().unwrap(), [INFO] [stdout] 699 | | &draw_state::DrawState::default(), c.transform.trans(x, y + font_size as f64), [INFO] [stdout] 700 | | self.gl.as_mut().unwrap()); [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.19s [INFO] running `Command { std: "docker" "inspect" "db392b32817b0ef6286ec505aaf90693110a61afcab8d78c272f15fba0230344", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db392b32817b0ef6286ec505aaf90693110a61afcab8d78c272f15fba0230344", kill_on_drop: false }` [INFO] [stdout] db392b32817b0ef6286ec505aaf90693110a61afcab8d78c272f15fba0230344 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e0a76983f25db050a72b6365e1e66134ff02da5e2901ebd0a9618d8ae19e3396 [INFO] running `Command { std: "docker" "start" "-a" "e0a76983f25db050a72b6365e1e66134ff02da5e2901ebd0a9618d8ae19e3396", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `cell_pix_width` [INFO] [stderr] --> src/game.rs:679:14 [INFO] [stderr] | [INFO] [stderr] 679 | let (cell_pix_width, cell_pix_height) = self.cell_pixel(); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cell_pix_width` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 35 | let mut glyphs: GlyphCache = GlyphCache::new("fonts/Consolas.ttf", (), texture_settings).expect("Failed to load font !"); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/game.rs:372:41 [INFO] [stderr] | [INFO] [stderr] 360 | ... if let Some(underlying_unit) = &self.unit_map[(released_map_cell[0], released_map_cell[1])] { [INFO] [stderr] | ------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 372 | ... self.activate_unit(underlying_unit.position); [INFO] [stderr] | ^^^^ ------------------------ immutable borrow later used here [INFO] [stderr] | | [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: field is never read: `position` [INFO] [stderr] --> src/path_planning.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | position: (i32, i32), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `neighbours_4c` [INFO] [stderr] --> src/path_planning.rs:39:8 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn neighbours_4c(position: (i32, i32), map_size: (i32, i32)) -> Vec<(i32, i32)> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `reconstruct_path` [INFO] [stderr] --> src/path_planning.rs:51:8 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn reconstruct_path(current: (i32, i32), best_previous_node: HashMap<(i32, i32), (i32, i32)>) -> VecDeque<(i32, i32)> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `astar_2d_map_4c` [INFO] [stderr] --> src/path_planning.rs:63:8 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn astar_2d_map_4c(start: (i32, i32), goal: (i32, i32), map_size: (i32, i32), distance: &impl Distance2D, heuristic: &impl Distance2D... [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_in_window` [INFO] [stderr] --> src/game.rs:214:8 [INFO] [stderr] | [INFO] [stderr] 214 | fn is_in_window(&self, window_position: (f64, f64)) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/game.rs:698:21 [INFO] [stderr] | [INFO] [stderr] 698 | / player_text.draw(player.to_string().as_str() , self.glyphs.as_mut().unwrap(), [INFO] [stderr] 699 | | &draw_state::DrawState::default(), c.transform.trans(x, y + font_size as f64), [INFO] [stderr] 700 | | self.gl.as_mut().unwrap()); [INFO] [stderr] | |________________________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `strategy_game` (bin "strategy_game" test) generated 9 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/strategy_game-e901598f62fb0c40) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e0a76983f25db050a72b6365e1e66134ff02da5e2901ebd0a9618d8ae19e3396", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0a76983f25db050a72b6365e1e66134ff02da5e2901ebd0a9618d8ae19e3396", kill_on_drop: false }` [INFO] [stdout] e0a76983f25db050a72b6365e1e66134ff02da5e2901ebd0a9618d8ae19e3396