[INFO] cloning repository https://github.com/bateramos/hex-civ [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bateramos/hex-civ" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbateramos%2Fhex-civ", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbateramos%2Fhex-civ'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f2867c52e4e3762d4801bfb4b09177a05f194d5a [INFO] checking bateramos/hex-civ against master#e4106065bf1bb515935d5d024e8d9c86454e2b22 for pr-112160 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbateramos%2Fhex-civ" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bateramos/hex-civ on toolchain e4106065bf1bb515935d5d024e8d9c86454e2b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bateramos/hex-civ [INFO] finished tweaking git repo https://github.com/bateramos/hex-civ [INFO] tweaked toml for git repo https://github.com/bateramos/hex-civ written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/bateramos/hex-civ 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" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61745d72140a5ea12680854634789fd20e743ea7870ffb5df6b487e4f687a491 [INFO] running `Command { std: "docker" "start" "-a" "61745d72140a5ea12680854634789fd20e743ea7870ffb5df6b487e4f687a491", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61745d72140a5ea12680854634789fd20e743ea7870ffb5df6b487e4f687a491", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61745d72140a5ea12680854634789fd20e743ea7870ffb5df6b487e4f687a491", kill_on_drop: false }` [INFO] [stdout] 61745d72140a5ea12680854634789fd20e743ea7870ffb5df6b487e4f687a491 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0bfc90031565167757be19194fb715dc3060e6024ed975905c0ea8d5fe49abe6 [INFO] running `Command { std: "docker" "start" "-a" "0bfc90031565167757be19194fb715dc3060e6024ed975905c0ea8d5fe49abe6", kill_on_drop: false }` [INFO] [stderr] Compiling sfml-build v0.4.0 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling serde_derive v1.0.147 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling serde v1.0.147 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling unsafe-libyaml v0.2.8 [INFO] [stderr] Compiling itoa v1.0.6 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking widestring v0.4.3 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling csfml-system-sys v0.6.0 [INFO] [stderr] Compiling csfml-window-sys v0.6.0 [INFO] [stderr] Compiling csfml-graphics-sys v0.6.0 [INFO] [stderr] Compiling csfml-audio-sys v0.6.0 [INFO] [stderr] Checking sfml v0.16.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Compiling darling_core v0.14.1 [INFO] [stderr] Compiling darling_macro v0.14.1 [INFO] [stderr] Compiling darling v0.14.1 [INFO] [stderr] Compiling derive_builder_core v0.11.2 [INFO] [stderr] Compiling derive_builder_macro v0.11.2 [INFO] [stderr] Checking derive_builder v0.11.2 [INFO] [stderr] Compiling serde_yaml v0.9.21 [INFO] [stderr] Compiling hex-civ v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/controllers/map_creation.rs:97:44 [INFO] [stdout] | [INFO] [stdout] 97 | lines.iter_mut().for_each(|mut hex| { [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/controllers/map_creation.rs:97:44 [INFO] [stdout] | [INFO] [stdout] 97 | lines.iter_mut().for_each(|mut hex| { [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/controllers/city_build_event.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | let mut hex = state.get_hex_with_position_mut(position.x, position.y); [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/controllers/city_build_event.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | let mut hex = state.get_hex_with_position_mut(position.x, position.y); [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/controllers/unit_transform_hex_event.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let mut hex = state.get_hex_with_position_mut(position.x, position.y); [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/controllers/unit_transform_hex_event.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let mut hex = state.get_hex_with_position_mut(position.x, position.y); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Gold` is never constructed [INFO] [stdout] --> src/entities/resource_generation.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ResourceType { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 5 | Food, Mineral, Wood, Gold [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_top_position` is never used [INFO] [stdout] --> src/utils/location.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn get_top_position(position: &Vector2i) -> Vector2i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_bottom_position` is never used [INFO] [stdout] --> src/utils/location.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_bottom_position(position: &Vector2i) -> Vector2i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CENTER` is never constructed [INFO] [stdout] --> src/components/component.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum YAnchor { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 14 | TOP, [INFO] [stdout] 15 | CENTER, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `YAnchor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Gold` is never constructed [INFO] [stdout] --> src/entities/resource_generation.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ResourceType { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 5 | Food, Mineral, Wood, Gold [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_top_position` is never used [INFO] [stdout] --> src/utils/location.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn get_top_position(position: &Vector2i) -> Vector2i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_bottom_position` is never used [INFO] [stdout] --> src/utils/location.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_bottom_position(position: &Vector2i) -> Vector2i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CENTER` is never constructed [INFO] [stdout] --> src/components/component.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum YAnchor { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 14 | TOP, [INFO] [stdout] 15 | CENTER, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `YAnchor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.86s [INFO] running `Command { std: "docker" "inspect" "0bfc90031565167757be19194fb715dc3060e6024ed975905c0ea8d5fe49abe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bfc90031565167757be19194fb715dc3060e6024ed975905c0ea8d5fe49abe6", kill_on_drop: false }` [INFO] [stdout] 0bfc90031565167757be19194fb715dc3060e6024ed975905c0ea8d5fe49abe6