[INFO] cloning repository https://github.com/sean-a-m/r3453 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sean-a-m/r3453" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsean-a-m%2Fr3453", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsean-a-m%2Fr3453'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e31e0e56a8306180bd1e36571bbc3fd21bbfd51d [INFO] checking sean-a-m/r3453/e31e0e56a8306180bd1e36571bbc3fd21bbfd51d against master#90384941aae4ea38de00e4702b50757e9b882a19 for pr-138340 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsean-a-m%2Fr3453" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sean-a-m/r3453 on toolchain 90384941aae4ea38de00e4702b50757e9b882a19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+90384941aae4ea38de00e4702b50757e9b882a19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sean-a-m/r3453 [INFO] finished tweaking git repo https://github.com/sean-a-m/r3453 [INFO] tweaked toml for git repo https://github.com/sean-a-m/r3453 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sean-a-m/r3453 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" "+90384941aae4ea38de00e4702b50757e9b882a19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+90384941aae4ea38de00e4702b50757e9b882a19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b2fca8b739ba5c839fe93d16a591e437244f79b5aecb6a3aeeece1434061b469 [INFO] running `Command { std: "docker" "start" "-a" "b2fca8b739ba5c839fe93d16a591e437244f79b5aecb6a3aeeece1434061b469", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b2fca8b739ba5c839fe93d16a591e437244f79b5aecb6a3aeeece1434061b469", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2fca8b739ba5c839fe93d16a591e437244f79b5aecb6a3aeeece1434061b469", kill_on_drop: false }` [INFO] [stdout] b2fca8b739ba5c839fe93d16a591e437244f79b5aecb6a3aeeece1434061b469 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+90384941aae4ea38de00e4702b50757e9b882a19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64e22ac88a5282144d832bfdfe0e3ba6827d4beb90eafa0464362160966a10bd [INFO] running `Command { std: "docker" "start" "-a" "64e22ac88a5282144d832bfdfe0e3ba6827d4beb90eafa0464362160966a10bd", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.41 [INFO] [stderr] Checking cfg-if v0.1.3 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking uuid v0.6.5 [INFO] [stderr] Checking r3453 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::data::Point` [INFO] [stdout] --> src/components/objects.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::data::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::zone::Zone` [INFO] [stdout] --> src/components/objects.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::zone::Zone; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/components/objects.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `loader::LoaderType` [INFO] [stdout] --> src/components/gamedata.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use loader::LoaderType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Being` and `GameObject` [INFO] [stdout] --> src/components/gameobject.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use super::objects::{Being, GameObject, ObjectType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num` [INFO] [stdout] --> src/components/mapgen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::num; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashZone` and `Zone` [INFO] [stdout] --> src/main.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use components::zone::{HashZone, Zone}; [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `loader::LoaderType` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use loader::LoaderType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `non_ascii_idents` has been stable since 1.53.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(non_ascii_idents)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/components/gamedata.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | beings: HashMap>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | beings: HashMap>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/components/gamedata.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_beings(&self) -> &HashMap> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_beings(&self) -> &HashMap> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/components/gamedata.rs:60:52 [INFO] [stdout] | [INFO] [stdout] 60 | fn load_game_object(&self, gtype: &str) -> Box { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 60 | fn load_game_object(&self, gtype: &str) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/resource/loader.rs:12:49 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn load_game_type(name: &str) -> Result, &'static str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | pub fn load_game_type(name: &str) -> Result, &'static str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::data::Point` [INFO] [stdout] --> src/components/objects.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::data::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::zone::Zone` [INFO] [stdout] --> src/components/objects.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::zone::Zone; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/components/objects.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `loader::LoaderType` [INFO] [stdout] --> src/components/gamedata.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use loader::LoaderType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Being` and `GameObject` [INFO] [stdout] --> src/components/gameobject.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use super::objects::{Being, GameObject, ObjectType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num` [INFO] [stdout] --> src/components/mapgen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::num; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashZone` and `Zone` [INFO] [stdout] --> src/main.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use components::zone::{HashZone, Zone}; [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `loader::LoaderType` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use loader::LoaderType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `non_ascii_idents` has been stable since 1.53.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(non_ascii_idents)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/components/gamedata.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | beings: HashMap>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | beings: HashMap>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameObject` [INFO] [stdout] --> src/main.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use components::objects::{GameObject, ObjectType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_object_ref` [INFO] [stdout] --> src/components/gamedata.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let game_object_ref = self.beings.get(&object_type).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_object_ref` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_object_ref` [INFO] [stdout] --> src/components/gamedata.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let game_object_ref = self.beings.get(&object_type).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_object_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Good` is never constructed [INFO] [stdout] --> src/components/objects.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Alignment { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 15 | Good, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vitals`, `physics`, and `alignment` are never read [INFO] [stdout] --> src/components/objects.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Being { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 21 | pub object_type: ObjectType, [INFO] [stdout] 22 | pub vitals: Vitals, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub physics: Physics, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 24 | pub alignment: Alignment, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Movement` is never constructed [INFO] [stdout] --> src/components/objects.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Movement { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interaction` is never constructed [INFO] [stdout] --> src/components/objects.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Interaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alignment` is never read [INFO] [stdout] --> src/components/objects.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct ImmaterialBeing { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 40 | pub object_type: ObjectType, [INFO] [stdout] 41 | pub alignment: Alignment, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `physical_integrity` and `spiritual_integrity` are never read [INFO] [stdout] --> src/components/objects.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Vitals { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 45 | pub physical_integrity: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | pub spiritual_integrity: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `matter_state`, `weight`, `traversal_cost`, `traversable`, and `blocks_sight` are never read [INFO] [stdout] --> src/components/objects.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Physics { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 50 | pub matter_state: MatterState, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 51 | pub weight: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | pub traversal_cost: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 53 | pub traversable: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 54 | pub blocks_sight: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Liquid`, `Gas`, and `Plasma` are never constructed [INFO] [stdout] --> src/components/objects.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum MatterState { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 58 | Solid, [INFO] [stdout] 59 | Liquid, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 60 | Gas, [INFO] [stdout] | ^^^ [INFO] [stdout] 61 | Plasma, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_at_coords` is never used [INFO] [stdout] --> src/components/zone.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Zone { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] ... [INFO] [stdout] 8 | fn get_at_coords(&self, coords: &Point) -> Option<&HashSet>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `list_all_things` is never used [INFO] [stdout] --> src/components/zone.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl HashZone { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | fn list_all_things(&self) -> Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `instantiate_being` is never used [INFO] [stdout] --> src/components/gamedata.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a> GameData { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn instantiate_being(&mut self, object_type: ObjectType) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vital_state` is never read [INFO] [stdout] --> src/components/gameobject.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct InstantiatedBeing { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | vital_state: VitalState, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `physical_damage` and `spiritual_damage` are never read [INFO] [stdout] --> src/components/gameobject.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct VitalState { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 15 | physical_damage: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | spiritual_damage: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_position` is never used [INFO] [stdout] --> src/components/gameobject.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub trait Localizable { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 44 | fn get_position<'a, T: Zone>(&self, this_zone: &'a T) -> &'a Point; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_line` is never used [INFO] [stdout] --> src/components/mapgen.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn make_line(start: &Point, end: &Point) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_hollow_rectange` is never used [INFO] [stdout] --> src/components/mapgen.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn make_hollow_rectange(top_left: &Point, bottom_right: &Point) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoaderType` is never used [INFO] [stdout] --> src/resource/loader.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum LoaderType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Δx` should have a snake case name [INFO] [stdout] --> src/components/mapgen.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let Δx: f32 = end.x as f32 - start.x as f32; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `δx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Δy` should have a snake case name [INFO] [stdout] --> src/components/mapgen.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let Δy: f32 = end.y as f32 - start.y as f32; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `δy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Δerr` should have a snake case name [INFO] [stdout] --> src/components/mapgen.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let Δerr = (Δy/Δx).abs(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `δerr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/components/gamedata.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_beings(&self) -> &HashMap> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_beings(&self) -> &HashMap> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/components/gamedata.rs:60:52 [INFO] [stdout] | [INFO] [stdout] 60 | fn load_game_object(&self, gtype: &str) -> Box { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 60 | fn load_game_object(&self, gtype: &str) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/resource/loader.rs:12:49 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn load_game_type(name: &str) -> Result, &'static str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | pub fn load_game_type(name: &str) -> Result, &'static str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameObject` [INFO] [stdout] --> src/main.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use components::objects::{GameObject, ObjectType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_object_ref` [INFO] [stdout] --> src/components/gamedata.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let game_object_ref = self.beings.get(&object_type).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_object_ref` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_object_ref` [INFO] [stdout] --> src/components/gamedata.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let game_object_ref = self.beings.get(&object_type).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_object_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Good` is never constructed [INFO] [stdout] --> src/components/objects.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Alignment { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 15 | Good, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vitals`, `physics`, and `alignment` are never read [INFO] [stdout] --> src/components/objects.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Being { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 21 | pub object_type: ObjectType, [INFO] [stdout] 22 | pub vitals: Vitals, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub physics: Physics, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 24 | pub alignment: Alignment, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Movement` is never constructed [INFO] [stdout] --> src/components/objects.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Movement { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interaction` is never constructed [INFO] [stdout] --> src/components/objects.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Interaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alignment` is never read [INFO] [stdout] --> src/components/objects.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct ImmaterialBeing { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 40 | pub object_type: ObjectType, [INFO] [stdout] 41 | pub alignment: Alignment, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `physical_integrity` and `spiritual_integrity` are never read [INFO] [stdout] --> src/components/objects.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Vitals { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 45 | pub physical_integrity: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | pub spiritual_integrity: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `matter_state`, `weight`, `traversal_cost`, `traversable`, and `blocks_sight` are never read [INFO] [stdout] --> src/components/objects.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Physics { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 50 | pub matter_state: MatterState, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 51 | pub weight: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | pub traversal_cost: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 53 | pub traversable: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 54 | pub blocks_sight: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Liquid`, `Gas`, and `Plasma` are never constructed [INFO] [stdout] --> src/components/objects.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum MatterState { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 58 | Solid, [INFO] [stdout] 59 | Liquid, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 60 | Gas, [INFO] [stdout] | ^^^ [INFO] [stdout] 61 | Plasma, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_at_coords` is never used [INFO] [stdout] --> src/components/zone.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Zone { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] ... [INFO] [stdout] 8 | fn get_at_coords(&self, coords: &Point) -> Option<&HashSet>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `list_all_things` is never used [INFO] [stdout] --> src/components/zone.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl HashZone { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | fn list_all_things(&self) -> Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `instantiate_being` is never used [INFO] [stdout] --> src/components/gamedata.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a> GameData { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn instantiate_being(&mut self, object_type: ObjectType) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vital_state` is never read [INFO] [stdout] --> src/components/gameobject.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct InstantiatedBeing { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | vital_state: VitalState, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `physical_damage` and `spiritual_damage` are never read [INFO] [stdout] --> src/components/gameobject.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct VitalState { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 15 | physical_damage: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | spiritual_damage: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_position` is never used [INFO] [stdout] --> src/components/gameobject.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub trait Localizable { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 44 | fn get_position<'a, T: Zone>(&self, this_zone: &'a T) -> &'a Point; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_line` is never used [INFO] [stdout] --> src/components/mapgen.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn make_line(start: &Point, end: &Point) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_hollow_rectange` is never used [INFO] [stdout] --> src/components/mapgen.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn make_hollow_rectange(top_left: &Point, bottom_right: &Point) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoaderType` is never used [INFO] [stdout] --> src/resource/loader.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum LoaderType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Δx` should have a snake case name [INFO] [stdout] --> src/components/mapgen.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let Δx: f32 = end.x as f32 - start.x as f32; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `δx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Δy` should have a snake case name [INFO] [stdout] --> src/components/mapgen.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let Δy: f32 = end.y as f32 - start.y as f32; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `δy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Δerr` should have a snake case name [INFO] [stdout] --> src/components/mapgen.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let Δerr = (Δy/Δx).abs(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `δerr` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.45s [INFO] running `Command { std: "docker" "inspect" "64e22ac88a5282144d832bfdfe0e3ba6827d4beb90eafa0464362160966a10bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64e22ac88a5282144d832bfdfe0e3ba6827d4beb90eafa0464362160966a10bd", kill_on_drop: false }` [INFO] [stdout] 64e22ac88a5282144d832bfdfe0e3ba6827d4beb90eafa0464362160966a10bd