[INFO] cloning repository https://github.com/felixbuildthings/diffusion-roguelike [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/felixbuildthings/diffusion-roguelike" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffelixbuildthings%2Fdiffusion-roguelike", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffelixbuildthings%2Fdiffusion-roguelike'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8372864442bb2f2e06c68d17cdbbe82f4ea069b5 [INFO] testing felixbuildthings/diffusion-roguelike against master#562dee4820c458d823175268e41601d4c060588a for pr-154210 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffelixbuildthings%2Fdiffusion-roguelike" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/felixbuildthings/diffusion-roguelike [INFO] finished tweaking git repo https://github.com/felixbuildthings/diffusion-roguelike [INFO] tweaked toml for git repo https://github.com/felixbuildthings/diffusion-roguelike written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/felixbuildthings/diffusion-roguelike on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/felixbuildthings/diffusion-roguelike 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded safe_arch v0.7.4 [INFO] [stderr] Downloaded xml-rs v0.8.28 [INFO] [stderr] Downloaded wide v0.7.33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9f0c70ddf7887c7396e8ba2c8e55bb0b9c48ff181385caed556c5351b3c04d9f [INFO] running `Command { std: "docker" "start" "-a" "9f0c70ddf7887c7396e8ba2c8e55bb0b9c48ff181385caed556c5351b3c04d9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9f0c70ddf7887c7396e8ba2c8e55bb0b9c48ff181385caed556c5351b3c04d9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f0c70ddf7887c7396e8ba2c8e55bb0b9c48ff181385caed556c5351b3c04d9f", kill_on_drop: false }` [INFO] [stdout] 9f0c70ddf7887c7396e8ba2c8e55bb0b9c48ff181385caed556c5351b3c04d9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52d62f47447ab73cef334948dffa56c6e5c81529431a909673c02ecc1a0f65b4 [INFO] running `Command { std: "docker" "start" "-a" "52d62f47447ab73cef334948dffa56c6e5c81529431a909673c02ecc1a0f65b4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling xml-rs v0.8.28 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling bytemuck v1.25.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling simd-adler32 v0.3.8 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling libloading v0.8.9 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling downcast-rs v1.2.1 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling pin-project-lite v0.2.17 [INFO] [stderr] Compiling slotmap v1.1.1 [INFO] [stderr] Compiling servo-fontconfig-sys v5.1.0 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling zerocopy v0.8.40 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling safe_arch v0.7.4 [INFO] [stderr] Compiling dlib v0.5.3 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling crossfont v0.5.2 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling foreign-types-shared v0.3.1 [INFO] [stderr] Compiling xcursor v0.3.10 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling tiny-skia-path v0.7.0 [INFO] [stderr] Compiling safe_arch v0.5.2 [INFO] [stderr] Compiling wide v0.7.33 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling flate2 v1.1.9 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling socket2 v0.6.2 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling freetype-rs v0.26.0 [INFO] [stderr] Compiling servo-fontconfig v0.5.1 [INFO] [stderr] Compiling ultraviolet v0.9.2 [INFO] [stderr] Compiling regex-syntax v0.8.10 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling raw-window-handle v0.4.3 [INFO] [stderr] Compiling tiny-skia v0.7.0 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling openssl-probe v0.2.1 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling bracket-geometry v0.8.7 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling bracket-embedding v0.8.7 [INFO] [stderr] Compiling bracket-color v0.8.7 [INFO] [stderr] Compiling rand_xorshift v0.3.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling jpeg-decoder v0.3.2 [INFO] [stderr] Compiling object-pool v0.5.4 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling bracket-rex v0.8.7 [INFO] [stderr] Compiling bracket-algorithm-traits v0.8.7 [INFO] [stderr] Compiling glow v0.11.2 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling wayland-egl v0.29.5 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling bracket-pathfinding v0.8.7 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ipnet v2.12.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling foreign-types-macros v0.2.3 [INFO] [stderr] Compiling tokio-macros v2.6.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling bracket-random v0.8.7 [INFO] [stderr] Compiling foreign-types v0.5.0 [INFO] [stderr] Compiling bracket-noise v0.8.7 [INFO] [stderr] Compiling tokio v1.50.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling calloop v0.10.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling sctk-adwaita v0.4.3 [INFO] [stderr] Compiling winit v0.27.5 [INFO] [stderr] Compiling glutin v0.29.1 [INFO] [stderr] Compiling bracket-terminal v0.8.7 [INFO] [stderr] Compiling bracket-lib v0.8.7 [INFO] [stderr] Compiling diffusion-roguelike v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: enum `ApiError` is never used [INFO] [stdout] --> src/api/client.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ApiError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatRequest` is never constructed [INFO] [stdout] --> src/api/client.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct ChatRequest { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatMessage` is never constructed [INFO] [stdout] --> src/api/client.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct ChatMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatResponse` is never constructed [INFO] [stdout] --> src/api/client.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct ChatResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatChoice` is never constructed [INFO] [stdout] --> src/api/client.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct ChatChoice { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mercury2Client` is never constructed [INFO] [stdout] --> src/api/client.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Mercury2Client { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from_env`, and `generate_room` are never used [INFO] [stdout] --> src/api/client.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl Mercury2Client { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 59 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn from_env() -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub async fn generate_room( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SessionBudget` is never constructed [INFO] [stdout] --> src/api/client.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct SessionBudget { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `record_generation`, `remaining_fraction`, `avg_latency`, and `should_pregen` are never used [INFO] [stdout] --> src/api/client.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl SessionBudget { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 139 | pub fn new(max_rooms: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn record_generation(&mut self, latency_secs: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn remaining_fraction(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn avg_latency(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn should_pregen(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoomResponse` is never constructed [INFO] [stdout] --> src/api/parser.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RoomResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EntityResponse` is never constructed [INFO] [stdout] --> src/api/parser.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct EntityResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExitsResponse` is never constructed [INFO] [stdout] --> src/api/parser.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ExitsResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParseError` is never used [INFO] [stdout] --> src/api/parser.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum ParseError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_room_response` is never used [INFO] [stdout] --> src/api/parser.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn parse_room_response(json_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_json` is never used [INFO] [stdout] --> src/api/parser.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn extract_json(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOM_SYSTEM_PROMPT` is never used [INFO] [stdout] --> src/api/prompts.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const ROOM_SYSTEM_PROMPT: &str = r#"You are a dungeon room generator for an ASCII roguelike game. Output ONLY valid JSON matching... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `room_user_prompt` is never used [INFO] [stdout] --> src/api/prompts.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn room_user_prompt(floor: i32, room_x: i32, room_y: i32, required_exits: &[&str]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `required_exits` is never used [INFO] [stdout] --> src/api/prompts.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn required_exits( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Monster`, `Item`, and `NPC` are never constructed [INFO] [stdout] --> src/entities/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum EntityType { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 7 | Player, [INFO] [stdout] 8 | Monster, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Item, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | NPC, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EntityType` 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: fields `name`, `entity_type`, `attack`, and `defense` are never read [INFO] [stdout] --> src/entities/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Entity { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | pub entity_type: EntityType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub attack: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub defense: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Entity` 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: method `player_pos` is never used [INFO] [stdout] --> src/entities/mod.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl EntityManager { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn player_pos(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `room_count` is never used [INFO] [stdout] --> src/map/mod.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 252 | impl Map { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn room_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `room_from_response` is never used [INFO] [stdout] --> src/map/generator.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn room_from_response(response: RoomResponse) -> Room { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_name` is never used [INFO] [stdout] --> src/map/generator.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn sanitize_name(name: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_box` is never used [INFO] [stdout] --> src/rendering/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn draw_box(ctx: &mut BTerm, x: i32, y: i32, w: i32, h: i32, fg: RGB) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Error` is never constructed [INFO] [stdout] --> src/state.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum GameMode { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Error(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 30s [INFO] running `Command { std: "docker" "inspect" "52d62f47447ab73cef334948dffa56c6e5c81529431a909673c02ecc1a0f65b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52d62f47447ab73cef334948dffa56c6e5c81529431a909673c02ecc1a0f65b4", kill_on_drop: false }` [INFO] [stdout] 52d62f47447ab73cef334948dffa56c6e5c81529431a909673c02ecc1a0f65b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fcfa7d36cd3378c7ef976ce5276a05887b7009bf47c0495b176cb30822e64e1c [INFO] running `Command { std: "docker" "start" "-a" "fcfa7d36cd3378c7ef976ce5276a05887b7009bf47c0495b176cb30822e64e1c", kill_on_drop: false }` [INFO] [stderr] Compiling diffusion-roguelike v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: enum `ApiError` is never used [INFO] [stdout] --> src/api/client.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ApiError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatRequest` is never constructed [INFO] [stdout] --> src/api/client.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct ChatRequest { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatMessage` is never constructed [INFO] [stdout] --> src/api/client.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct ChatMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatResponse` is never constructed [INFO] [stdout] --> src/api/client.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct ChatResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatChoice` is never constructed [INFO] [stdout] --> src/api/client.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct ChatChoice { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mercury2Client` is never constructed [INFO] [stdout] --> src/api/client.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Mercury2Client { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from_env`, and `generate_room` are never used [INFO] [stdout] --> src/api/client.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl Mercury2Client { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 59 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn from_env() -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub async fn generate_room( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SessionBudget` is never constructed [INFO] [stdout] --> src/api/client.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct SessionBudget { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `record_generation`, `remaining_fraction`, `avg_latency`, and `should_pregen` are never used [INFO] [stdout] --> src/api/client.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl SessionBudget { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 139 | pub fn new(max_rooms: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn record_generation(&mut self, latency_secs: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn remaining_fraction(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn avg_latency(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn should_pregen(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoomResponse` is never constructed [INFO] [stdout] --> src/api/parser.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RoomResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EntityResponse` is never constructed [INFO] [stdout] --> src/api/parser.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct EntityResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExitsResponse` is never constructed [INFO] [stdout] --> src/api/parser.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ExitsResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParseError` is never used [INFO] [stdout] --> src/api/parser.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum ParseError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_room_response` is never used [INFO] [stdout] --> src/api/parser.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn parse_room_response(json_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_json` is never used [INFO] [stdout] --> src/api/parser.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn extract_json(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOM_SYSTEM_PROMPT` is never used [INFO] [stdout] --> src/api/prompts.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const ROOM_SYSTEM_PROMPT: &str = r#"You are a dungeon room generator for an ASCII roguelike game. Output ONLY valid JSON matching... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `room_user_prompt` is never used [INFO] [stdout] --> src/api/prompts.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn room_user_prompt(floor: i32, room_x: i32, room_y: i32, required_exits: &[&str]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `required_exits` is never used [INFO] [stdout] --> src/api/prompts.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn required_exits( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Monster`, `Item`, and `NPC` are never constructed [INFO] [stdout] --> src/entities/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum EntityType { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 7 | Player, [INFO] [stdout] 8 | Monster, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Item, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | NPC, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EntityType` 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: fields `name`, `entity_type`, `attack`, and `defense` are never read [INFO] [stdout] --> src/entities/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Entity { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | pub entity_type: EntityType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub attack: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub defense: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Entity` 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: method `player_pos` is never used [INFO] [stdout] --> src/entities/mod.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl EntityManager { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn player_pos(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `room_count` is never used [INFO] [stdout] --> src/map/mod.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 252 | impl Map { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn room_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `room_from_response` is never used [INFO] [stdout] --> src/map/generator.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn room_from_response(response: RoomResponse) -> Room { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_name` is never used [INFO] [stdout] --> src/map/generator.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn sanitize_name(name: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_box` is never used [INFO] [stdout] --> src/rendering/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn draw_box(ctx: &mut BTerm, x: i32, y: i32, w: i32, h: i32, fg: RGB) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Error` is never constructed [INFO] [stdout] --> src/state.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum GameMode { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Error(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.64s [INFO] running `Command { std: "docker" "inspect" "fcfa7d36cd3378c7ef976ce5276a05887b7009bf47c0495b176cb30822e64e1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcfa7d36cd3378c7ef976ce5276a05887b7009bf47c0495b176cb30822e64e1c", kill_on_drop: false }` [INFO] [stdout] fcfa7d36cd3378c7ef976ce5276a05887b7009bf47c0495b176cb30822e64e1c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c700656b02add0dc694aa430ad0e0de294a8001cd3112c313b0ce76124d0cb5c [INFO] running `Command { std: "docker" "start" "-a" "c700656b02add0dc694aa430ad0e0de294a8001cd3112c313b0ce76124d0cb5c", kill_on_drop: false }` [INFO] [stderr] warning: enum `ApiError` is never used [INFO] [stderr] --> src/api/client.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | pub enum ApiError { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `ChatRequest` is never constructed [INFO] [stderr] --> src/api/client.rs:29:8 [INFO] [stderr] | [INFO] [stderr] 29 | struct ChatRequest { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ChatMessage` is never constructed [INFO] [stderr] --> src/api/client.rs:37:8 [INFO] [stderr] | [INFO] [stderr] 37 | struct ChatMessage { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ChatResponse` is never constructed [INFO] [stderr] --> src/api/client.rs:43:8 [INFO] [stderr] | [INFO] [stderr] 43 | struct ChatResponse { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ChatChoice` is never constructed [INFO] [stderr] --> src/api/client.rs:48:8 [INFO] [stderr] | [INFO] [stderr] 48 | struct ChatChoice { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Mercury2Client` is never constructed [INFO] [stderr] --> src/api/client.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 52 | pub struct Mercury2Client { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `from_env`, and `generate_room` are never used [INFO] [stderr] --> src/api/client.rs:59:12 [INFO] [stderr] | [INFO] [stderr] 58 | impl Mercury2Client { [INFO] [stderr] | ------------------- associated items in this implementation [INFO] [stderr] 59 | pub fn new(api_key: String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 67 | pub fn from_env() -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 72 | pub async fn generate_room( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SessionBudget` is never constructed [INFO] [stderr] --> src/api/client.rs:132:12 [INFO] [stderr] | [INFO] [stderr] 132 | pub struct SessionBudget { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `record_generation`, `remaining_fraction`, `avg_latency`, and `should_pregen` are never used [INFO] [stderr] --> src/api/client.rs:139:12 [INFO] [stderr] | [INFO] [stderr] 138 | impl SessionBudget { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 139 | pub fn new(max_rooms: u32) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 147 | pub fn record_generation(&mut self, latency_secs: f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 155 | pub fn remaining_fraction(&self) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 162 | pub fn avg_latency(&self) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 171 | pub fn should_pregen(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `RoomResponse` is never constructed [INFO] [stderr] --> src/api/parser.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct RoomResponse { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EntityResponse` is never constructed [INFO] [stderr] --> src/api/parser.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 15 | pub struct EntityResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ExitsResponse` is never constructed [INFO] [stderr] --> src/api/parser.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 25 | pub struct ExitsResponse { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ParseError` is never used [INFO] [stderr] --> src/api/parser.rs:37:10 [INFO] [stderr] | [INFO] [stderr] 37 | pub enum ParseError { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_room_response` is never used [INFO] [stderr] --> src/api/parser.rs:54:8 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn parse_room_response(json_str: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `extract_json` is never used [INFO] [stderr] --> src/api/parser.rs:99:4 [INFO] [stderr] | [INFO] [stderr] 99 | fn extract_json(s: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ROOM_SYSTEM_PROMPT` is never used [INFO] [stderr] --> src/api/prompts.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | pub const ROOM_SYSTEM_PROMPT: &str = r#"You are a dungeon room generator for an ASCII roguelike game. Output ONLY valid JSON matching... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `room_user_prompt` is never used [INFO] [stderr] --> src/api/prompts.rs:15:8 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn room_user_prompt(floor: i32, room_x: i32, room_y: i32, required_exits: &[&str]) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `required_exits` is never used [INFO] [stderr] --> src/api/prompts.rs:28:8 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn required_exits( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Monster`, `Item`, and `NPC` are never constructed [INFO] [stderr] --> src/entities/mod.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 6 | pub enum EntityType { [INFO] [stderr] | ---------- variants in this enum [INFO] [stderr] 7 | Player, [INFO] [stderr] 8 | Monster, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 9 | Item, [INFO] [stderr] | ^^^^ [INFO] [stderr] 10 | NPC, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `EntityType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `name`, `entity_type`, `attack`, and `defense` are never read [INFO] [stderr] --> src/entities/mod.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct Entity { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 18 | pub name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 19 | pub entity_type: EntityType, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 22 | pub attack: i32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 23 | pub defense: i32, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Entity` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `player_pos` is never used [INFO] [stderr] --> src/entities/mod.rs:71:12 [INFO] [stderr] | [INFO] [stderr] 56 | impl EntityManager { [INFO] [stderr] | ------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 71 | pub fn player_pos(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `room_count` is never used [INFO] [stderr] --> src/map/mod.rs:278:12 [INFO] [stderr] | [INFO] [stderr] 252 | impl Map { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 278 | pub fn room_count(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `room_from_response` is never used [INFO] [stderr] --> src/map/generator.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn room_from_response(response: RoomResponse) -> Room { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `sanitize_name` is never used [INFO] [stderr] --> src/map/generator.rs:65:4 [INFO] [stderr] | [INFO] [stderr] 65 | fn sanitize_name(name: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `draw_box` is never used [INFO] [stderr] --> src/rendering/mod.rs:7:8 [INFO] [stderr] | [INFO] [stderr] 7 | pub fn draw_box(ctx: &mut BTerm, x: i32, y: i32, w: i32, h: i32, fg: RGB) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Error` is never constructed [INFO] [stderr] --> src/state.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 8 | pub enum GameMode { [INFO] [stderr] | -------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 13 | Error(String), [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `GameMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `diffusion-roguelike` (bin "diffusion-roguelike" test) generated 26 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/diffusion_roguelike-321fdcfe1ce9a962) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/diffusion_roguelike-b26397ff6b3b083d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests diffusion_roguelike [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c700656b02add0dc694aa430ad0e0de294a8001cd3112c313b0ce76124d0cb5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c700656b02add0dc694aa430ad0e0de294a8001cd3112c313b0ce76124d0cb5c", kill_on_drop: false }` [INFO] [stdout] c700656b02add0dc694aa430ad0e0de294a8001cd3112c313b0ce76124d0cb5c