[INFO] cloning repository https://github.com/NamesMark/void_post_prologue [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NamesMark/void_post_prologue" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNamesMark%2Fvoid_post_prologue", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNamesMark%2Fvoid_post_prologue'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56b618247ac08dfe315335d82e6714dfabe05fd5 [INFO] checking NamesMark/void_post_prologue against master#9f432d7b44d5c4ac0ce76fed8315ffac8dcab8f9 for pr-124108 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNamesMark%2Fvoid_post_prologue" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NamesMark/void_post_prologue on toolchain 9f432d7b44d5c4ac0ce76fed8315ffac8dcab8f9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9f432d7b44d5c4ac0ce76fed8315ffac8dcab8f9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NamesMark/void_post_prologue [INFO] finished tweaking git repo https://github.com/NamesMark/void_post_prologue [INFO] tweaked toml for git repo https://github.com/NamesMark/void_post_prologue written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/NamesMark/void_post_prologue 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" "+9f432d7b44d5c4ac0ce76fed8315ffac8dcab8f9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking NamesMark/void_post_prologue against try#2e5b7739e5167b731ad5eb628f04a54f932f1fe2 for pr-124108 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNamesMark%2Fvoid_post_prologue" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NamesMark/void_post_prologue on toolchain 2e5b7739e5167b731ad5eb628f04a54f932f1fe2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e5b7739e5167b731ad5eb628f04a54f932f1fe2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NamesMark/void_post_prologue [INFO] finished tweaking git repo https://github.com/NamesMark/void_post_prologue [INFO] tweaked toml for git repo https://github.com/NamesMark/void_post_prologue written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/NamesMark/void_post_prologue 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" "+2e5b7739e5167b731ad5eb628f04a54f932f1fe2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+2e5b7739e5167b731ad5eb628f04a54f932f1fe2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0425e2cc340bd7f2416a22c609f9081fdbb4248bf15789f49d88cccf6d4f1dbb [INFO] running `Command { std: "docker" "start" "-a" "0425e2cc340bd7f2416a22c609f9081fdbb4248bf15789f49d88cccf6d4f1dbb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0425e2cc340bd7f2416a22c609f9081fdbb4248bf15789f49d88cccf6d4f1dbb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0425e2cc340bd7f2416a22c609f9081fdbb4248bf15789f49d88cccf6d4f1dbb", kill_on_drop: false }` [INFO] [stdout] 0425e2cc340bd7f2416a22c609f9081fdbb4248bf15789f49d88cccf6d4f1dbb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+2e5b7739e5167b731ad5eb628f04a54f932f1fe2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 131be0a3523ec9265c5b27212cd0f6327e7b25477b01313da67419d2ce172984 [INFO] running `Command { std: "docker" "start" "-a" "131be0a3523ec9265c5b27212cd0f6327e7b25477b01313da67419d2ce172984", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling strum_macros v0.25.2 [INFO] [stderr] Checking voidlogue v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/engine/state.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::entity::{Entity, EntityId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Access` [INFO] [stdout] --> src/engine/state.rs:5:42 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::room::{RoomIdentifier, Access, Direction, PassageType}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/engine/actions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/engine/actions.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/engine/actions.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::entity::{Entity, EntityId, self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::GameState` [INFO] [stdout] --> src/engine/shuttle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::GameState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `furniture::Furniture` [INFO] [stdout] --> src/world/room.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::entity::{furniture::Furniture, EntityId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity` [INFO] [stdout] --> src/entity/item/container.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemId`, `Item` [INFO] [stdout] --> src/entity/item/food.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{Entity, EntityId, Item, ItemId}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Size` [INFO] [stdout] --> src/entity/item/food.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::Size; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity` [INFO] [stdout] --> src/entity/item/food.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{impl_entity}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/engine/state.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::entity::{Entity, EntityId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemId`, `Item` [INFO] [stdout] --> src/entity/item/text_item.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{Entity, EntityId, Item, ItemId}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Size` [INFO] [stdout] --> src/entity/item/text_item.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::Size; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity` [INFO] [stdout] --> src/entity/item/text_item.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{impl_entity}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Access` [INFO] [stdout] --> src/engine/state.rs:5:42 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::room::{RoomIdentifier, Access, Direction, PassageType}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/engine/actions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/engine/actions.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/engine/actions.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::entity::{Entity, EntityId, self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::GameState` [INFO] [stdout] --> src/engine/shuttle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::GameState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `furniture::Furniture` [INFO] [stdout] --> src/world/room.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::entity::{furniture::Furniture, EntityId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity` [INFO] [stdout] --> src/entity/item/container.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemId`, `Item` [INFO] [stdout] --> src/entity/item/food.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{Entity, EntityId, Item, ItemId}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Size` [INFO] [stdout] --> src/entity/item/food.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::Size; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity` [INFO] [stdout] --> src/entity/item/food.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{impl_entity}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemId`, `Item` [INFO] [stdout] --> src/entity/item/text_item.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{Entity, EntityId, Item, ItemId}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Size` [INFO] [stdout] --> src/entity/item/text_item.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::Size; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity` [INFO] [stdout] --> src/entity/item/text_item.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{impl_entity}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/entity/item/text_item.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | Ok((&self.contents)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - Ok((&self.contents)) [INFO] [stdout] 26 + Ok(&self.contents) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity_containable` [INFO] [stdout] --> src/entity/item/mod.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity_containable` [INFO] [stdout] --> src/entity/furniture/main_terminal.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Containable`, `ItemId`, `Usable` [INFO] [stdout] --> src/entity/furniture/main_terminal.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::entity::item::{ItemId, Containable, Usable}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `impl_entity_containable`, `impl_entity` [INFO] [stdout] --> src/entity/furniture/navigation_computer.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Containable`, `ItemId` [INFO] [stdout] --> src/entity/furniture/navigation_computer.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::entity::item::{ItemId, Containable, Usable}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity_containable` [INFO] [stdout] --> src/entity/furniture/sink.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Containable`, `ItemId` [INFO] [stdout] --> src/entity/furniture/sink.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::entity::item::{ItemId, Containable}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ItemId` [INFO] [stdout] --> src/entity/furniture/mod.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | use super::item::{ItemId, Containable}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity` [INFO] [stdout] --> src/entity/furniture/mod.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/entity/item/text_item.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | Ok((&self.contents)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - Ok((&self.contents)) [INFO] [stdout] 26 + Ok(&self.contents) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity_containable` [INFO] [stdout] --> src/entity/item/mod.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity_containable` [INFO] [stdout] --> src/entity/furniture/main_terminal.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Containable`, `ItemId`, `Usable` [INFO] [stdout] --> src/entity/furniture/main_terminal.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::entity::item::{ItemId, Containable, Usable}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `impl_entity_containable`, `impl_entity` [INFO] [stdout] --> src/entity/furniture/navigation_computer.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Containable`, `ItemId` [INFO] [stdout] --> src/entity/furniture/navigation_computer.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::entity::item::{ItemId, Containable, Usable}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity_containable` [INFO] [stdout] --> src/entity/furniture/sink.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Containable`, `ItemId` [INFO] [stdout] --> src/entity/furniture/sink.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::entity::item::{ItemId, Containable}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ItemId` [INFO] [stdout] --> src/entity/furniture/mod.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | use super::item::{ItemId, Containable}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_entity` [INFO] [stdout] --> src/entity/furniture/mod.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{impl_entity, impl_entity_containable}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/entity/furniture/main_terminal.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use super::{Entity, EntityId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/engine/tui.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::entity::{Entity, EntityId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/entity/furniture/sink.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use super::{Entity, EntityId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/entity/furniture/main_terminal.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use super::{Entity, EntityId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/engine/tui.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::entity::{Entity, EntityId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/entity/furniture/sink.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use super::{Entity, EntityId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_state` [INFO] [stdout] --> src/engine/actions.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn open(game_state: &GameState, obj: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_state` [INFO] [stdout] --> src/engine/actions.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn close(game_state: &GameState, obj: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entity` [INFO] [stdout] --> src/engine/actions.rs:202:25 [INFO] [stdout] | [INFO] [stdout] 202 | if let Some(entity) = game_state.world.entities.get(&entity_id) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_entity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_state` [INFO] [stdout] --> src/engine/actions.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn open(game_state: &GameState, obj: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `article` [INFO] [stdout] --> src/engine/actions.rs:419:9 [INFO] [stdout] | [INFO] [stdout] 419 | let article = get_article(&item_name); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_article` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_state` [INFO] [stdout] --> src/engine/actions.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn close(game_state: &GameState, obj: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `article` [INFO] [stdout] --> src/engine/actions.rs:444:9 [INFO] [stdout] | [INFO] [stdout] 444 | let article = get_article(&item_name); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_article` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `article` [INFO] [stdout] --> src/engine/actions.rs:463:9 [INFO] [stdout] | [INFO] [stdout] 463 | let article = get_article(&item_name); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_article` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entity` [INFO] [stdout] --> src/engine/actions.rs:202:25 [INFO] [stdout] | [INFO] [stdout] 202 | if let Some(entity) = game_state.world.entities.get(&entity_id) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_entity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `article` [INFO] [stdout] --> src/engine/actions.rs:419:9 [INFO] [stdout] | [INFO] [stdout] 419 | let article = get_article(&item_name); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_article` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `article` [INFO] [stdout] --> src/engine/actions.rs:444:9 [INFO] [stdout] | [INFO] [stdout] 444 | let article = get_article(&item_name); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_article` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `article` [INFO] [stdout] --> src/engine/actions.rs:463:9 [INFO] [stdout] | [INFO] [stdout] 463 | let article = get_article(&item_name); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_article` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/entity/item/container.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | fn remove(&mut self, item: ItemId) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/entity/item/mod.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | fn put(&mut self, item: ItemId) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/entity/item/container.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | fn remove(&mut self, item: ItemId) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/entity/item/mod.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | fn put(&mut self, item: ItemId) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `room_states` is never read [INFO] [stdout] --> src/engine/state.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GameState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 13 | pub current_room: RoomIdentifier, [INFO] [stdout] 14 | pub room_states: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_explored` is never read [INFO] [stdout] --> src/engine/state.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct RoomState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 22 | pub is_explored: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/command.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | Turn(String), // Turn something (like a knob or switch) [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 | Turn(()), // Turn something (like a knob or switch) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Examine`, `Combine`, `Push`, and `Pull` are never constructed [INFO] [stdout] --> src/parser/command.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 4 | Look(Option), // Look at something specific [INFO] [stdout] 5 | Examine(Option), // Examine something in detail [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | Combine(String, String), // Combine two items [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | Push(String), // Push something [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | Pull(String), // Pull something [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `strip_articles_and_join` is never used [INFO] [stdout] --> src/parser/command.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn strip_articles_and_join(words: &[&str]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_edible` and `get_readable` are never used [INFO] [stdout] --> src/world/data.rs:753:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl World { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 753 | pub fn get_edible(&self, entity_id: EntityId) -> Option<&dyn Edible> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 763 | pub fn get_readable(&self, entity_id: EntityId) -> Option<&dyn Readable> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Broken` is never constructed [INFO] [stdout] --> src/world/room.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum Access { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 45 | Broken, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Access` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `room_identifier` is never read [INFO] [stdout] --> src/world/room.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct RoomAttributes { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 83 | pub room_identifier: RoomIdentifier, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_any` and `as_any_mut` are never used [INFO] [stdout] --> src/entity/mod.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait Entity { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 22 | fn as_any(&self) -> &dyn Any; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | fn as_any_mut(&mut self) -> &mut dyn Any; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Large` is never constructed [INFO] [stdout] --> src/entity/item/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum Size { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 42 | Large, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Water`, `Coffee`, and `Fuel` are never constructed [INFO] [stdout] --> src/entity/item/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum Liquid { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 47 | Water, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 48 | Coffee, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 49 | Fuel, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/entity/item/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Item { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | size: Size, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `contains` is never read [INFO] [stdout] --> src/entity/item/mod.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct SecretBottle { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 79 | contains: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `put` and `remove` are never used [INFO] [stdout] --> src/entity/item/mod.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl SecretBottle { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 84 | fn put(&mut self, item: ItemId) -> Result<(), &'static str> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn remove(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `aliases`, and `description` are never read [INFO] [stdout] --> src/entity/item/mod.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct LiquidContainer { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 159 | id: EntityId, [INFO] [stdout] | ^^ [INFO] [stdout] 160 | name: String, [INFO] [stdout] 161 | aliases: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 162 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/entity/item/mod.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl LiquidContainer { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 168 | pub fn new(id: EntityId, name: String, aliases: Vec, description: String, liquid: Liquid) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `fill`, `drink`, and `pour` are never used [INFO] [stdout] --> src/entity/item/mod.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub trait LiquidContainable { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 213 | fn fill(&mut self, liquid: Liquid) -> Result<(), String>; [INFO] [stdout] | ^^^^ [INFO] [stdout] 214 | fn drink(&mut self) -> Result<(), String>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 215 | fn pour(&mut self) -> Result<(), String>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Openable` is never used [INFO] [stdout] --> src/entity/item/mod.rs:219:11 [INFO] [stdout] | [INFO] [stdout] 219 | pub trait Openable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Flammable` is never used [INFO] [stdout] --> src/entity/item/mod.rs:224:11 [INFO] [stdout] | [INFO] [stdout] 224 | pub trait Flammable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `drink` is never used [INFO] [stdout] --> src/entity/item/mod.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 232 | pub trait Drinkable { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 233 | fn drink(&mut self) -> Result<(), &'static str>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/entity/item/container.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Container { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | size: Size, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_container` and `remove` are never used [INFO] [stdout] --> src/entity/item/container.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Container { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn as_container(entity: &dyn Entity) -> Option<&Container> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn remove(&mut self, item: ItemId) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `contains` is never read [INFO] [stdout] --> src/entity/furniture/main_terminal.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MainTerminal { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | contains: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `enter_command` is never used [INFO] [stdout] --> src/entity/furniture/main_terminal.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MainTerminal { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn enter_command() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `contains` is never read [INFO] [stdout] --> src/entity/furniture/navigation_computer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct NavigationComputer { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | contains: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `contains` and `tap_is_on` are never read [INFO] [stdout] --> src/entity/furniture/sink.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Sink { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | contains: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | tap_is_on: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/engine/shuttle.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 191 | if power < 0 || power > 7 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `passageType` should have a snake case name [INFO] [stdout] --> src/world/data.rs:733:23 [INFO] [stdout] | [INFO] [stdout] 733 | for (dir, passageType, adjacent_room_id) in &room_attributes.connected_rooms { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `passage_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 63 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `room_states` is never read [INFO] [stdout] --> src/engine/state.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GameState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 13 | pub current_room: RoomIdentifier, [INFO] [stdout] 14 | pub room_states: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_explored` is never read [INFO] [stdout] --> src/engine/state.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct RoomState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 22 | pub is_explored: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/command.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | Turn(String), // Turn something (like a knob or switch) [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 | Turn(()), // Turn something (like a knob or switch) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Examine`, `Combine`, `Push`, and `Pull` are never constructed [INFO] [stdout] --> src/parser/command.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 4 | Look(Option), // Look at something specific [INFO] [stdout] 5 | Examine(Option), // Examine something in detail [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | Combine(String, String), // Combine two items [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | Push(String), // Push something [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | Pull(String), // Pull something [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `strip_articles_and_join` is never used [INFO] [stdout] --> src/parser/command.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn strip_articles_and_join(words: &[&str]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_edible` and `get_readable` are never used [INFO] [stdout] --> src/world/data.rs:753:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl World { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 753 | pub fn get_edible(&self, entity_id: EntityId) -> Option<&dyn Edible> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 763 | pub fn get_readable(&self, entity_id: EntityId) -> Option<&dyn Readable> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Broken` is never constructed [INFO] [stdout] --> src/world/room.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum Access { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 45 | Broken, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Access` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `room_identifier` is never read [INFO] [stdout] --> src/world/room.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct RoomAttributes { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 83 | pub room_identifier: RoomIdentifier, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_any` and `as_any_mut` are never used [INFO] [stdout] --> src/entity/mod.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait Entity { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 22 | fn as_any(&self) -> &dyn Any; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | fn as_any_mut(&mut self) -> &mut dyn Any; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Large` is never constructed [INFO] [stdout] --> src/entity/item/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum Size { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 42 | Large, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Water`, `Coffee`, and `Fuel` are never constructed [INFO] [stdout] --> src/entity/item/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum Liquid { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 47 | Water, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 48 | Coffee, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 49 | Fuel, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/entity/item/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Item { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | size: Size, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `contains` is never read [INFO] [stdout] --> src/entity/item/mod.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct SecretBottle { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 79 | contains: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `put` and `remove` are never used [INFO] [stdout] --> src/entity/item/mod.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl SecretBottle { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 84 | fn put(&mut self, item: ItemId) -> Result<(), &'static str> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn remove(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `aliases`, and `description` are never read [INFO] [stdout] --> src/entity/item/mod.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct LiquidContainer { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 159 | id: EntityId, [INFO] [stdout] | ^^ [INFO] [stdout] 160 | name: String, [INFO] [stdout] 161 | aliases: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 162 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/entity/item/mod.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl LiquidContainer { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 168 | pub fn new(id: EntityId, name: String, aliases: Vec, description: String, liquid: Liquid) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `fill`, `drink`, and `pour` are never used [INFO] [stdout] --> src/entity/item/mod.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub trait LiquidContainable { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 213 | fn fill(&mut self, liquid: Liquid) -> Result<(), String>; [INFO] [stdout] | ^^^^ [INFO] [stdout] 214 | fn drink(&mut self) -> Result<(), String>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 215 | fn pour(&mut self) -> Result<(), String>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Openable` is never used [INFO] [stdout] --> src/entity/item/mod.rs:219:11 [INFO] [stdout] | [INFO] [stdout] 219 | pub trait Openable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Flammable` is never used [INFO] [stdout] --> src/entity/item/mod.rs:224:11 [INFO] [stdout] | [INFO] [stdout] 224 | pub trait Flammable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `drink` is never used [INFO] [stdout] --> src/entity/item/mod.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 232 | pub trait Drinkable { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 233 | fn drink(&mut self) -> Result<(), &'static str>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/entity/item/container.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Container { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | size: Size, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_container` and `remove` are never used [INFO] [stdout] --> src/entity/item/container.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Container { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn as_container(entity: &dyn Entity) -> Option<&Container> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn remove(&mut self, item: ItemId) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `contains` is never read [INFO] [stdout] --> src/entity/furniture/main_terminal.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MainTerminal { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | contains: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `enter_command` is never used [INFO] [stdout] --> src/entity/furniture/main_terminal.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MainTerminal { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn enter_command() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `contains` is never read [INFO] [stdout] --> src/entity/furniture/navigation_computer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct NavigationComputer { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | contains: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `contains` and `tap_is_on` are never read [INFO] [stdout] --> src/entity/furniture/sink.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Sink { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | contains: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | tap_is_on: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/engine/shuttle.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 191 | if power < 0 || power > 7 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `passageType` should have a snake case name [INFO] [stdout] --> src/world/data.rs:733:23 [INFO] [stdout] | [INFO] [stdout] 733 | for (dir, passageType, adjacent_room_id) in &room_attributes.connected_rooms { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `passage_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 63 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.62s [INFO] running `Command { std: "docker" "inspect" "131be0a3523ec9265c5b27212cd0f6327e7b25477b01313da67419d2ce172984", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "131be0a3523ec9265c5b27212cd0f6327e7b25477b01313da67419d2ce172984", kill_on_drop: false }` [INFO] [stdout] 131be0a3523ec9265c5b27212cd0f6327e7b25477b01313da67419d2ce172984