[INFO] cloning repository https://github.com/Pawel82S/text_adv [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Pawel82S/text_adv" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPawel82S%2Ftext_adv", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPawel82S%2Ftext_adv'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 628301e5f903b0637e080af6bba62b35f47f3580 [INFO] testing Pawel82S/text_adv against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPawel82S%2Ftext_adv" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Pawel82S/text_adv on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Pawel82S/text_adv [INFO] finished tweaking git repo https://github.com/Pawel82S/text_adv [INFO] tweaked toml for git repo https://github.com/Pawel82S/text_adv written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/Pawel82S/text_adv already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded console_engine v1.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e17cee987c34ec12496c8fe681ffec0cbda7e366001b1b595186c5cd5f760a18 [INFO] running `Command { std: "docker" "start" "-a" "e17cee987c34ec12496c8fe681ffec0cbda7e366001b1b595186c5cd5f760a18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e17cee987c34ec12496c8fe681ffec0cbda7e366001b1b595186c5cd5f760a18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e17cee987c34ec12496c8fe681ffec0cbda7e366001b1b595186c5cd5f760a18", kill_on_drop: false }` [INFO] [stdout] e17cee987c34ec12496c8fe681ffec0cbda7e366001b1b595186c5cd5f760a18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c8e4f8456e40cff601681c08cb63a862573ad7e2c02aa70798c2606ee69da4ff [INFO] running `Command { std: "docker" "start" "-a" "c8e4f8456e40cff601681c08cb63a862573ad7e2c02aa70798c2606ee69da4ff", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.3 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling signal-hook v0.1.17 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling crossterm v0.19.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling console_engine v1.5.1 [INFO] [stderr] Compiling text_adv v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/map.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | io::{self, BufReader, BufWriter, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/map.rs:344:28 [INFO] [stdout] | [INFO] [stdout] 344 | fn save_to_file(&self, file_name: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/map.rs:348:25 [INFO] [stdout] | [INFO] [stdout] 348 | fn load_from_reader(reader: &mut BufReader) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/map.rs:352:30 [INFO] [stdout] | [INFO] [stdout] 352 | fn save_to_writer(&self, writer: &mut BufWriter) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit_by` [INFO] [stdout] --> src/enemy.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn hit_by(&mut self, attack: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_dead` [INFO] [stdout] --> src/enemy.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn is_dead(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `event_type` [INFO] [stdout] --> src/event.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | event_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `in_progress` [INFO] [stdout] --> src/event.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn in_progress(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Inventory` [INFO] [stdout] --> src/game.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | Inventory, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `GameState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/game.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `item_event_render` [INFO] [stdout] --> src/game.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | fn item_event_render(&mut self, item: &Item) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enemy_event_renderer` [INFO] [stdout] --> src/game.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | fn enemy_event_renderer(&mut self, enemy: &Enemy) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Chest` [INFO] [stdout] --> src/item.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Chest, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/item.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Leg` [INFO] [stdout] --> src/item.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Leg, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/item.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Arm` [INFO] [stdout] --> src/item.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Arm, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/item.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Foot` [INFO] [stdout] --> src/item.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Foot, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/item.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Hand` [INFO] [stdout] --> src/item.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Hand, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/item.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `details` [INFO] [stdout] --> src/map.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | details: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_tile` [INFO] [stdout] --> src/map.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn get_tile(&self, x: usize, y: usize) -> Option<&MapTile> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_tile` [INFO] [stdout] --> src/map.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn set_tile(&mut self, x: usize, y: usize, tile: MapTile) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `details` [INFO] [stdout] --> src/map.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn details(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `turn` [INFO] [stdout] --> src/player.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn turn(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit_by` [INFO] [stdout] --> src/player.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn hit_by(&mut self, attack: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_dead` [INFO] [stdout] --> src/player.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn is_dead(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `head` [INFO] [stdout] --> src/player.rs:440:12 [INFO] [stdout] | [INFO] [stdout] 440 | pub fn head(&self) -> &Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `chest` [INFO] [stdout] --> src/player.rs:444:12 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn chest(&self) -> &Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `legs` [INFO] [stdout] --> src/player.rs:448:12 [INFO] [stdout] | [INFO] [stdout] 448 | pub fn legs(&self) -> &Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `arms` [INFO] [stdout] --> src/player.rs:452:12 [INFO] [stdout] | [INFO] [stdout] 452 | pub fn arms(&self) -> &Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `foots` [INFO] [stdout] --> src/player.rs:456:12 [INFO] [stdout] | [INFO] [stdout] 456 | pub fn foots(&self) -> &Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `left_hand` [INFO] [stdout] --> src/player.rs:459:12 [INFO] [stdout] | [INFO] [stdout] 459 | pub fn left_hand(&self) -> &Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `right_hand` [INFO] [stdout] --> src/player.rs:462:12 [INFO] [stdout] | [INFO] [stdout] 462 | pub fn right_hand(&self) -> &Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inventory` [INFO] [stdout] --> src/player.rs:466:12 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn inventory(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_from_inventory` [INFO] [stdout] --> src/player.rs:474:12 [INFO] [stdout] | [INFO] [stdout] 474 | pub fn remove_from_inventory(&mut self, index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TextScr` [INFO] [stdout] --> src/ui/text_scr.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct TextScr { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/ui/text_scr.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(width: u32, height: u32, contents: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `screen` [INFO] [stdout] --> src/ui/text_scr.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn screen(&self) -> &Screen { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_contents` [INFO] [stdout] --> src/ui/text_scr.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn set_contents(&mut self, contents: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render` [INFO] [stdout] --> src/ui/text_scr.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn render(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.69s [INFO] running `Command { std: "docker" "inspect" "c8e4f8456e40cff601681c08cb63a862573ad7e2c02aa70798c2606ee69da4ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8e4f8456e40cff601681c08cb63a862573ad7e2c02aa70798c2606ee69da4ff", kill_on_drop: false }` [INFO] [stdout] c8e4f8456e40cff601681c08cb63a862573ad7e2c02aa70798c2606ee69da4ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3b428e3403c20d3691671dbebda753acd87c7c911e06961ad0f42b54e0f81435 [INFO] running `Command { std: "docker" "start" "-a" "3b428e3403c20d3691671dbebda753acd87c7c911e06961ad0f42b54e0f81435", kill_on_drop: false }` [INFO] [stderr] Compiling text_adv v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/map.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | io::{self, BufReader, BufWriter, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/map.rs:344:28 [INFO] [stdout] | [INFO] [stdout] 344 | fn save_to_file(&self, file_name: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/map.rs:348:25 [INFO] [stdout] | [INFO] [stdout] 348 | fn load_from_reader(reader: &mut BufReader) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/map.rs:352:30 [INFO] [stdout] | [INFO] [stdout] 352 | fn save_to_writer(&self, writer: &mut BufWriter) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit_by` [INFO] [stdout] --> src/enemy.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn hit_by(&mut self, attack: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_dead` [INFO] [stdout] --> src/enemy.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn is_dead(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `event_type` [INFO] [stdout] --> src/event.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | event_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `in_progress` [INFO] [stdout] --> src/event.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn in_progress(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Inventory` [INFO] [stdout] --> src/game.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | Inventory, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `GameState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/game.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `item_event_render` [INFO] [stdout] --> src/game.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | fn item_event_render(&mut self, item: &Item) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enemy_event_renderer` [INFO] [stdout] --> src/game.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | fn enemy_event_renderer(&mut self, enemy: &Enemy) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Chest` [INFO] [stdout] --> src/item.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Chest, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/item.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Leg` [INFO] [stdout] --> src/item.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Leg, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/item.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Arm` [INFO] [stdout] --> src/item.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Arm, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/item.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Foot` [INFO] [stdout] --> src/item.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Foot, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/item.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Hand` [INFO] [stdout] --> src/item.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Hand, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/item.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `details` [INFO] [stdout] --> src/map.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | details: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_tile` [INFO] [stdout] --> src/map.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn get_tile(&self, x: usize, y: usize) -> Option<&MapTile> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_tile` [INFO] [stdout] --> src/map.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn set_tile(&mut self, x: usize, y: usize, tile: MapTile) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `details` [INFO] [stdout] --> src/map.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn details(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `turn` [INFO] [stdout] --> src/player.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn turn(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit_by` [INFO] [stdout] --> src/player.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn hit_by(&mut self, attack: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_dead` [INFO] [stdout] --> src/player.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn is_dead(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `head` [INFO] [stdout] --> src/player.rs:440:12 [INFO] [stdout] | [INFO] [stdout] 440 | pub fn head(&self) -> &Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `chest` [INFO] [stdout] --> src/player.rs:444:12 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn chest(&self) -> &Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `legs` [INFO] [stdout] --> src/player.rs:448:12 [INFO] [stdout] | [INFO] [stdout] 448 | pub fn legs(&self) -> &Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `arms` [INFO] [stdout] --> src/player.rs:452:12 [INFO] [stdout] | [INFO] [stdout] 452 | pub fn arms(&self) -> &Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `foots` [INFO] [stdout] --> src/player.rs:456:12 [INFO] [stdout] | [INFO] [stdout] 456 | pub fn foots(&self) -> &Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `left_hand` [INFO] [stdout] --> src/player.rs:459:12 [INFO] [stdout] | [INFO] [stdout] 459 | pub fn left_hand(&self) -> &Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `right_hand` [INFO] [stdout] --> src/player.rs:462:12 [INFO] [stdout] | [INFO] [stdout] 462 | pub fn right_hand(&self) -> &Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inventory` [INFO] [stdout] --> src/player.rs:466:12 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn inventory(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_from_inventory` [INFO] [stdout] --> src/player.rs:474:12 [INFO] [stdout] | [INFO] [stdout] 474 | pub fn remove_from_inventory(&mut self, index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TextScr` [INFO] [stdout] --> src/ui/text_scr.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct TextScr { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/ui/text_scr.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(width: u32, height: u32, contents: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `screen` [INFO] [stdout] --> src/ui/text_scr.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn screen(&self) -> &Screen { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_contents` [INFO] [stdout] --> src/ui/text_scr.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn set_contents(&mut self, contents: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render` [INFO] [stdout] --> src/ui/text_scr.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn render(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "3b428e3403c20d3691671dbebda753acd87c7c911e06961ad0f42b54e0f81435", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b428e3403c20d3691671dbebda753acd87c7c911e06961ad0f42b54e0f81435", kill_on_drop: false }` [INFO] [stdout] 3b428e3403c20d3691671dbebda753acd87c7c911e06961ad0f42b54e0f81435 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e7b77db48f52d43d0e5b4e206064bc5781415c5c51cfca8e913594b5c5ba4de7 [INFO] running `Command { std: "docker" "start" "-a" "e7b77db48f52d43d0e5b4e206064bc5781415c5c51cfca8e913594b5c5ba4de7", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Write` [INFO] [stderr] --> src/map.rs:5:38 [INFO] [stderr] | [INFO] [stderr] 5 | io::{self, BufReader, BufWriter, Write}, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_name` [INFO] [stderr] --> src/map.rs:344:28 [INFO] [stderr] | [INFO] [stderr] 344 | fn save_to_file(&self, file_name: &str) -> io::Result<()> { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reader` [INFO] [stderr] --> src/map.rs:348:25 [INFO] [stderr] | [INFO] [stderr] 348 | fn load_from_reader(reader: &mut BufReader) -> Result { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `writer` [INFO] [stderr] --> src/map.rs:352:30 [INFO] [stderr] | [INFO] [stderr] 352 | fn save_to_writer(&self, writer: &mut BufWriter) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `hit_by` [INFO] [stderr] --> src/enemy.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn hit_by(&mut self, attack: u8) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_dead` [INFO] [stderr] --> src/enemy.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 47 | pub fn is_dead(&self) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `event_type` [INFO] [stderr] --> src/event.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | event_type: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `in_progress` [INFO] [stderr] --> src/event.rs:104:12 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn in_progress(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Inventory` [INFO] [stderr] --> src/game.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | Inventory, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `GameState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/game.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `item_event_render` [INFO] [stderr] --> src/game.rs:192:8 [INFO] [stderr] | [INFO] [stderr] 192 | fn item_event_render(&mut self, item: &Item) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `enemy_event_renderer` [INFO] [stderr] --> src/game.rs:202:8 [INFO] [stderr] | [INFO] [stderr] 202 | fn enemy_event_renderer(&mut self, enemy: &Enemy) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Chest` [INFO] [stderr] --> src/item.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | Chest, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/item.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Leg` [INFO] [stderr] --> src/item.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | Leg, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/item.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Arm` [INFO] [stderr] --> src/item.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | Arm, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/item.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Foot` [INFO] [stderr] --> src/item.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | Foot, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/item.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Hand` [INFO] [stderr] --> src/item.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | Hand, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Location` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/item.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `details` [INFO] [stderr] --> src/map.rs:59:5 [INFO] [stderr] | [INFO] [stderr] 59 | details: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_tile` [INFO] [stderr] --> src/map.rs:68:12 [INFO] [stderr] | [INFO] [stderr] 68 | pub fn get_tile(&self, x: usize, y: usize) -> Option<&MapTile> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_tile` [INFO] [stderr] --> src/map.rs:77:12 [INFO] [stderr] | [INFO] [stderr] 77 | pub fn set_tile(&mut self, x: usize, y: usize, tile: MapTile) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `details` [INFO] [stderr] --> src/map.rs:84:12 [INFO] [stderr] | [INFO] [stderr] 84 | pub fn details(&self) -> &str { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `turn` [INFO] [stderr] --> src/player.rs:62:12 [INFO] [stderr] | [INFO] [stderr] 62 | pub fn turn(&mut self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `hit_by` [INFO] [stderr] --> src/player.rs:66:12 [INFO] [stderr] | [INFO] [stderr] 66 | pub fn hit_by(&mut self, attack: u8) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_dead` [INFO] [stderr] --> src/player.rs:80:12 [INFO] [stderr] | [INFO] [stderr] 80 | pub fn is_dead(&self) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `head` [INFO] [stderr] --> src/player.rs:440:12 [INFO] [stderr] | [INFO] [stderr] 440 | pub fn head(&self) -> &Option { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `chest` [INFO] [stderr] --> src/player.rs:444:12 [INFO] [stderr] | [INFO] [stderr] 444 | pub fn chest(&self) -> &Option { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `legs` [INFO] [stderr] --> src/player.rs:448:12 [INFO] [stderr] | [INFO] [stderr] 448 | pub fn legs(&self) -> &Option { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `arms` [INFO] [stderr] --> src/player.rs:452:12 [INFO] [stderr] | [INFO] [stderr] 452 | pub fn arms(&self) -> &Option { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `foots` [INFO] [stderr] --> src/player.rs:456:12 [INFO] [stderr] | [INFO] [stderr] 456 | pub fn foots(&self) -> &Option { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `left_hand` [INFO] [stderr] --> src/player.rs:459:12 [INFO] [stderr] | [INFO] [stderr] 459 | pub fn left_hand(&self) -> &Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `right_hand` [INFO] [stderr] --> src/player.rs:462:12 [INFO] [stderr] | [INFO] [stderr] 462 | pub fn right_hand(&self) -> &Option { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inventory` [INFO] [stderr] --> src/player.rs:466:12 [INFO] [stderr] | [INFO] [stderr] 466 | pub fn inventory(&self) -> &Vec { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `remove_from_inventory` [INFO] [stderr] --> src/player.rs:474:12 [INFO] [stderr] | [INFO] [stderr] 474 | pub fn remove_from_inventory(&mut self, index: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `TextScr` [INFO] [stderr] --> src/ui/text_scr.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct TextScr { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/ui/text_scr.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn new(width: u32, height: u32, contents: Vec) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `screen` [INFO] [stderr] --> src/ui/text_scr.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn screen(&self) -> &Screen { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_contents` [INFO] [stderr] --> src/ui/text_scr.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn set_contents(&mut self, contents: Vec) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `render` [INFO] [stderr] --> src/ui/text_scr.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | fn render(&mut self) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `text_adv` (bin "text_adv" test) generated 37 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/text_adv-1483ef892109d967) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test vector::tests::basic_math ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e7b77db48f52d43d0e5b4e206064bc5781415c5c51cfca8e913594b5c5ba4de7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7b77db48f52d43d0e5b4e206064bc5781415c5c51cfca8e913594b5c5ba4de7", kill_on_drop: false }` [INFO] [stdout] e7b77db48f52d43d0e5b4e206064bc5781415c5c51cfca8e913594b5c5ba4de7