[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 try#024378d9203a4009ed73d6db2681b88a8d74ce7a 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-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bateramos/hex-civ on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "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-tc2/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" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f08e19b242394d546fe92e1fc9e254345d0066f7001d2aa0716d509bb581a5ab [INFO] running `Command { std: "docker" "start" "-a" "f08e19b242394d546fe92e1fc9e254345d0066f7001d2aa0716d509bb581a5ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f08e19b242394d546fe92e1fc9e254345d0066f7001d2aa0716d509bb581a5ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f08e19b242394d546fe92e1fc9e254345d0066f7001d2aa0716d509bb581a5ab", kill_on_drop: false }` [INFO] [stdout] f08e19b242394d546fe92e1fc9e254345d0066f7001d2aa0716d509bb581a5ab [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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ffe8fb7239eca579e5a6c6d79db01c21f38e729d3c73568999862e530cf92bf4 [INFO] running `Command { std: "docker" "start" "-a" "ffe8fb7239eca579e5a6c6d79db01c21f38e729d3c73568999862e530cf92bf4", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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 fnv v1.0.7 [INFO] [stderr] Compiling serde_derive v1.0.147 [INFO] [stderr] Compiling strsim v0.10.0 [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/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/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: 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] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/events.rs:16:80 [INFO] [stdout] | [INFO] [stdout] 16 | EVENTS_IMAGES_DESCRIPTIONS.iter().find(|e| e.event == event).unwrap().image.clone() [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/events.rs:20:86 [INFO] [stdout] | [INFO] [stdout] 20 | EVENTS_IMAGES_DESCRIPTIONS.iter().find(|e| e.event == event).unwrap().description.clone() [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hex-civ` (bin "hex-civ") due to 3 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/events.rs:16:80 [INFO] [stdout] | [INFO] [stdout] 16 | EVENTS_IMAGES_DESCRIPTIONS.iter().find(|e| e.event == event).unwrap().image.clone() [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/events.rs:20:86 [INFO] [stdout] | [INFO] [stdout] 20 | EVENTS_IMAGES_DESCRIPTIONS.iter().find(|e| e.event == event).unwrap().description.clone() [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hex-civ` (bin "hex-civ" test) due to 3 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ffe8fb7239eca579e5a6c6d79db01c21f38e729d3c73568999862e530cf92bf4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffe8fb7239eca579e5a6c6d79db01c21f38e729d3c73568999862e530cf92bf4", kill_on_drop: false }` [INFO] [stdout] ffe8fb7239eca579e5a6c6d79db01c21f38e729d3c73568999862e530cf92bf4