[INFO] cloning repository https://github.com/Itszipzon/rust_practice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Itszipzon/rust_practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FItszipzon%2Frust_practice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FItszipzon%2Frust_practice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 516afa564b1b04d1902cd407b867e5eb5c3e4167 [INFO] building Itszipzon/rust_practice against master#eb171a227f9e5de5d376b6edb56b174bc8235fb3 for pr-149937 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FItszipzon%2Frust_practice" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Itszipzon/rust_practice [INFO] finished tweaking git repo https://github.com/Itszipzon/rust_practice [INFO] tweaked toml for git repo https://github.com/Itszipzon/rust_practice written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Itszipzon/rust_practice on toolchain eb171a227f9e5de5d376b6edb56b174bc8235fb3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eb171a227f9e5de5d376b6edb56b174bc8235fb3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Itszipzon/rust_practice 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" "+eb171a227f9e5de5d376b6edb56b174bc8235fb3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded emath v0.31.1 [INFO] [stderr] Downloaded epaint v0.31.1 [INFO] [stderr] Downloaded ecolor v0.31.1 [INFO] [stderr] Downloaded accesskit_unix v0.13.1 [INFO] [stderr] Downloaded egui-wgpu v0.31.1 [INFO] [stderr] Downloaded egui-winit v0.31.1 [INFO] [stderr] Downloaded arboard v3.5.0 [INFO] [stderr] Downloaded webbrowser v1.0.4 [INFO] [stderr] Downloaded eframe v0.31.1 [INFO] [stderr] Downloaded egui_glow v0.31.1 [INFO] [stderr] Downloaded accesskit_atspi_common v0.10.1 [INFO] [stderr] Downloaded wayland-protocols-wlr v0.3.6 [INFO] [stderr] Downloaded wgpu v24.0.3 [INFO] [stderr] Downloaded wgpu-core v24.0.2 [INFO] [stderr] Downloaded egui v0.31.1 [INFO] [stderr] Downloaded winit v0.30.10 [INFO] [stderr] Downloaded epaint_default_fonts v0.31.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+eb171a227f9e5de5d376b6edb56b174bc8235fb3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 28a71ddbc31e7ce4bae24fe5bb618075b69001fd186fd4b44f0b853bc88cfceb [INFO] running `Command { std: "docker" "start" "-a" "28a71ddbc31e7ce4bae24fe5bb618075b69001fd186fd4b44f0b853bc88cfceb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "28a71ddbc31e7ce4bae24fe5bb618075b69001fd186fd4b44f0b853bc88cfceb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28a71ddbc31e7ce4bae24fe5bb618075b69001fd186fd4b44f0b853bc88cfceb", kill_on_drop: false }` [INFO] [stdout] 28a71ddbc31e7ce4bae24fe5bb618075b69001fd186fd4b44f0b853bc88cfceb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+eb171a227f9e5de5d376b6edb56b174bc8235fb3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c9d34aa390de1ae6992d2b6b5584a707b5d7c623aeefebe19cdc91b0fb2b7a4 [INFO] running `Command { std: "docker" "start" "-a" "4c9d34aa390de1ae6992d2b6b5584a707b5d7c623aeefebe19cdc91b0fb2b7a4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling libloading v0.8.6 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling winnow v0.7.6 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling wayland-sys v0.31.6 [INFO] [stderr] Compiling toml_datetime v0.6.9 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling cc v1.2.19 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling quick-xml v0.37.4 [INFO] [stderr] Compiling wayland-client v0.31.10 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling futures-lite v2.6.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling toml_edit v0.22.26 [INFO] [stderr] Compiling wayland-backend v0.3.10 [INFO] [stderr] Compiling wayland-scanner v0.31.6 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling ttf-parser v0.25.1 [INFO] [stderr] Compiling async-fs v2.1.2 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling xdg-home v1.3.0 [INFO] [stderr] Compiling async-broadcast v0.7.2 [INFO] [stderr] Compiling xml-rs v0.8.26 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zvariant_utils v2.1.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling memmap2 v0.9.5 [INFO] [stderr] Compiling accesskit v0.17.1 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling owned_ttf_parser v0.25.0 [INFO] [stderr] Compiling ab_glyph v0.2.29 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling miniz_oxide v0.8.8 [INFO] [stderr] Compiling x11rb v0.13.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling enumflags2_derive v0.7.11 [INFO] [stderr] Compiling bytemuck_derive v1.9.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zvariant_derive v4.2.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling polling v3.7.4 [INFO] [stderr] Compiling bytemuck v1.22.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling async-io v2.4.0 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zbus_macros v4.4.0 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling wayland-protocols v0.32.8 [INFO] [stderr] Compiling calloop v0.13.0 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling calloop-wayland-source v0.3.0 [INFO] [stderr] Compiling wayland-cursor v0.31.8 [INFO] [stderr] Compiling wayland-csd-frame v0.3.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling tiny-skia-path v0.11.4 [INFO] [stderr] Compiling emath v0.31.1 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tiny-skia v0.11.4 [INFO] [stderr] Compiling winit v0.30.10 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling accesskit_consumer v0.26.0 [INFO] [stderr] Compiling ecolor v0.31.1 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling glutin_glx_sys v0.6.1 [INFO] [stderr] Compiling enumflags2 v0.7.11 [INFO] [stderr] Compiling quick-xml v0.30.0 [INFO] [stderr] Compiling zvariant v4.2.0 [INFO] [stderr] Compiling glutin_egl_sys v0.7.1 [INFO] [stderr] Compiling xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling epaint_default_fonts v0.31.1 [INFO] [stderr] Compiling profiling v1.0.16 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling epaint v0.31.1 [INFO] [stderr] Compiling glutin v0.32.3 [INFO] [stderr] Compiling glutin-winit v0.5.0 [INFO] [stderr] Compiling image v0.25.6 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling egui v0.31.1 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling zbus_names v3.0.0 [INFO] [stderr] Compiling wayland-protocols-wlr v0.3.6 [INFO] [stderr] Compiling wayland-protocols-plasma v0.3.8 [INFO] [stderr] Compiling zbus_xml v4.0.0 [INFO] [stderr] Compiling zbus v4.4.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling zbus-lockstep v0.4.4 [INFO] [stderr] Compiling smithay-client-toolkit v0.19.2 [INFO] [stderr] Compiling zbus-lockstep-macros v0.4.4 [INFO] [stderr] Compiling webbrowser v1.0.4 [INFO] [stderr] Compiling arboard v3.5.0 [INFO] [stderr] Compiling toml_write v0.1.1 [INFO] [stderr] Compiling glow v0.16.0 [INFO] [stderr] Compiling dirs-sys v0.5.0 [INFO] [stderr] Compiling sctk-adwaita v0.10.1 [INFO] [stderr] Compiling smithay-clipboard v0.7.2 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Compiling dirs v6.0.0 [INFO] [stderr] Compiling egui_glow v0.31.1 [INFO] [stderr] Compiling toml v0.8.22 [INFO] [stderr] Compiling atspi-common v0.6.0 [INFO] [stderr] Compiling atspi-proxies v0.6.0 [INFO] [stderr] Compiling accesskit_atspi_common v0.10.1 [INFO] [stderr] Compiling atspi-connection v0.6.0 [INFO] [stderr] Compiling atspi v0.22.0 [INFO] [stderr] Compiling accesskit_unix v0.13.1 [INFO] [stderr] Compiling accesskit_winit v0.23.1 [INFO] [stderr] Compiling egui-winit v0.31.1 [INFO] [stderr] Compiling eframe v0.31.1 [INFO] [stderr] Compiling main v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: enum `EntityKind` is never used [INFO] [stdout] --> src/entity/entity_kind.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum EntityKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | / entity_kind! { [INFO] [stdout] 60 | | Player => Player, [INFO] [stdout] 61 | | Chicken => Chicken, [INFO] [stdout] 62 | | Cow => Cow, [INFO] [stdout] 63 | | Skeleton => Skeleton, [INFO] [stdout] 64 | | Zombie => Zombie, [INFO] [stdout] 65 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `entity_kind` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Entity` is never used [INFO] [stdout] --> src/entity/entity.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Entity: Debug { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mana`, `active_item`, and `is_alive` are never read [INFO] [stdout] --> src/entity/entities/player.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub mana: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub inventory: Vec>>, [INFO] [stdout] 15 | pub active_item: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | pub is_alive: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/entity/entities/player.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 20 | impl Player { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn add_item(&mut self, item: Box) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn remove_item(&mut self, item: &Box) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn attack(&mut self, mut target: impl Entity) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn set_health(&mut self, health: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn get_health(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn set_mana(&mut self, mana: u32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn get_mana(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn set_active_item(&mut self, active_item: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn is_alive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | fn active_is_weapon(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Zombie` is never constructed [INFO] [stdout] --> src/entity/entities/zombie.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Zombie { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `attack`, `is_alive`, and `get_health` are never used [INFO] [stdout] --> src/entity/entities/zombie.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl Zombie { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(description: String, health: u32, damage: u32, is_alive: bool, hostile: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn attack(&self, mut target: impl Entity) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn is_alive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_health(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cow` is never constructed [INFO] [stdout] --> src/entity/entities/cow.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Cow { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_alive`, and `get_health` are never used [INFO] [stdout] --> src/entity/entities/cow.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl Cow { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(description: String, health: u32, damage: u32, is_alive: bool, hostile: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn is_alive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_health(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chicken` is never constructed [INFO] [stdout] --> src/entity/entities/chicken.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chicken { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_alive`, and `get_health` are never used [INFO] [stdout] --> src/entity/entities/chicken.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl Chicken { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 13 | pub fn new(description: String, health: u32, damage: u32, is_alive: bool, hostile: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn is_alive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_health(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Skeleton` is never constructed [INFO] [stdout] --> src/entity/entities/skeleton.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Skeleton { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_alive`, `get_health`, and `attack` are never used [INFO] [stdout] --> src/entity/entities/skeleton.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl Skeleton { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(description: String, health: u32, damage: u32, is_alive: bool, hostile: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn is_alive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_health(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn attack(&self, mut target: impl Entity) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 50s [INFO] running `Command { std: "docker" "inspect" "4c9d34aa390de1ae6992d2b6b5584a707b5d7c623aeefebe19cdc91b0fb2b7a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c9d34aa390de1ae6992d2b6b5584a707b5d7c623aeefebe19cdc91b0fb2b7a4", kill_on_drop: false }` [INFO] [stdout] 4c9d34aa390de1ae6992d2b6b5584a707b5d7c623aeefebe19cdc91b0fb2b7a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+eb171a227f9e5de5d376b6edb56b174bc8235fb3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a414027293b4660c19d1147e0fe5d974ba6eb3214c7e002885200acd3c5b011 [INFO] running `Command { std: "docker" "start" "-a" "0a414027293b4660c19d1147e0fe5d974ba6eb3214c7e002885200acd3c5b011", kill_on_drop: false }` [INFO] [stderr] Compiling main v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: enum `EntityKind` is never used [INFO] [stdout] --> src/entity/entity_kind.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum EntityKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | / entity_kind! { [INFO] [stdout] 60 | | Player => Player, [INFO] [stdout] 61 | | Chicken => Chicken, [INFO] [stdout] 62 | | Cow => Cow, [INFO] [stdout] 63 | | Skeleton => Skeleton, [INFO] [stdout] 64 | | Zombie => Zombie, [INFO] [stdout] 65 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `entity_kind` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Entity` is never used [INFO] [stdout] --> src/entity/entity.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Entity: Debug { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mana`, `active_item`, and `is_alive` are never read [INFO] [stdout] --> src/entity/entities/player.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub mana: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub inventory: Vec>>, [INFO] [stdout] 15 | pub active_item: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | pub is_alive: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/entity/entities/player.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 20 | impl Player { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn add_item(&mut self, item: Box) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn remove_item(&mut self, item: &Box) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn attack(&mut self, mut target: impl Entity) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn set_health(&mut self, health: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn get_health(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn set_mana(&mut self, mana: u32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn get_mana(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn set_active_item(&mut self, active_item: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn is_alive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | fn active_is_weapon(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Zombie` is never constructed [INFO] [stdout] --> src/entity/entities/zombie.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Zombie { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `attack`, `is_alive`, and `get_health` are never used [INFO] [stdout] --> src/entity/entities/zombie.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl Zombie { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(description: String, health: u32, damage: u32, is_alive: bool, hostile: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn attack(&self, mut target: impl Entity) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn is_alive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_health(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cow` is never constructed [INFO] [stdout] --> src/entity/entities/cow.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Cow { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_alive`, and `get_health` are never used [INFO] [stdout] --> src/entity/entities/cow.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl Cow { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(description: String, health: u32, damage: u32, is_alive: bool, hostile: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn is_alive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_health(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chicken` is never constructed [INFO] [stdout] --> src/entity/entities/chicken.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chicken { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_alive`, and `get_health` are never used [INFO] [stdout] --> src/entity/entities/chicken.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl Chicken { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 13 | pub fn new(description: String, health: u32, damage: u32, is_alive: bool, hostile: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn is_alive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_health(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Skeleton` is never constructed [INFO] [stdout] --> src/entity/entities/skeleton.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Skeleton { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_alive`, `get_health`, and `attack` are never used [INFO] [stdout] --> src/entity/entities/skeleton.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl Skeleton { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(description: String, health: u32, damage: u32, is_alive: bool, hostile: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn is_alive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_health(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn attack(&self, mut target: impl Entity) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.43s [INFO] running `Command { std: "docker" "inspect" "0a414027293b4660c19d1147e0fe5d974ba6eb3214c7e002885200acd3c5b011", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a414027293b4660c19d1147e0fe5d974ba6eb3214c7e002885200acd3c5b011", kill_on_drop: false }` [INFO] [stdout] 0a414027293b4660c19d1147e0fe5d974ba6eb3214c7e002885200acd3c5b011