[INFO] cloning repository https://github.com/Stratus51/coding_games_ocean_of_code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Stratus51/coding_games_ocean_of_code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStratus51%2Fcoding_games_ocean_of_code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStratus51%2Fcoding_games_ocean_of_code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eb7a492144672defb4403fa87aaa6c4abf7aeb28 [INFO] checking Stratus51/coding_games_ocean_of_code/eb7a492144672defb4403fa87aaa6c4abf7aeb28 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStratus51%2Fcoding_games_ocean_of_code" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Stratus51/coding_games_ocean_of_code on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Stratus51/coding_games_ocean_of_code [INFO] finished tweaking git repo https://github.com/Stratus51/coding_games_ocean_of_code [INFO] tweaked toml for git repo https://github.com/Stratus51/coding_games_ocean_of_code written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Stratus51/coding_games_ocean_of_code 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 914c69f4968c507b28a57cc33296bc362fbbd96c6f20961cf4f7fb6b35076da6 [INFO] running `Command { std: "docker" "start" "-a" "914c69f4968c507b28a57cc33296bc362fbbd96c6f20961cf4f7fb6b35076da6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "914c69f4968c507b28a57cc33296bc362fbbd96c6f20961cf4f7fb6b35076da6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "914c69f4968c507b28a57cc33296bc362fbbd96c6f20961cf4f7fb6b35076da6", kill_on_drop: false }` [INFO] [stdout] 914c69f4968c507b28a57cc33296bc362fbbd96c6f20961cf4f7fb6b35076da6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 236ddacfb4fe44ef0d53dd95d51c3548ebbb9df170936736e8e84fa9773c9996 [INFO] running `Command { std: "docker" "start" "-a" "236ddacfb4fe44ef0d53dd95d51c3548ebbb9df170936736e8e84fa9773c9996", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking coding_games_ocean_of_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:510:13 [INFO] [stdout] | [INFO] [stdout] 510 | for i in 0..size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:510:13 [INFO] [stdout] | [INFO] [stdout] 510 | for i in 0..size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sonar_result` [INFO] [stdout] --> src/main.rs:1242:13 [INFO] [stdout] | [INFO] [stdout] 1242 | let sonar_result = input_line.trim().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sonar_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sonar_result` [INFO] [stdout] --> src/main.rs:1242:13 [INFO] [stdout] | [INFO] [stdout] 1242 | let sonar_result = input_line.trim().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sonar_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NB_SECTORS` is never used [INFO] [stdout] --> src/main.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const NB_SECTORS: usize = 9; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NB_SECTORS` is never used [INFO] [stdout] --> src/main.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const NB_SECTORS: usize = 9; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sonar` and `Mine` are never constructed [INFO] [stdout] --> src/main.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 102 | enum System { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 103 | Torpedo, [INFO] [stdout] 104 | Sonar, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 105 | Silence, [INFO] [stdout] 106 | Mine, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `System` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/main.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 122 | impl System { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 123 | fn parse(s: &str) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sonar` and `Mine` are never constructed [INFO] [stdout] --> src/main.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 102 | enum System { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 103 | Torpedo, [INFO] [stdout] 104 | Sonar, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 105 | Silence, [INFO] [stdout] 106 | Mine, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `System` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/main.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 122 | impl System { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 123 | fn parse(s: &str) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nb_true_bits` is never used [INFO] [stdout] --> src/main.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | fn nb_true_bits(n: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nb_false_bits` is never used [INFO] [stdout] --> src/main.rs:149:4 [INFO] [stdout] | [INFO] [stdout] 149 | fn nb_false_bits(n: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TRUE_BITS` is never used [INFO] [stdout] --> src/main.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | static mut TRUE_BITS: [u8; 128] = [0; 128]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `FALSE_BITS` is never used [INFO] [stdout] --> src/main.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 159 | static mut FALSE_BITS: [u8; 128] = [0; 128]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_maps` is never used [INFO] [stdout] --> src/main.rs:161:11 [INFO] [stdout] | [INFO] [stdout] 161 | unsafe fn init_maps() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/main.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 173 | impl NewMap { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | fn set(&mut self, pos: Pos, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn get(&self, pos: Pos) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | fn copy_from(&mut self, map: &NewMap) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | fn shift(&mut self, dir: &Direction, n: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | fn ipos_shift(&mut self, pos_shift: IPos) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn first_match(&self, value: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn count(&self, value: bool) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn compose(&self, map: &NewMap, map_offset: &Pos) -> NewMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `eq_or` and `reset` are never used [INFO] [stdout] --> src/main.rs:389:8 [INFO] [stdout] | [INFO] [stdout] 336 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 389 | fn eq_or(&mut self, map: &Map) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 399 | fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dist` and `isub` are never used [INFO] [stdout] --> src/main.rs:715:8 [INFO] [stdout] | [INFO] [stdout] 714 | impl Pos { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 715 | fn dist(&self, rhs: &Pos) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 719 | fn isub(&self, rhs: &Self) -> IPos { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IPos` is never constructed [INFO] [stdout] --> src/main.rs:727:8 [INFO] [stdout] | [INFO] [stdout] 727 | struct IPos { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OffCenteredMap` is never constructed [INFO] [stdout] --> src/main.rs:736:8 [INFO] [stdout] | [INFO] [stdout] 736 | struct OffCenteredMap { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nb_true_bits` is never used [INFO] [stdout] --> src/main.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | fn nb_true_bits(n: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:741:14 [INFO] [stdout] | [INFO] [stdout] 740 | impl OffCenteredMap { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 741 | const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nb_false_bits` is never used [INFO] [stdout] --> src/main.rs:149:4 [INFO] [stdout] | [INFO] [stdout] 149 | fn nb_false_bits(n: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SECTOR_MASK` is never used [INFO] [stdout] --> src/main.rs:749:12 [INFO] [stdout] | [INFO] [stdout] 749 | static mut SECTOR_MASK: [NewMap; NB_SECTORS] = [NewMap::new(); NB_SECTORS]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TRUE_BITS` is never used [INFO] [stdout] --> src/main.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | static mut TRUE_BITS: [u8; 128] = [0; 128]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TORPEDO_RANGE_MAP` is never used [INFO] [stdout] --> src/main.rs:750:12 [INFO] [stdout] | [INFO] [stdout] 750 | static mut TORPEDO_RANGE_MAP: OffCenteredMap = OffCenteredMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TORPEDO_SIDE_HIT_MAP` is never used [INFO] [stdout] --> src/main.rs:751:12 [INFO] [stdout] | [INFO] [stdout] 751 | static mut TORPEDO_SIDE_HIT_MAP: OffCenteredMap = OffCenteredMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `FALSE_BITS` is never used [INFO] [stdout] --> src/main.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 159 | static mut FALSE_BITS: [u8; 128] = [0; 128]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SILENCE_RANGE_MAP` is never used [INFO] [stdout] --> src/main.rs:752:12 [INFO] [stdout] | [INFO] [stdout] 752 | static mut SILENCE_RANGE_MAP: OffCenteredMap = OffCenteredMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_maps` is never used [INFO] [stdout] --> src/main.rs:161:11 [INFO] [stdout] | [INFO] [stdout] 161 | unsafe fn init_maps() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_game_maps` is never used [INFO] [stdout] --> src/main.rs:754:11 [INFO] [stdout] | [INFO] [stdout] 754 | unsafe fn init_game_maps() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FuzzyPos` is never used [INFO] [stdout] --> src/main.rs:803:6 [INFO] [stdout] | [INFO] [stdout] 803 | enum FuzzyPos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PosData` is never constructed [INFO] [stdout] --> src/main.rs:809:8 [INFO] [stdout] | [INFO] [stdout] 809 | struct PosData { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/main.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 173 | impl NewMap { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | fn set(&mut self, pos: Pos, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn get(&self, pos: Pos) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | fn copy_from(&mut self, map: &NewMap) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | fn shift(&mut self, dir: &Direction, n: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | fn ipos_shift(&mut self, pos_shift: IPos) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn first_match(&self, value: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn count(&self, value: bool) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn compose(&self, map: &NewMap, map_offset: &Pos) -> NewMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `analyse_action`, and `analyse_actions` are never used [INFO] [stdout] --> src/main.rs:822:8 [INFO] [stdout] | [INFO] [stdout] 821 | impl PosData { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 822 | fn new(water_map: NewMap) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 831 | fn analyse_action(&mut self, action: &OppAction) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 882 | fn analyse_actions(&mut self, actions: &[OppAction]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MeAction` is never used [INFO] [stdout] --> src/main.rs:974:6 [INFO] [stdout] | [INFO] [stdout] 974 | enum MeAction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/main.rs:399:8 [INFO] [stdout] | [INFO] [stdout] 336 | impl Map { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 399 | fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_opp_action` is never used [INFO] [stdout] --> src/main.rs:998:8 [INFO] [stdout] | [INFO] [stdout] 997 | impl MeAction { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 998 | fn into_opp_action(&self, current_sector: usize) -> OppAction { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OppAction` is never used [INFO] [stdout] --> src/main.rs:1013:6 [INFO] [stdout] | [INFO] [stdout] 1013 | enum OppAction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dist` and `isub` are never used [INFO] [stdout] --> src/main.rs:715:8 [INFO] [stdout] | [INFO] [stdout] 714 | impl Pos { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 715 | fn dist(&self, rhs: &Pos) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 719 | fn isub(&self, rhs: &Self) -> IPos { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/main.rs:1021:8 [INFO] [stdout] | [INFO] [stdout] 1020 | impl OppAction { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 1021 | fn parse(s: &str) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IPos` is never constructed [INFO] [stdout] --> src/main.rs:727:8 [INFO] [stdout] | [INFO] [stdout] 727 | struct IPos { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `torpedo` is never used [INFO] [stdout] --> src/main.rs:1278:8 [INFO] [stdout] | [INFO] [stdout] 1153 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1278 | fn torpedo(&mut self, pos: Pos) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OffCenteredMap` is never constructed [INFO] [stdout] --> src/main.rs:736:8 [INFO] [stdout] | [INFO] [stdout] 736 | struct OffCenteredMap { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:741:14 [INFO] [stdout] | [INFO] [stdout] 740 | impl OffCenteredMap { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 741 | const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SECTOR_MASK` is never used [INFO] [stdout] --> src/main.rs:749:12 [INFO] [stdout] | [INFO] [stdout] 749 | static mut SECTOR_MASK: [NewMap; NB_SECTORS] = [NewMap::new(); NB_SECTORS]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TORPEDO_RANGE_MAP` is never used [INFO] [stdout] --> src/main.rs:750:12 [INFO] [stdout] | [INFO] [stdout] 750 | static mut TORPEDO_RANGE_MAP: OffCenteredMap = OffCenteredMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TORPEDO_SIDE_HIT_MAP` is never used [INFO] [stdout] --> src/main.rs:751:12 [INFO] [stdout] | [INFO] [stdout] 751 | static mut TORPEDO_SIDE_HIT_MAP: OffCenteredMap = OffCenteredMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SILENCE_RANGE_MAP` is never used [INFO] [stdout] --> src/main.rs:752:12 [INFO] [stdout] | [INFO] [stdout] 752 | static mut SILENCE_RANGE_MAP: OffCenteredMap = OffCenteredMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_game_maps` is never used [INFO] [stdout] --> src/main.rs:754:11 [INFO] [stdout] | [INFO] [stdout] 754 | unsafe fn init_game_maps() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FuzzyPos` is never used [INFO] [stdout] --> src/main.rs:803:6 [INFO] [stdout] | [INFO] [stdout] 803 | enum FuzzyPos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PosData` is never constructed [INFO] [stdout] --> src/main.rs:809:8 [INFO] [stdout] | [INFO] [stdout] 809 | struct PosData { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `analyse_action`, and `analyse_actions` are never used [INFO] [stdout] --> src/main.rs:822:8 [INFO] [stdout] | [INFO] [stdout] 821 | impl PosData { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 822 | fn new(water_map: NewMap) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 831 | fn analyse_action(&mut self, action: &OppAction) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 882 | fn analyse_actions(&mut self, actions: &[OppAction]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MeAction` is never used [INFO] [stdout] --> src/main.rs:974:6 [INFO] [stdout] | [INFO] [stdout] 974 | enum MeAction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_opp_action` is never used [INFO] [stdout] --> src/main.rs:998:8 [INFO] [stdout] | [INFO] [stdout] 997 | impl MeAction { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 998 | fn into_opp_action(&self, current_sector: usize) -> OppAction { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OppAction` is never used [INFO] [stdout] --> src/main.rs:1013:6 [INFO] [stdout] | [INFO] [stdout] 1013 | enum OppAction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/main.rs:1021:8 [INFO] [stdout] | [INFO] [stdout] 1020 | impl OppAction { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 1021 | fn parse(s: &str) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `torpedo` is never used [INFO] [stdout] --> src/main.rs:1278:8 [INFO] [stdout] | [INFO] [stdout] 1153 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1278 | fn torpedo(&mut self, pos: Pos) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.39s [INFO] running `Command { std: "docker" "inspect" "236ddacfb4fe44ef0d53dd95d51c3548ebbb9df170936736e8e84fa9773c9996", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "236ddacfb4fe44ef0d53dd95d51c3548ebbb9df170936736e8e84fa9773c9996", kill_on_drop: false }` [INFO] [stdout] 236ddacfb4fe44ef0d53dd95d51c3548ebbb9df170936736e8e84fa9773c9996