[INFO] cloning repository https://github.com/ngraham20/sherlock_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/ngraham20/sherlock_text_adv" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fngraham20%2Fsherlock_text_adv", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fngraham20%2Fsherlock_text_adv'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dddbe887781cc9683ba5be590952d6a14cbbdf15 [INFO] checking ngraham20/sherlock_text_adv against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fngraham20%2Fsherlock_text_adv" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ngraham20/sherlock_text_adv on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ngraham20/sherlock_text_adv [INFO] finished tweaking git repo https://github.com/ngraham20/sherlock_text_adv [INFO] tweaked toml for git repo https://github.com/ngraham20/sherlock_text_adv written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ngraham20/sherlock_text_adv 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded atlatl v0.1.2 [INFO] [stderr] Downloaded hyphenation_commons v0.7.1 [INFO] [stderr] Downloaded hyphenation v0.7.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 933fa6913b820e9982b2955572bc65dacba2a8e04f8fceaa5a489ad4eaf6662f [INFO] running `Command { std: "docker" "start" "-a" "933fa6913b820e9982b2955572bc65dacba2a8e04f8fceaa5a489ad4eaf6662f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "933fa6913b820e9982b2955572bc65dacba2a8e04f8fceaa5a489ad4eaf6662f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "933fa6913b820e9982b2955572bc65dacba2a8e04f8fceaa5a489ad4eaf6662f", kill_on_drop: false }` [INFO] [stdout] 933fa6913b820e9982b2955572bc65dacba2a8e04f8fceaa5a489ad4eaf6662f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93b2947203a8159a66828177f30f504ed711fbd1ee6aa5f3088043e5dd8770ea [INFO] running `Command { std: "docker" "start" "-a" "93b2947203a8159a66828177f30f504ed711fbd1ee6aa5f3088043e5dd8770ea", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling pocket-resources v0.3.2 [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking term_size v0.3.1 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Checking atlatl v0.1.2 [INFO] [stderr] Checking bincode v1.2.1 [INFO] [stderr] Checking serde_json v1.0.48 [INFO] [stderr] Checking hyphenation_commons v0.7.1 [INFO] [stderr] Compiling hyphenation v0.7.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking sherlock v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::map::Map` [INFO] [stdout] --> src/game_state.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::map::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::map::Map` [INFO] [stdout] --> src/game_state.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::map::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/map.rs:27:79 [INFO] [stdout] | [INFO] [stdout] 27 | data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 27 - data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] 27 + data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {&"-=-"} else {{&" "}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/map.rs:27:95 [INFO] [stdout] | [INFO] [stdout] 27 | data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 27 - data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] 27 + data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {&" "}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/map.rs:27:79 [INFO] [stdout] | [INFO] [stdout] 27 | data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 27 - data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] 27 + data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {&"-=-"} else {{&" "}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/map.rs:27:95 [INFO] [stdout] | [INFO] [stdout] 27 | data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 27 - data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] 27 + data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {&" "}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/room_state.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_lighting(room: &Room) -> Lighting { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameSettings` is never constructed [INFO] [stdout] --> src/game_state.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct GameSettings { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from` and `modify_setting` are never used [INFO] [stdout] --> src/game_state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl GameSettings { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn from(screen_width: usize) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn modify_setting(&mut self, setting: GameSetting) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ScreenWidth` is never constructed [INFO] [stdout] --> src/game_state.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum GameSetting { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 34 | ScreenWidth, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameSetting` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/game_state.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn begin(screen_width: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `display_menu`, and `update_settings` are never used [INFO] [stdout] --> src/menu.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Menu { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 13 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn display_menu(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn update_settings(&mut self, settings: &GameSettings) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/menu.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 86 | SetMenu(Menu), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 87 | RunFunc(fn()), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 88 | ChangeSetting(GameSetting), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 89 | Play, [INFO] [stdout] | ^^^^ [INFO] [stdout] 90 | Back, [INFO] [stdout] | ^^^^ [INFO] [stdout] 91 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | InputError, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 93 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_menu` is never used [INFO] [stdout] --> src/menu.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn main_menu(width: usize) -> Menu { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `settings_menu` is never used [INFO] [stdout] --> src/menu.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn settings_menu(width: usize) -> Menu { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_item` is never used [INFO] [stdout] --> src/menu_state.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn select_item(menu: Menu, item: &str) -> menu::Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/menu_state.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn begin(settings: &mut game_state::GameSettings) -> menu::Command { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from` and `display` are never used [INFO] [stdout] --> src/room.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Room { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn from( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/room_state.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn begin(settings: &GameSettings) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_lighting` is never used [INFO] [stdout] --> src/room_state.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_lighting(room: &Room) -> Lighting { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lorem_ipsum` is never used [INFO] [stdout] --> src/room_state.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn lorem_ipsum(settings: &GameSettings) -> Room { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_next_instruction` is never used [INFO] [stdout] --> src/room_state.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn get_next_instruction() -> Command { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Move`, `Continue`, `Pause`, and `Quit` are never constructed [INFO] [stdout] --> src/room_state.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 57 | Move(Direction), [INFO] [stdout] | ^^^^ [INFO] [stdout] 58 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | Pause, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 60 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/room_state.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 65 | North, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 66 | South, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 67 | East, [INFO] [stdout] | ^^^^ [INFO] [stdout] 68 | West, [INFO] [stdout] | ^^^^ [INFO] [stdout] 69 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 70 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 71 | Here, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/room_state.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_lighting(room: &Room) -> Lighting { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameSettings` is never constructed [INFO] [stdout] --> src/game_state.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct GameSettings { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from` and `modify_setting` are never used [INFO] [stdout] --> src/game_state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl GameSettings { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn from(screen_width: usize) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn modify_setting(&mut self, setting: GameSetting) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ScreenWidth` is never constructed [INFO] [stdout] --> src/game_state.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum GameSetting { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 34 | ScreenWidth, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameSetting` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/game_state.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn begin(screen_width: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `display_menu`, and `update_settings` are never used [INFO] [stdout] --> src/menu.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Menu { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 13 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn display_menu(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn update_settings(&mut self, settings: &GameSettings) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/menu.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 86 | SetMenu(Menu), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 87 | RunFunc(fn()), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 88 | ChangeSetting(GameSetting), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 89 | Play, [INFO] [stdout] | ^^^^ [INFO] [stdout] 90 | Back, [INFO] [stdout] | ^^^^ [INFO] [stdout] 91 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | InputError, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 93 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_menu` is never used [INFO] [stdout] --> src/menu.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn main_menu(width: usize) -> Menu { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `settings_menu` is never used [INFO] [stdout] --> src/menu.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn settings_menu(width: usize) -> Menu { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_item` is never used [INFO] [stdout] --> src/menu_state.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn select_item(menu: Menu, item: &str) -> menu::Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/menu_state.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn begin(settings: &mut game_state::GameSettings) -> menu::Command { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from` and `display` are never used [INFO] [stdout] --> src/room.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Room { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn from( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/room_state.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn begin(settings: &GameSettings) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_lighting` is never used [INFO] [stdout] --> src/room_state.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_lighting(room: &Room) -> Lighting { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lorem_ipsum` is never used [INFO] [stdout] --> src/room_state.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn lorem_ipsum(settings: &GameSettings) -> Room { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_next_instruction` is never used [INFO] [stdout] --> src/room_state.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn get_next_instruction() -> Command { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Move`, `Continue`, `Pause`, and `Quit` are never constructed [INFO] [stdout] --> src/room_state.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 57 | Move(Direction), [INFO] [stdout] | ^^^^ [INFO] [stdout] 58 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | Pause, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 60 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/room_state.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 65 | North, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 66 | South, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 67 | East, [INFO] [stdout] | ^^^^ [INFO] [stdout] 68 | West, [INFO] [stdout] | ^^^^ [INFO] [stdout] 69 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 70 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 71 | Here, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.19s [INFO] running `Command { std: "docker" "inspect" "93b2947203a8159a66828177f30f504ed711fbd1ee6aa5f3088043e5dd8770ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93b2947203a8159a66828177f30f504ed711fbd1ee6aa5f3088043e5dd8770ea", kill_on_drop: false }` [INFO] [stdout] 93b2947203a8159a66828177f30f504ed711fbd1ee6aa5f3088043e5dd8770ea [INFO] checking ngraham20/sherlock_text_adv against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fngraham20%2Fsherlock_text_adv" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ngraham20/sherlock_text_adv on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ngraham20/sherlock_text_adv [INFO] finished tweaking git repo https://github.com/ngraham20/sherlock_text_adv [INFO] tweaked toml for git repo https://github.com/ngraham20/sherlock_text_adv written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ngraham20/sherlock_text_adv 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5cab4c91cf7ed8d1a7ad4a5433088b514d9f326b602aad9807c117ec6300d804 [INFO] running `Command { std: "docker" "start" "-a" "5cab4c91cf7ed8d1a7ad4a5433088b514d9f326b602aad9807c117ec6300d804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5cab4c91cf7ed8d1a7ad4a5433088b514d9f326b602aad9807c117ec6300d804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cab4c91cf7ed8d1a7ad4a5433088b514d9f326b602aad9807c117ec6300d804", kill_on_drop: false }` [INFO] [stdout] 5cab4c91cf7ed8d1a7ad4a5433088b514d9f326b602aad9807c117ec6300d804 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 16941667172d96e2e79d78346eda9d725ce459dbbbbbff0b2e64df5009674652 [INFO] running `Command { std: "docker" "start" "-a" "16941667172d96e2e79d78346eda9d725ce459dbbbbbff0b2e64df5009674652", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling pocket-resources v0.3.2 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking term_size v0.3.1 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Checking atlatl v0.1.2 [INFO] [stderr] Checking bincode v1.2.1 [INFO] [stderr] Checking serde_json v1.0.48 [INFO] [stderr] Checking hyphenation_commons v0.7.1 [INFO] [stderr] Compiling hyphenation v0.7.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking sherlock v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::map::Map` [INFO] [stdout] --> src/game_state.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::map::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::map::Map` [INFO] [stdout] --> src/game_state.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::map::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/map.rs:27:79 [INFO] [stdout] | [INFO] [stdout] 27 | data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 27 - data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] 27 + data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {&"-=-"} else {{&" "}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/map.rs:27:95 [INFO] [stdout] | [INFO] [stdout] 27 | data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 27 - data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] 27 + data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {&" "}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/map.rs:27:79 [INFO] [stdout] | [INFO] [stdout] 27 | data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 27 - data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] 27 + data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {&"-=-"} else {{&" "}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/map.rs:27:95 [INFO] [stdout] | [INFO] [stdout] 27 | data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 27 - data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {{&" "}}; [INFO] [stdout] 27 + data += if map.edges.contains(&(j, i, j+1, i)) && k % 3 == 1 {{&"-=-"}} else {&" "}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/room_state.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_lighting(room: &Room) -> Lighting { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/room_state.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_lighting(room: &Room) -> Lighting { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameSettings` is never constructed [INFO] [stdout] --> src/game_state.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct GameSettings { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from` and `modify_setting` are never used [INFO] [stdout] --> src/game_state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl GameSettings { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn from(screen_width: usize) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn modify_setting(&mut self, setting: GameSetting) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ScreenWidth` is never constructed [INFO] [stdout] --> src/game_state.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum GameSetting { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 34 | ScreenWidth, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameSetting` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/game_state.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn begin(screen_width: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `display_menu`, and `update_settings` are never used [INFO] [stdout] --> src/menu.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Menu { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 13 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn display_menu(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn update_settings(&mut self, settings: &GameSettings) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameSettings` is never constructed [INFO] [stdout] --> src/game_state.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct GameSettings { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from` and `modify_setting` are never used [INFO] [stdout] --> src/game_state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl GameSettings { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn from(screen_width: usize) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn modify_setting(&mut self, setting: GameSetting) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/menu.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 86 | SetMenu(Menu), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 87 | RunFunc(fn()), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 88 | ChangeSetting(GameSetting), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 89 | Play, [INFO] [stdout] | ^^^^ [INFO] [stdout] 90 | Back, [INFO] [stdout] | ^^^^ [INFO] [stdout] 91 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | InputError, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 93 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ScreenWidth` is never constructed [INFO] [stdout] --> src/game_state.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum GameSetting { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 34 | ScreenWidth, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameSetting` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_menu` is never used [INFO] [stdout] --> src/menu.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn main_menu(width: usize) -> Menu { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/game_state.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn begin(screen_width: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `settings_menu` is never used [INFO] [stdout] --> src/menu.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn settings_menu(width: usize) -> Menu { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_item` is never used [INFO] [stdout] --> src/menu_state.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn select_item(menu: Menu, item: &str) -> menu::Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `display_menu`, and `update_settings` are never used [INFO] [stdout] --> src/menu.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Menu { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 13 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn display_menu(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn update_settings(&mut self, settings: &GameSettings) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/menu_state.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn begin(settings: &mut game_state::GameSettings) -> menu::Command { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from` and `display` are never used [INFO] [stdout] --> src/room.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Room { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn from( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/room_state.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn begin(settings: &GameSettings) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/menu.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 86 | SetMenu(Menu), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 87 | RunFunc(fn()), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 88 | ChangeSetting(GameSetting), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 89 | Play, [INFO] [stdout] | ^^^^ [INFO] [stdout] 90 | Back, [INFO] [stdout] | ^^^^ [INFO] [stdout] 91 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | InputError, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 93 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_lighting` is never used [INFO] [stdout] --> src/room_state.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_lighting(room: &Room) -> Lighting { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_menu` is never used [INFO] [stdout] --> src/menu.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn main_menu(width: usize) -> Menu { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lorem_ipsum` is never used [INFO] [stdout] --> src/room_state.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn lorem_ipsum(settings: &GameSettings) -> Room { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `settings_menu` is never used [INFO] [stdout] --> src/menu.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn settings_menu(width: usize) -> Menu { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_next_instruction` is never used [INFO] [stdout] --> src/room_state.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn get_next_instruction() -> Command { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_item` is never used [INFO] [stdout] --> src/menu_state.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn select_item(menu: Menu, item: &str) -> menu::Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Move`, `Continue`, `Pause`, and `Quit` are never constructed [INFO] [stdout] --> src/room_state.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 57 | Move(Direction), [INFO] [stdout] | ^^^^ [INFO] [stdout] 58 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | Pause, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 60 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/menu_state.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn begin(settings: &mut game_state::GameSettings) -> menu::Command { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from` and `display` are never used [INFO] [stdout] --> src/room.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Room { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn from( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `begin` is never used [INFO] [stdout] --> src/room_state.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn begin(settings: &GameSettings) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_lighting` is never used [INFO] [stdout] --> src/room_state.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_lighting(room: &Room) -> Lighting { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lorem_ipsum` is never used [INFO] [stdout] --> src/room_state.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn lorem_ipsum(settings: &GameSettings) -> Room { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_next_instruction` is never used [INFO] [stdout] --> src/room_state.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn get_next_instruction() -> Command { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/room_state.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 65 | North, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 66 | South, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 67 | East, [INFO] [stdout] | ^^^^ [INFO] [stdout] 68 | West, [INFO] [stdout] | ^^^^ [INFO] [stdout] 69 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 70 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 71 | Here, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Move`, `Continue`, `Pause`, and `Quit` are never constructed [INFO] [stdout] --> src/room_state.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 57 | Move(Direction), [INFO] [stdout] | ^^^^ [INFO] [stdout] 58 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | Pause, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 60 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_DoorState` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/room_state.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 65 | North, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 66 | South, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 67 | East, [INFO] [stdout] | ^^^^ [INFO] [stdout] 68 | West, [INFO] [stdout] | ^^^^ [INFO] [stdout] 69 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 70 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 71 | Here, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_DoorState` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Door` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_DoorState` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Door` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_DoorState` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Room` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:23:28 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Room` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Door` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Door` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Lighting` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Room` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:23:28 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Room` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:112:28 [INFO] [stdout] | [INFO] [stdout] 112 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Lighting` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Lighting` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/room.rs:112:28 [INFO] [stdout] | [INFO] [stdout] 112 | #[derive(Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Lighting` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sherlock` (bin "sherlock") due to 9 previous errors; 21 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `sherlock` (bin "sherlock" test) due to 9 previous errors; 21 warnings emitted [INFO] running `Command { std: "docker" "inspect" "16941667172d96e2e79d78346eda9d725ce459dbbbbbff0b2e64df5009674652", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16941667172d96e2e79d78346eda9d725ce459dbbbbbff0b2e64df5009674652", kill_on_drop: false }` [INFO] [stdout] 16941667172d96e2e79d78346eda9d725ce459dbbbbbff0b2e64df5009674652