[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] testing ipost/halite-2017 against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fipost%2Fhalite-2017" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ipost/halite-2017 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-4/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d2b4f7a780f1923e3907c19f5da0b7ce5ab4ea52357409bbe7b0a67f33c42ea6 [INFO] running `Command { std: "docker" "start" "-a" "d2b4f7a780f1923e3907c19f5da0b7ce5ab4ea52357409bbe7b0a67f33c42ea6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2b4f7a780f1923e3907c19f5da0b7ce5ab4ea52357409bbe7b0a67f33c42ea6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2b4f7a780f1923e3907c19f5da0b7ce5ab4ea52357409bbe7b0a67f33c42ea6", kill_on_drop: false }` [INFO] [stdout] d2b4f7a780f1923e3907c19f5da0b7ce5ab4ea52357409bbe7b0a67f33c42ea6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f24457607ab44bc69f826a6a9e1c441f45f86a0a498082b0b34360a08fd4c684 [INFO] running `Command { std: "docker" "start" "-a" "f24457607ab44bc69f826a6a9e1c441f45f86a0a498082b0b34360a08fd4c684", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.33 [INFO] [stderr] Compiling time v0.1.38 [INFO] [stderr] Compiling 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] = note: `#[warn(anonymous_parameters)]` on by default [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] [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: 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] = note: `#[warn(unused_variables)]` 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] [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: function is never used: `eradicate` [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: associated function is never used: `projected_damage_taken` [INFO] [stdout] --> src/hlt/entity.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 247 | pub fn projected_damage_taken(&self, game_map: &GameMap) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `obstacles_for_raid_ignore_defenders` [INFO] [stdout] --> src/hlt/game_map.rs:78:12 [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] [INFO] [stdout] warning: associated function is never used: `obstacles_for_eradicate` [INFO] [stdout] --> src/hlt/game_map.rs:110:12 [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: `#[warn(non_fmt_panics)]` on by default [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] 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] warning: crate `MyBot` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `my_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.99s [INFO] running `Command { std: "docker" "inspect" "f24457607ab44bc69f826a6a9e1c441f45f86a0a498082b0b34360a08fd4c684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f24457607ab44bc69f826a6a9e1c441f45f86a0a498082b0b34360a08fd4c684", kill_on_drop: false }` [INFO] [stdout] f24457607ab44bc69f826a6a9e1c441f45f86a0a498082b0b34360a08fd4c684 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 10519dba3ab4afc77479eb7fe15820def784e49412aacba54e1002c4dbf1cd52 [INFO] running `Command { std: "docker" "start" "-a" "10519dba3ab4afc77479eb7fe15820def784e49412aacba54e1002c4dbf1cd52", kill_on_drop: false }` [INFO] [stderr] Compiling memetron_420 v0.1.0 (/opt/rustwide/workdir) [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] = note: `#[warn(anonymous_parameters)]` on by default [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] [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] error: aborting due to previous error; 11 warnings emitted [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` due to 2 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "10519dba3ab4afc77479eb7fe15820def784e49412aacba54e1002c4dbf1cd52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10519dba3ab4afc77479eb7fe15820def784e49412aacba54e1002c4dbf1cd52", kill_on_drop: false }` [INFO] [stdout] 10519dba3ab4afc77479eb7fe15820def784e49412aacba54e1002c4dbf1cd52