[INFO] cloning repository https://github.com/jlrickert/rusty [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jlrickert/rusty" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjlrickert%2Frusty", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjlrickert%2Frusty'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8c6f28451a73425db469616de8ccd57e8c3cb6f2 [INFO] building jlrickert/rusty against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjlrickert%2Frusty" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jlrickert/rusty on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jlrickert/rusty [INFO] finished tweaking git repo https://github.com/jlrickert/rusty [INFO] tweaked toml for git repo https://github.com/jlrickert/rusty written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jlrickert/rusty 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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 fuchsia-zircon-sys v0.3.2 [INFO] [stderr] Downloaded rand v0.4.1 [INFO] [stderr] Downloaded fuchsia-zircon v0.3.2 [INFO] [stderr] Downloaded redox_syscall v0.1.34 [INFO] [stderr] Downloaded winapi v0.3.3 [INFO] [stderr] Downloaded winapi-i686-pc-windows-gnu v0.3.2 [INFO] [stderr] Downloaded winapi-x86_64-pc-windows-gnu v0.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a8f05bf37793a1fea95601fa9e38f1bc549918bc46bd03a23512794cc608c50 [INFO] running `Command { std: "docker" "start" "-a" "4a8f05bf37793a1fea95601fa9e38f1bc549918bc46bd03a23512794cc608c50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a8f05bf37793a1fea95601fa9e38f1bc549918bc46bd03a23512794cc608c50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a8f05bf37793a1fea95601fa9e38f1bc549918bc46bd03a23512794cc608c50", kill_on_drop: false }` [INFO] [stdout] 4a8f05bf37793a1fea95601fa9e38f1bc549918bc46bd03a23512794cc608c50 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a56887ffa6eeaa96c08c9d64c86e2606888adf4607724b432ddeab751033ae6 [INFO] running `Command { std: "docker" "start" "-a" "2a56887ffa6eeaa96c08c9d64c86e2606888adf4607724b432ddeab751033ae6", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling libc v0.2.34 [INFO] [stderr] Compiling term v0.4.6 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling time v0.1.39 [INFO] [stderr] Compiling rand v0.4.1 [INFO] [stderr] Compiling simplelog v0.4.4 [INFO] [stderr] Compiling MyBot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::Eq` [INFO] [stdout] --> src/hlt/entity/position.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::Eq; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/hlt/entity/ship.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/hlt/game_map.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [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:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | 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 imports: `DockingStatus` and `Entity` [INFO] [stdout] --> src/rusty/bot.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use hlt::entity::{Entity, DockingStatus}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/rusty/unit.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DOCK_RADIUS` [INFO] [stdout] --> src/rusty/unit.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use hlt::constants::{MAX_SPEED, DOCK_RADIUS}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Planet` [INFO] [stdout] --> src/rusty/unit.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | use hlt::entity::{Entity, Ship, Position, Planet}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let name = "Rusty"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_origin` is never used [INFO] [stdout] --> src/hlt/entity/position.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Position { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | pub fn from_origin(pos: &T, angle: f64, distance: f64) -> Position { [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/ship.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Ship { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub docked_planet: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub progress: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | 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 `undock` is never used [INFO] [stdout] --> src/hlt/entity/ship.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Ship { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn undock(&self) -> Command { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_owned` is never used [INFO] [stdout] --> src/hlt/entity/planet.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Planet { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 21 | /// Determine if the planet has an owner. [INFO] [stdout] 22 | pub fn is_owned(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `map_width` and `map_height` are never read [INFO] [stdout] --> src/hlt/game.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | pub my_id: usize, [INFO] [stdout] 10 | pub map_width: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | pub map_height: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Undock` is never constructed [INFO] [stdout] --> src/hlt/command.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 5 | Dock(i32, i32), [INFO] [stdout] 6 | Undock(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `all_ships` and `obstacles_between` are never used [INFO] [stdout] --> src/hlt/game_map.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> GameMap<'a> { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn all_ships(&self) -> Box<[&Ship]> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn obstacles_between(&self, ship: &Ship, target: &T, fudge: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Attacker`, `Defense`, and `Sabotage` are never constructed [INFO] [stdout] --> src/rusty/behavior.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Behavior { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 5 | Attacker, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | Defense, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | Sabotage, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Behavior` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/rusty/unit.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 48 | | "Mismatch ship and unit id: Ship id == {}, Unit id == {}", [INFO] [stdout] 49 | | ship.id, [INFO] [stdout] 50 | | self.ship_id [INFO] [stdout] 51 | | )) [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] 47 ~ panic!( [INFO] [stdout] 48 | "Mismatch ship and unit id: Ship id == {}, Unit id == {}", [INFO] [stdout] 49 | ship.id, [INFO] [stdout] 50 | self.ship_id [INFO] [stdout] 51 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/rusty/unit.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 72 | | "Mismatch ship and unit id: Ship id == {}, Unit id == {}", [INFO] [stdout] 73 | | ship.id, [INFO] [stdout] 74 | | self.ship_id [INFO] [stdout] 75 | | )) [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] 71 ~ panic!( [INFO] [stdout] 72 | "Mismatch ship and unit id: Ship id == {}, Unit id == {}", [INFO] [stdout] 73 | ship.id, [INFO] [stdout] 74 | self.ship_id [INFO] [stdout] 75 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.30s [INFO] running `Command { std: "docker" "inspect" "2a56887ffa6eeaa96c08c9d64c86e2606888adf4607724b432ddeab751033ae6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a56887ffa6eeaa96c08c9d64c86e2606888adf4607724b432ddeab751033ae6", kill_on_drop: false }` [INFO] [stdout] 2a56887ffa6eeaa96c08c9d64c86e2606888adf4607724b432ddeab751033ae6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4155a3deb3bd002b062ec73ce140abe91df81e66254cbdb0fb7bff82a9b623c7 [INFO] running `Command { std: "docker" "start" "-a" "4155a3deb3bd002b062ec73ce140abe91df81e66254cbdb0fb7bff82a9b623c7", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling MyBot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::Eq` [INFO] [stdout] --> src/hlt/entity/position.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::Eq; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/hlt/entity/ship.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/hlt/game_map.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [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:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | 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 imports: `DockingStatus` and `Entity` [INFO] [stdout] --> src/rusty/bot.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use hlt::entity::{Entity, DockingStatus}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/rusty/unit.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DOCK_RADIUS` [INFO] [stdout] --> src/rusty/unit.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use hlt::constants::{MAX_SPEED, DOCK_RADIUS}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Planet` [INFO] [stdout] --> src/rusty/unit.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | use hlt::entity::{Entity, Ship, Position, Planet}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let name = "Rusty"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_origin` is never used [INFO] [stdout] --> src/hlt/entity/position.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Position { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | pub fn from_origin(pos: &T, angle: f64, distance: f64) -> Position { [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/ship.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Ship { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub docked_planet: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub progress: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | 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 `undock` is never used [INFO] [stdout] --> src/hlt/entity/ship.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Ship { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn undock(&self) -> Command { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_owned` is never used [INFO] [stdout] --> src/hlt/entity/planet.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Planet { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 21 | /// Determine if the planet has an owner. [INFO] [stdout] 22 | pub fn is_owned(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `map_width` and `map_height` are never read [INFO] [stdout] --> src/hlt/game.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | pub my_id: usize, [INFO] [stdout] 10 | pub map_width: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | pub map_height: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `all_ships` and `obstacles_between` are never used [INFO] [stdout] --> src/hlt/game_map.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> GameMap<'a> { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn all_ships(&self) -> Box<[&Ship]> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn obstacles_between(&self, ship: &Ship, target: &T, fudge: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Attacker`, `Defense`, and `Sabotage` are never constructed [INFO] [stdout] --> src/rusty/behavior.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Behavior { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 5 | Attacker, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | Defense, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | Sabotage, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Behavior` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/rusty/unit.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 48 | | "Mismatch ship and unit id: Ship id == {}, Unit id == {}", [INFO] [stdout] 49 | | ship.id, [INFO] [stdout] 50 | | self.ship_id [INFO] [stdout] 51 | | )) [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] 47 ~ panic!( [INFO] [stdout] 48 | "Mismatch ship and unit id: Ship id == {}, Unit id == {}", [INFO] [stdout] 49 | ship.id, [INFO] [stdout] 50 | self.ship_id [INFO] [stdout] 51 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/rusty/unit.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 72 | | "Mismatch ship and unit id: Ship id == {}, Unit id == {}", [INFO] [stdout] 73 | | ship.id, [INFO] [stdout] 74 | | self.ship_id [INFO] [stdout] 75 | | )) [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] 71 ~ panic!( [INFO] [stdout] 72 | "Mismatch ship and unit id: Ship id == {}, Unit id == {}", [INFO] [stdout] 73 | ship.id, [INFO] [stdout] 74 | self.ship_id [INFO] [stdout] 75 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.81s [INFO] running `Command { std: "docker" "inspect" "4155a3deb3bd002b062ec73ce140abe91df81e66254cbdb0fb7bff82a9b623c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4155a3deb3bd002b062ec73ce140abe91df81e66254cbdb0fb7bff82a9b623c7", kill_on_drop: false }` [INFO] [stdout] 4155a3deb3bd002b062ec73ce140abe91df81e66254cbdb0fb7bff82a9b623c7