[INFO] cloning repository https://github.com/ipost/halite-2017 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ipost/halite-2017" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fipost%2Fhalite-2017", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fipost%2Fhalite-2017'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6be8af94abf3baa9c61cf550fce6eca95883a9ac [INFO] checking ipost/halite-2017 against try#ef5216c337126ffe24d074826f4023948c4a9b8e for pr-137033 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fipost%2Fhalite-2017" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write file bots/VanillaSettler [INFO] [stderr] error: unable to write file bots/attack_bot [INFO] [stderr] error: unable to write file bots/cheesebot [INFO] [stderr] error: unable to write file bots/cheesebotv2 [INFO] [stderr] error: unable to write file bots/ipostv1 [INFO] [stderr] error: unable to write file bots/ipostv10 [INFO] [stderr] error: unable to write file bots/ipostv11 [INFO] [stderr] error: unable to write file bots/ipostv12 [INFO] [stderr] error: unable to write file bots/ipostv15 [INFO] [stderr] error: unable to write file bots/ipostv16 [INFO] [stderr] error: unable to write file bots/ipostv2 [INFO] [stderr] error: unable to write file bots/ipostv3 [INFO] [stderr] error: unable to write file bots/ipostv4 [INFO] [stderr] error: unable to write file bots/ipostv5 [INFO] [stderr] error: unable to write file bots/ipostv6 [INFO] [stderr] error: unable to write file bots/ipostv7 [INFO] [stderr] error: unable to write file bots/ipostv8 [INFO] [stderr] error: unable to write file bots/ipostv9 [INFO] [stderr] error: unable to write file halite_osx [INFO] [stderr] error: unable to write file notes [INFO] [stderr] error: unable to write file prepare_submission.sh [INFO] [stderr] error: unable to write file run_game.sh [INFO] [stderr] error: unable to write file rustfmt.toml [INFO] [stderr] error: unable to write file src/main.rs [INFO] [stderr] fatal: cannot create directory at 'target': No space left on device [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] checking ipost/halite-2017 against try#ef5216c337126ffe24d074826f4023948c4a9b8e for pr-137033 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fipost%2Fhalite-2017" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ipost/halite-2017 on toolchain ef5216c337126ffe24d074826f4023948c4a9b8e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ipost/halite-2017 [INFO] finished tweaking git repo https://github.com/ipost/halite-2017 [INFO] tweaked toml for git repo https://github.com/ipost/halite-2017 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ipost/halite-2017 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" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_derive v1.0.20 [INFO] [stderr] Downloaded clippy v0.0.170 [INFO] [stderr] Downloaded clippy_lints v0.0.170 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88a27271d1361fc7b6f072b0cab754a5c06d79e6ac824a74947e5fc9b373b22b [INFO] running `Command { std: "docker" "start" "-a" "88a27271d1361fc7b6f072b0cab754a5c06d79e6ac824a74947e5fc9b373b22b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88a27271d1361fc7b6f072b0cab754a5c06d79e6ac824a74947e5fc9b373b22b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88a27271d1361fc7b6f072b0cab754a5c06d79e6ac824a74947e5fc9b373b22b", kill_on_drop: false }` [INFO] [stdout] 88a27271d1361fc7b6f072b0cab754a5c06d79e6ac824a74947e5fc9b373b22b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f58d76d141db0eac828a2016db5784fbece0b55fab55926b6c7800d0f66c39ff [INFO] running `Command { std: "docker" "start" "-a" "f58d76d141db0eac828a2016db5784fbece0b55fab55926b6c7800d0f66c39ff", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.33 [INFO] [stderr] Checking time v0.1.38 [INFO] [stderr] Checking memetron_420 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `hlt::logging::Logger` [INFO] [stdout] --> src/hlt/entity.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use hlt::logging::Logger; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/hlt/entity.rs:127:44 [INFO] [stdout] | [INFO] [stdout] 127 | self.distance_to_less_than(planet, (DOCK_RADIUS + planet.get_radius())) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - self.distance_to_less_than(planet, (DOCK_RADIUS + planet.get_radius())) [INFO] [stdout] 127 + self.distance_to_less_than(planet, DOCK_RADIUS + planet.get_radius()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/hlt/entity.rs:512:9 [INFO] [stdout] | [INFO] [stdout] 512 | ((((edge_dist_x / game_map.width()) + (edge_dist_y / game_map.height())))), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 512 - ((((edge_dist_x / game_map.width()) + (edge_dist_y / game_map.height())))), [INFO] [stdout] 512 + (((edge_dist_x / game_map.width()) + (edge_dist_y / game_map.height()))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/hlt/parse.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | fn parse<'a, I>(&mut I) -> Self [INFO] [stdout] | ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut I` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:962:25 [INFO] [stdout] | [INFO] [stdout] 962 | (ship_to_defend.get_position().0 + (dx / magnitude)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 962 - (ship_to_defend.get_position().0 + (dx / magnitude)), [INFO] [stdout] 962 + ship_to_defend.get_position().0 + (dx / magnitude), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:963:25 [INFO] [stdout] | [INFO] [stdout] 963 | (ship_to_defend.get_position().1 + (dy / magnitude)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 963 - (ship_to_defend.get_position().1 + (dy / magnitude)), [INFO] [stdout] 963 + ship_to_defend.get_position().1 + (dy / magnitude), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:972:25 [INFO] [stdout] | [INFO] [stdout] 972 | (enemy_ship.get_position().0 - (dx / magnitude)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 972 - (enemy_ship.get_position().0 - (dx / magnitude)), [INFO] [stdout] 972 + enemy_ship.get_position().0 - (dx / magnitude), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:973:25 [INFO] [stdout] | [INFO] [stdout] 973 | (enemy_ship.get_position().1 - (dy / magnitude)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 973 - (enemy_ship.get_position().1 - (dy / magnitude)), [INFO] [stdout] 973 + enemy_ship.get_position().1 - (dy / magnitude), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `command` [INFO] [stdout] --> src/hlt/command.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | use command::Command; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `hlt::command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hlt::logging::Logger` [INFO] [stdout] --> src/hlt/entity.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use hlt::logging::Logger; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/hlt/entity.rs:127:44 [INFO] [stdout] | [INFO] [stdout] 127 | self.distance_to_less_than(planet, (DOCK_RADIUS + planet.get_radius())) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - self.distance_to_less_than(planet, (DOCK_RADIUS + planet.get_radius())) [INFO] [stdout] 127 + self.distance_to_less_than(planet, DOCK_RADIUS + planet.get_radius()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/hlt/entity.rs:512:9 [INFO] [stdout] | [INFO] [stdout] 512 | ((((edge_dist_x / game_map.width()) + (edge_dist_y / game_map.height())))), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 512 - ((((edge_dist_x / game_map.width()) + (edge_dist_y / game_map.height())))), [INFO] [stdout] 512 + (((edge_dist_x / game_map.width()) + (edge_dist_y / game_map.height()))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/hlt/parse.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | fn parse<'a, I>(&mut I) -> Self [INFO] [stdout] | ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut I` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:962:25 [INFO] [stdout] | [INFO] [stdout] 962 | (ship_to_defend.get_position().0 + (dx / magnitude)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 962 - (ship_to_defend.get_position().0 + (dx / magnitude)), [INFO] [stdout] 962 + ship_to_defend.get_position().0 + (dx / magnitude), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:963:25 [INFO] [stdout] | [INFO] [stdout] 963 | (ship_to_defend.get_position().1 + (dy / magnitude)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 963 - (ship_to_defend.get_position().1 + (dy / magnitude)), [INFO] [stdout] 963 + ship_to_defend.get_position().1 + (dy / magnitude), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:972:25 [INFO] [stdout] | [INFO] [stdout] 972 | (enemy_ship.get_position().0 - (dx / magnitude)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 972 - (enemy_ship.get_position().0 - (dx / magnitude)), [INFO] [stdout] 972 + enemy_ship.get_position().0 - (dx / magnitude), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:973:25 [INFO] [stdout] | [INFO] [stdout] 973 | (enemy_ship.get_position().1 - (dy / magnitude)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 973 - (enemy_ship.get_position().1 - (dy / magnitude)), [INFO] [stdout] 973 + enemy_ship.get_position().1 - (dy / magnitude), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hlt/entity.rs:354:21 [INFO] [stdout] | [INFO] [stdout] 353 | panic!("inside something"); [INFO] [stdout] | -------------------------- any code following this expression is unreachable [INFO] [stdout] 354 | obstacle.position.calculate_angle_between(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hlt/entity.rs:354:21 [INFO] [stdout] | [INFO] [stdout] 353 | panic!("inside something"); [INFO] [stdout] | -------------------------- any code following this expression is unreachable [INFO] [stdout] 354 | obstacle.position.calculate_angle_between(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/hlt/entity.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | let c = if c > enemy_ship.hp_percent() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance_to_aggressor` [INFO] [stdout] --> src/hlt/entity.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | let distance_to_aggressor = self.distance_to_surface(enemy_ship); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance_to_aggressor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/hlt/entity.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | let c = if c > enemy_ship.hp_percent() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance_to_aggressor` [INFO] [stdout] --> src/hlt/entity.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | let distance_to_aggressor = self.distance_to_surface(enemy_ship); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance_to_aggressor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hlt/game.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | for mut ship in player.ships.iter_mut() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hlt/game.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | for mut ship in player.ships.iter_mut() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weakest_enemy_player` [INFO] [stdout] --> src/main.rs:449:13 [INFO] [stdout] | [INFO] [stdout] 449 | let weakest_enemy_player = game_map [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weakest_enemy_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weakest_enemy_player` [INFO] [stdout] --> src/main.rs:449:13 [INFO] [stdout] | [INFO] [stdout] 449 | let weakest_enemy_player = game_map [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weakest_enemy_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eradicate` is never used [INFO] [stdout] --> src/main.rs:754:4 [INFO] [stdout] | [INFO] [stdout] 754 | fn eradicate(ship: &Ship, game_map: &GameMap, logger: &mut Logger, player_id: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `docked_planet`, `progress`, and `cooldown` are never read [INFO] [stdout] --> src/hlt/entity.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct Ship { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 89 | pub docked_planet: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 90 | pub progress: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 91 | pub cooldown: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ship` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `projected_damage_taken` is never used [INFO] [stdout] --> src/hlt/entity.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl Ship { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn projected_damage_taken(&self, game_map: &GameMap) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `smart_distance_to` and `dist_to_at_less_than` are never used [INFO] [stdout] --> src/hlt/entity.rs:736:8 [INFO] [stdout] | [INFO] [stdout] 731 | pub trait Entity: Sized { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 736 | fn smart_distance_to(&self, target: &T) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 767 | fn dist_to_at_less_than(&self, target: &T, t: f64, query: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `obstacles_for_raid_ignore_defenders` and `obstacles_for_eradicate` are never used [INFO] [stdout] --> src/hlt/game_map.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'a> GameMap<'a> { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn obstacles_for_raid_ignore_defenders(&self, raiding_ship: &Ship, target_ship: &Ship) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn obstacles_for_eradicate(&self, ship: &Ship, player_id: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/hlt/entity.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | _ => panic!(format!("Not a valid docking status: {:?}", i)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 75 - _ => panic!(format!("Not a valid docking status: {:?}", i)), [INFO] [stdout] 75 + _ => panic!("Not a valid docking status: {:?}", i), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/hlt/macros.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | () => { panic!(format!("line {}", line!())) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/hlt/entity.rs:521:14 [INFO] [stdout] | [INFO] [stdout] 521 | _ => assert_unreachable!(), [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: this warning originates in the macro `assert_unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 5 - () => { panic!(format!("line {}", line!())) } [INFO] [stdout] 5 + () => { panic!("line {}", line!()) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/hlt/parse.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | _ => panic!(format!("Expected 0 or 1, got {:?}", p)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 61 - _ => panic!(format!("Expected 0 or 1, got {:?}", p)), [INFO] [stdout] 61 + _ => panic!("Expected 0 or 1, got {:?}", p), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `memetron_420` (bin "MyBot" test) due to 1 previous error; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f58d76d141db0eac828a2016db5784fbece0b55fab55926b6c7800d0f66c39ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f58d76d141db0eac828a2016db5784fbece0b55fab55926b6c7800d0f66c39ff", kill_on_drop: false }` [INFO] [stdout] f58d76d141db0eac828a2016db5784fbece0b55fab55926b6c7800d0f66c39ff