[INFO] cloning repository https://github.com/sepiatonal/DungeonDelivery [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sepiatonal/DungeonDelivery" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsepiatonal%2FDungeonDelivery", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsepiatonal%2FDungeonDelivery'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4cb08f66627749b2932c4e6e07f8719a8233adb2 [INFO] building sepiatonal/DungeonDelivery against master#c2804e6ec2c29a5c7368600ea173b890e2655c3d for pr-97334-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsepiatonal%2FDungeonDelivery" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sepiatonal/DungeonDelivery on toolchain c2804e6ec2c29a5c7368600ea173b890e2655c3d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c2804e6ec2c29a5c7368600ea173b890e2655c3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sepiatonal/DungeonDelivery [INFO] finished tweaking git repo https://github.com/sepiatonal/DungeonDelivery [INFO] tweaked toml for git repo https://github.com/sepiatonal/DungeonDelivery written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/sepiatonal/DungeonDelivery already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c2804e6ec2c29a5c7368600ea173b890e2655c3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/sepiatonal/lore.git` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nalgebra v0.19.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+c2804e6ec2c29a5c7368600ea173b890e2655c3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 01451995109dba6bae617702eb5b4b13b57ba9f198c0216b373bb7e88f0c0aa5 [INFO] running `Command { std: "docker" "start" "-a" "01451995109dba6bae617702eb5b4b13b57ba9f198c0216b373bb7e88f0c0aa5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "01451995109dba6bae617702eb5b4b13b57ba9f198c0216b373bb7e88f0c0aa5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01451995109dba6bae617702eb5b4b13b57ba9f198c0216b373bb7e88f0c0aa5", kill_on_drop: false }` [INFO] [stdout] 01451995109dba6bae617702eb5b4b13b57ba9f198c0216b373bb7e88f0c0aa5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+c2804e6ec2c29a5c7368600ea173b890e2655c3d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 069ad66125087a17996a8cf7eeb86e7bbe49c046667ae10b3b2c55ccd67aa4e0 [INFO] running `Command { std: "docker" "start" "-a" "069ad66125087a17996a8cf7eeb86e7bbe49c046667ae10b3b2c55ccd67aa4e0", 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] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling libm v0.2.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling rayon-core v1.9.2 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling ash v0.34.0+1.2.203 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling ttf-parser v0.15.0 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.5 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling renderdoc-sys v0.7.1 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling inplace_it v0.3.3 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling profiling v1.0.5 [INFO] [stderr] Compiling glow v0.11.2 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling inflections v1.1.1 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling xi-unicode v0.3.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Compiling winit v0.26.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling pollster v0.2.5 [INFO] [stderr] Compiling bimap v0.6.2 [INFO] [stderr] Compiling libloading v0.7.3 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.1 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling wgpu-types v0.12.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling raw-window-handle v0.4.3 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling rayon v1.5.2 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling wgpu-core v0.12.2 [INFO] [stderr] Compiling wayland-sys v0.29.4 [INFO] [stderr] Compiling smithay-client-toolkit v0.15.4 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling gif v0.11.3 [INFO] [stderr] Compiling matrixmultiply v0.2.4 [INFO] [stderr] Compiling gpu-alloc v0.5.3 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling owned_ttf_parser v0.15.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.4 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling ab_glyph v0.2.15 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling generic-array v0.13.3 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling ordered-float v2.10.0 [INFO] [stderr] Compiling approx v0.4.0 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling nix v0.22.3 [INFO] [stderr] Compiling memmap2 v0.3.1 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling wayland-scanner v0.29.4 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling glyph_brush_layout v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling alga v0.9.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling gpu-descriptor v0.2.2 [INFO] [stderr] Compiling wayland-client v0.29.4 [INFO] [stderr] Compiling wayland-protocols v0.29.4 [INFO] [stderr] Compiling twox-hash v1.6.2 [INFO] [stderr] Compiling rand_distr v0.2.2 [INFO] [stderr] Compiling nalgebra v0.19.0 [INFO] [stderr] Compiling wayland-commons v0.29.4 [INFO] [stderr] Compiling calloop v0.9.3 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling glyph_brush_draw_cache v0.1.5 [INFO] [stderr] Compiling glyph_brush v0.7.3 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling bytemuck_derive v1.1.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling gltf-derive v1.0.0 [INFO] [stderr] Compiling bytemuck v1.9.1 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling naga v0.8.5 [INFO] [stderr] Compiling wayland-cursor v0.29.4 [INFO] [stderr] Compiling gltf-json v1.0.0 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling wgpu-hal v0.12.4 [INFO] [stderr] Compiling gltf v1.0.0 [INFO] [stderr] Compiling wgpu v0.12.0 [INFO] [stderr] Compiling wgpu_glyph v0.16.0 [INFO] [stderr] Compiling lore_render v0.1.2 (https://github.com/sepiatonal/lore.git?rev=524f076b699dbee2a9fabebfff7da3d5fdd3a233#524f076b) [INFO] [stderr] Compiling dungeon_delivery v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `KeyboardInput`, `ObjectInstance`, `asset_loading::images::load_png` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ObjectInstance, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | VirtualKeyCode, ElementState, KeyboardInput, VirtualKeyCode::*, MouseButton, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | asset_loading::images::load_png, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rendering_instance` [INFO] [stdout] --> src/buttons.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | fn on_up_arrow(rendering_instance: &mut RenderingInstance, state: &mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rendering_instance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/buttons.rs:10:60 [INFO] [stdout] | [INFO] [stdout] 10 | fn on_up_arrow(rendering_instance: &mut RenderingInstance, state: &mut State) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/inventory.rs:43:28 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn hide(&mut self, state: &mut State, rendering_instance: &mut RenderingInstance) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/battle_scene.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | for (i, a) in self.actions.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/battle_scene.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | fn set_hp(&mut self, val: i16) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/battle_scene.rs:144:41 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn get_targets_for_enemy(&self, index: usize) -> Vec<(usize, Allegience)>{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/battle_scene.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | let targets: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_targets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/battle_scene.rs:189:40 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn evaluate_targets(&mut self, action: QueuedAction) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pl` [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let pl = rendering_instance.create_default_render_pipeline(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_example` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let text_example = rendering_instance.create_text_box(TextInstance { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_example` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/main.rs:169:116 [INFO] [stdout] | [INFO] [stdout] 169 | ...button_state: &ElementState, button: &MouseButton) -> Option<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `map`, `player_party` and `font_brush` are never read [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 32 | map: Map, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | player_party: PlayerParty, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | font_brush: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tiles` is never read [INFO] [stdout] --> src/map.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Map { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 6 | tiles: [[Option>;64];64], [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prefab` and `encounters` are never read [INFO] [stdout] --> src/map.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Tile<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 19 | prefab: &'a TilePrefab, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | encounters: u8, // TODO placeholder type [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tile` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `objects` and `exits` are never read [INFO] [stdout] --> src/map.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct TilePrefab { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 24 | objects: Vec<(usize, ObjectInstance)>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | exits: u8, // bitmask on Direction [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `has_exit` is never used [INFO] [stdout] --> src/map.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn has_exit(&self, dir: Direction) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ItemType` is never used [INFO] [stdout] --> src/inventory.rs:134:6 [INFO] [stdout] | [INFO] [stdout] 134 | enum ItemType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/party.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn new() -> PlayerParty { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_member` is never used [INFO] [stdout] --> src/party.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn remove_member(&mut self, index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_DIE_ROLL` is never used [INFO] [stdout] --> src/utils.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const MAX_DIE_ROLL: u16 = 1000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exploding_die` is never used [INFO] [stdout] --> src/utils.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn exploding_die(sides: u16) -> i16 { //placeholder die rolling function. initializes a new rng thread every time it is called. Repla... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `percentage` is never used [INFO] [stdout] --> src/utils.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn percentage() -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BattleScene` is never constructed [INFO] [stdout] --> src/battle_scene.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct BattleScene { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueuedAction` is never constructed [INFO] [stdout] --> src/battle_scene.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct QueuedAction { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `weight`, `target_allegience`, `target_type`, `accuracy_value` and `effect` are never read [INFO] [stdout] --> src/battle_scene.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Action { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 31 | weight: u64, /*Skill weight: used to decide which to use*/ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | target_allegience: Allegience, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | target_type: TargetType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 34 | accuracy_value: fn(&Battler) -> i16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 35 | effect: fn(&mut Battler, i16), /*type: fn(&mut Battler, i16)*/ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Action` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `affect_allies`, `default_allies` and `area_type` are never read [INFO] [stdout] --> src/battle_scene.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct TargetType { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 40 | affect_allies: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 41 | default_allies: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 42 | area_type: AreaType [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TargetType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Single`, `Row` and `Column` are never constructed [INFO] [stdout] --> src/battle_scene.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum AreaType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 49 | Single, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | Row, [INFO] [stdout] | ^^^ [INFO] [stdout] 51 | Column [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AreaType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `roll_initiative` is never used [INFO] [stdout] --> src/battle_scene.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn roll_initiative(&self) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `roll_attack` is never used [INFO] [stdout] --> src/battle_scene.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn roll_attack(&self) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `roll_defense` is never used [INFO] [stdout] --> src/battle_scene.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn roll_defense(&self) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `call_effect` is never used [INFO] [stdout] --> src/battle_scene.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn call_effect(&self, battler: &mut Battler){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_weight` is never used [INFO] [stdout] --> src/battle_scene.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn get_weight(&self, index: usize) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_target` is never used [INFO] [stdout] --> src/battle_scene.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn get_target(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `decide_action` is never used [INFO] [stdout] --> src/battle_scene.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn decide_action(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `emit_action` is never used [INFO] [stdout] --> src/battle_scene.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn emit_action(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `collect_actions` is never used [INFO] [stdout] --> src/battle_scene.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn collect_actions(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_targets_for_enemy` is never used [INFO] [stdout] --> src/battle_scene.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn get_targets_for_enemy(&self, index: usize) -> Vec<(usize, Allegience)>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_action_from_enemy` is never used [INFO] [stdout] --> src/battle_scene.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn get_action_from_enemy(&self, index: usize) -> Option { /*and set source/targets*/ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `sort_initiative` is never used [INFO] [stdout] --> src/battle_scene.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn sort_initiative(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `pop_eval_top_action` is never used [INFO] [stdout] --> src/battle_scene.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn pop_eval_top_action(&mut self) -> bool { /*this could maybe be updated to return animation / result data?*/ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `evaluate_targets` is never used [INFO] [stdout] --> src/battle_scene.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn evaluate_targets(&mut self, action: QueuedAction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Normal`, `Poisoned`, `Petrified` and `Paralyzed` are never constructed [INFO] [stdout] --> src/battler.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub enum StatusEffect { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 100 | Normal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 101 | Dead, [INFO] [stdout] 102 | Poisoned, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 103 | Petrified, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 104 | Paralyzed [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusEffect` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ally` and `Enemy` are never constructed [INFO] [stdout] --> src/battler.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | pub enum Allegience { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 109 | Ally, [INFO] [stdout] | ^^^^ [INFO] [stdout] 110 | Enemy [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Allegience` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add` is never used [INFO] [stdout] --> src/battler.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn add(&mut self, y: BattleBaseParameters) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 57s [INFO] running `Command { std: "docker" "inspect" "069ad66125087a17996a8cf7eeb86e7bbe49c046667ae10b3b2c55ccd67aa4e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "069ad66125087a17996a8cf7eeb86e7bbe49c046667ae10b3b2c55ccd67aa4e0", kill_on_drop: false }` [INFO] [stdout] 069ad66125087a17996a8cf7eeb86e7bbe49c046667ae10b3b2c55ccd67aa4e0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+c2804e6ec2c29a5c7368600ea173b890e2655c3d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e52d01bf6042125cf9f87a103310f9c250b8d25069cef7a9d594c5e428363e7 [INFO] running `Command { std: "docker" "start" "-a" "0e52d01bf6042125cf9f87a103310f9c250b8d25069cef7a9d594c5e428363e7", kill_on_drop: false }` [INFO] [stderr] Compiling dungeon_delivery v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `KeyboardInput`, `ObjectInstance`, `asset_loading::images::load_png` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ObjectInstance, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | VirtualKeyCode, ElementState, KeyboardInput, VirtualKeyCode::*, MouseButton, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | asset_loading::images::load_png, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rendering_instance` [INFO] [stdout] --> src/buttons.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | fn on_up_arrow(rendering_instance: &mut RenderingInstance, state: &mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rendering_instance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/buttons.rs:10:60 [INFO] [stdout] | [INFO] [stdout] 10 | fn on_up_arrow(rendering_instance: &mut RenderingInstance, state: &mut State) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/inventory.rs:43:28 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn hide(&mut self, state: &mut State, rendering_instance: &mut RenderingInstance) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/battle_scene.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | for (i, a) in self.actions.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/battle_scene.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | fn set_hp(&mut self, val: i16) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/battle_scene.rs:144:41 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn get_targets_for_enemy(&self, index: usize) -> Vec<(usize, Allegience)>{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/battle_scene.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | let targets: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_targets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/battle_scene.rs:189:40 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn evaluate_targets(&mut self, action: QueuedAction) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pl` [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let pl = rendering_instance.create_default_render_pipeline(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_example` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let text_example = rendering_instance.create_text_box(TextInstance { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_example` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/main.rs:169:116 [INFO] [stdout] | [INFO] [stdout] 169 | ...button_state: &ElementState, button: &MouseButton) -> Option<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `map`, `player_party` and `font_brush` are never read [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 32 | map: Map, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | player_party: PlayerParty, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | font_brush: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tiles` is never read [INFO] [stdout] --> src/map.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Map { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 6 | tiles: [[Option>;64];64], [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prefab` and `encounters` are never read [INFO] [stdout] --> src/map.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Tile<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 19 | prefab: &'a TilePrefab, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | encounters: u8, // TODO placeholder type [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tile` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `objects` and `exits` are never read [INFO] [stdout] --> src/map.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct TilePrefab { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 24 | objects: Vec<(usize, ObjectInstance)>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | exits: u8, // bitmask on Direction [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `has_exit` is never used [INFO] [stdout] --> src/map.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn has_exit(&self, dir: Direction) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ItemType` is never used [INFO] [stdout] --> src/inventory.rs:134:6 [INFO] [stdout] | [INFO] [stdout] 134 | enum ItemType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/party.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn new() -> PlayerParty { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_member` is never used [INFO] [stdout] --> src/party.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn remove_member(&mut self, index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_DIE_ROLL` is never used [INFO] [stdout] --> src/utils.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const MAX_DIE_ROLL: u16 = 1000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exploding_die` is never used [INFO] [stdout] --> src/utils.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn exploding_die(sides: u16) -> i16 { //placeholder die rolling function. initializes a new rng thread every time it is called. Repla... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `percentage` is never used [INFO] [stdout] --> src/utils.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn percentage() -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BattleScene` is never constructed [INFO] [stdout] --> src/battle_scene.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct BattleScene { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueuedAction` is never constructed [INFO] [stdout] --> src/battle_scene.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct QueuedAction { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `weight`, `target_allegience`, `target_type`, `accuracy_value` and `effect` are never read [INFO] [stdout] --> src/battle_scene.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Action { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 31 | weight: u64, /*Skill weight: used to decide which to use*/ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | target_allegience: Allegience, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | target_type: TargetType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 34 | accuracy_value: fn(&Battler) -> i16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 35 | effect: fn(&mut Battler, i16), /*type: fn(&mut Battler, i16)*/ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Action` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `affect_allies`, `default_allies` and `area_type` are never read [INFO] [stdout] --> src/battle_scene.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct TargetType { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 40 | affect_allies: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 41 | default_allies: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 42 | area_type: AreaType [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TargetType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Single`, `Row` and `Column` are never constructed [INFO] [stdout] --> src/battle_scene.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum AreaType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 49 | Single, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | Row, [INFO] [stdout] | ^^^ [INFO] [stdout] 51 | Column [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AreaType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `roll_initiative` is never used [INFO] [stdout] --> src/battle_scene.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn roll_initiative(&self) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `roll_attack` is never used [INFO] [stdout] --> src/battle_scene.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn roll_attack(&self) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `roll_defense` is never used [INFO] [stdout] --> src/battle_scene.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn roll_defense(&self) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `call_effect` is never used [INFO] [stdout] --> src/battle_scene.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn call_effect(&self, battler: &mut Battler){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_weight` is never used [INFO] [stdout] --> src/battle_scene.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn get_weight(&self, index: usize) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_target` is never used [INFO] [stdout] --> src/battle_scene.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn get_target(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `decide_action` is never used [INFO] [stdout] --> src/battle_scene.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn decide_action(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `emit_action` is never used [INFO] [stdout] --> src/battle_scene.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn emit_action(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `collect_actions` is never used [INFO] [stdout] --> src/battle_scene.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn collect_actions(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_targets_for_enemy` is never used [INFO] [stdout] --> src/battle_scene.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn get_targets_for_enemy(&self, index: usize) -> Vec<(usize, Allegience)>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_action_from_enemy` is never used [INFO] [stdout] --> src/battle_scene.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn get_action_from_enemy(&self, index: usize) -> Option { /*and set source/targets*/ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `sort_initiative` is never used [INFO] [stdout] --> src/battle_scene.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn sort_initiative(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `pop_eval_top_action` is never used [INFO] [stdout] --> src/battle_scene.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn pop_eval_top_action(&mut self) -> bool { /*this could maybe be updated to return animation / result data?*/ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `evaluate_targets` is never used [INFO] [stdout] --> src/battle_scene.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn evaluate_targets(&mut self, action: QueuedAction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Normal`, `Poisoned`, `Petrified` and `Paralyzed` are never constructed [INFO] [stdout] --> src/battler.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub enum StatusEffect { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 100 | Normal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 101 | Dead, [INFO] [stdout] 102 | Poisoned, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 103 | Petrified, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 104 | Paralyzed [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusEffect` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ally` and `Enemy` are never constructed [INFO] [stdout] --> src/battler.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | pub enum Allegience { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 109 | Ally, [INFO] [stdout] | ^^^^ [INFO] [stdout] 110 | Enemy [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Allegience` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add` is never used [INFO] [stdout] --> src/battler.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn add(&mut self, y: BattleBaseParameters) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 21.74s [INFO] running `Command { std: "docker" "inspect" "0e52d01bf6042125cf9f87a103310f9c250b8d25069cef7a9d594c5e428363e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e52d01bf6042125cf9f87a103310f9c250b8d25069cef7a9d594c5e428363e7", kill_on_drop: false }` [INFO] [stdout] 0e52d01bf6042125cf9f87a103310f9c250b8d25069cef7a9d594c5e428363e7