[INFO] cloning repository https://github.com/TherieI/FortunesOfCatan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TherieI/FortunesOfCatan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTherieI%2FFortunesOfCatan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTherieI%2FFortunesOfCatan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c202933dde5f601ee3e72d7aedc80dff56b8906 [INFO] building TherieI/FortunesOfCatan against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTherieI%2FFortunesOfCatan" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TherieI/FortunesOfCatan on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TherieI/FortunesOfCatan [INFO] finished tweaking git repo https://github.com/TherieI/FortunesOfCatan [INFO] tweaked toml for git repo https://github.com/TherieI/FortunesOfCatan written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/TherieI/FortunesOfCatan 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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 45c86279575c8b923e76ac2988fbee0d03ad590ea1ef2b95393bdac4b42fa3e5 [INFO] running `Command { std: "docker" "start" "-a" "45c86279575c8b923e76ac2988fbee0d03ad590ea1ef2b95393bdac4b42fa3e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "45c86279575c8b923e76ac2988fbee0d03ad590ea1ef2b95393bdac4b42fa3e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45c86279575c8b923e76ac2988fbee0d03ad590ea1ef2b95393bdac4b42fa3e5", kill_on_drop: false }` [INFO] [stdout] 45c86279575c8b923e76ac2988fbee0d03ad590ea1ef2b95393bdac4b42fa3e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc50dd763755b21a874234eb7f82dd06efb99542d69474ae9de318d5a046986c [INFO] running `Command { std: "docker" "start" "-a" "fc50dd763755b21a874234eb7f82dd06efb99542d69474ae9de318d5a046986c", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling pkg-config v0.3.29 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling libloading v0.8.1 [INFO] [stderr] Compiling xml-rs v0.8.19 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling bytemuck v1.14.3 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling miniz_oxide v0.7.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling strict-num v0.1.1 [INFO] [stderr] Compiling cursor-icon v1.1.0 [INFO] [stderr] Compiling xkeysym v0.2.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling wayland-sys v0.31.1 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling ttf-parser v0.20.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling arrayref v0.3.7 [INFO] [stderr] Compiling xcursor v0.3.5 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling smithay-client-toolkit v0.18.1 [INFO] [stderr] Compiling quick-xml v0.31.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling memmap2 v0.9.4 [INFO] [stderr] Compiling tiny-skia-path v0.11.4 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling winit v0.29.10 [INFO] [stderr] Compiling glutin v0.31.2 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling as-raw-xcb-connection v1.0.1 [INFO] [stderr] Compiling x11rb-protocol v0.13.0 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling tiny-skia v0.11.4 [INFO] [stderr] Compiling wayland-scanner v0.31.1 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling xkbcommon-dl v0.4.1 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling glutin-winit v0.4.2 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling glutin_egl_sys v0.6.0 [INFO] [stderr] Compiling glutin_glx_sys v0.5.0 [INFO] [stderr] Compiling rayon v1.8.1 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling owned_ttf_parser v0.20.0 [INFO] [stderr] Compiling gimli v0.28.1 [INFO] [stderr] Compiling wayland-backend v0.3.3 [INFO] [stderr] Compiling imgui-sys v0.11.0 [INFO] [stderr] Compiling ab_glyph v0.2.23 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Compiling smol_str v0.2.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling raw-window-handle v0.6.0 [INFO] [stderr] Compiling glium v0.34.0 (https://github.com/glium/glium#4d2ac02f) [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Compiling half v2.3.1 [INFO] [stderr] Compiling chlorine v1.0.10 [INFO] [stderr] Compiling mint v0.5.9 [INFO] [stderr] Compiling rustc-demangle v0.1.23 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling gif v0.12.0 [INFO] [stderr] Compiling png v0.17.11 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling exr v1.72.0 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling takeable-option v0.5.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling addr2line v0.21.0 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling image v0.24.8 [INFO] [stderr] Compiling polling v3.4.0 [INFO] [stderr] Compiling calloop v0.12.4 [INFO] [stderr] Compiling wayland-client v0.31.2 [INFO] [stderr] Compiling wayland-csd-frame v0.3.0 [INFO] [stderr] Compiling wayland-protocols v0.31.2 [INFO] [stderr] Compiling wayland-cursor v0.31.1 [INFO] [stderr] Compiling calloop-wayland-source v0.2.0 [INFO] [stderr] Compiling imgui v0.11.0 [INFO] [stderr] Compiling wayland-protocols-wlr v0.2.0 [INFO] [stderr] Compiling wayland-protocols-plasma v0.2.0 [INFO] [stderr] Compiling x11rb v0.13.0 [INFO] [stderr] Compiling sctk-adwaita v0.8.1 [INFO] [stderr] Compiling settlers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/settlers/board/building.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{borrow::Borrow, rc::Rc, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `settlers::matrix::Vec3` [INFO] [stdout] --> src/settlers/board/map.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{rand::Rng, settlers::matrix::Vec3}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/settlers/board/card.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | Resource::Desert(c) => 0, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SETTLEMENT_PATH` is never used [INFO] [stdout] --> src/settlers/board/building.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const SETTLEMENT_PATH: &'static str = "../../../assets/structures/settlement.png"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_structure` and `set_color` are never used [INFO] [stdout] --> src/settlers/board/building.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl BuildingVertex { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn set_structure(&mut self, structure: &Structure) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn set_color(&mut self, color_id: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Road`, `Settlement`, and `City` are never constructed [INFO] [stdout] --> src/settlers/board/building.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum Structure { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 56 | Road { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | Settlement { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | City { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Structure` 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: method `collect_resources` is never used [INFO] [stdout] --> src/settlers/board/building.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl Structure { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 70 | /// Return resource for the player based on structure [INFO] [stdout] 71 | pub fn collect_resources(&self, roll: u8) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `chance` is never used [INFO] [stdout] --> src/settlers/board/card.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Resource { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn chance(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/settlers/board/building.rs:79:50 [INFO] [stdout] | [INFO] [stdout] 79 | if let Some(hex) = hex_option.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option>` does not implement `Borrow`, so calling `borrow` on `&Option>` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 79 - if let Some(hex) = hex_option.borrow() { [INFO] [stdout] 79 + if let Some(hex) = hex_option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/settlers/board/building.rs:92:50 [INFO] [stdout] | [INFO] [stdout] 92 | if let Some(hex) = hex_option.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option>` does not implement `Borrow`, so calling `borrow` on `&Option>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 92 - if let Some(hex) = hex_option.borrow() { [INFO] [stdout] 92 + if let Some(hex) = hex_option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 26s [INFO] running `Command { std: "docker" "inspect" "fc50dd763755b21a874234eb7f82dd06efb99542d69474ae9de318d5a046986c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc50dd763755b21a874234eb7f82dd06efb99542d69474ae9de318d5a046986c", kill_on_drop: false }` [INFO] [stdout] fc50dd763755b21a874234eb7f82dd06efb99542d69474ae9de318d5a046986c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c69cdd88979dacc3d9fcae6c493b25e0b62f413bf17a01cbab4a2af1f5f4d62e [INFO] running `Command { std: "docker" "start" "-a" "c69cdd88979dacc3d9fcae6c493b25e0b62f413bf17a01cbab4a2af1f5f4d62e", kill_on_drop: false }` [INFO] [stderr] Compiling settlers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/settlers/board/building.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{borrow::Borrow, rc::Rc, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `settlers::matrix::Vec3` [INFO] [stdout] --> src/settlers/board/map.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{rand::Rng, settlers::matrix::Vec3}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/settlers/board/card.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | Resource::Desert(c) => 0, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SETTLEMENT_PATH` is never used [INFO] [stdout] --> src/settlers/board/building.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const SETTLEMENT_PATH: &'static str = "../../../assets/structures/settlement.png"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hexes` is never read [INFO] [stdout] --> src/settlers/board/building.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 63 | City { [INFO] [stdout] | ---- field in this variant [INFO] [stdout] 64 | position: Vec3, [INFO] [stdout] 65 | hexes: [Option>; 3], [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Structure` 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: variants `Road` and `Settlement` are never constructed [INFO] [stdout] --> src/settlers/board/building.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum Structure { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 56 | Road { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | Settlement { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Structure` 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: method `collect_resources` is never used [INFO] [stdout] --> src/settlers/board/building.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl Structure { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 70 | /// Return resource for the player based on structure [INFO] [stdout] 71 | pub fn collect_resources(&self, roll: u8) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `chance` is never used [INFO] [stdout] --> src/settlers/board/card.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Resource { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn chance(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/settlers/board/building.rs:79:50 [INFO] [stdout] | [INFO] [stdout] 79 | if let Some(hex) = hex_option.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option>` does not implement `Borrow`, so calling `borrow` on `&Option>` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 79 - if let Some(hex) = hex_option.borrow() { [INFO] [stdout] 79 + if let Some(hex) = hex_option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/settlers/board/building.rs:92:50 [INFO] [stdout] | [INFO] [stdout] 92 | if let Some(hex) = hex_option.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option>` does not implement `Borrow`, so calling `borrow` on `&Option>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 92 - if let Some(hex) = hex_option.borrow() { [INFO] [stdout] 92 + if let Some(hex) = hex_option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.86s [INFO] running `Command { std: "docker" "inspect" "c69cdd88979dacc3d9fcae6c493b25e0b62f413bf17a01cbab4a2af1f5f4d62e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c69cdd88979dacc3d9fcae6c493b25e0b62f413bf17a01cbab4a2af1f5f4d62e", kill_on_drop: false }` [INFO] [stdout] c69cdd88979dacc3d9fcae6c493b25e0b62f413bf17a01cbab4a2af1f5f4d62e