[INFO] cloning repository https://github.com/rossmacarthur/halite3-rust-starter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rossmacarthur/halite3-rust-starter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frossmacarthur%2Fhalite3-rust-starter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frossmacarthur%2Fhalite3-rust-starter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 605bdca6f6ef8ae567d871c37161a0bd3ae96f4d [INFO] checking rossmacarthur/halite3-rust-starter against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frossmacarthur%2Fhalite3-rust-starter" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rossmacarthur/halite3-rust-starter on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rossmacarthur/halite3-rust-starter [INFO] finished tweaking git repo https://github.com/rossmacarthur/halite3-rust-starter [INFO] tweaked toml for git repo https://github.com/rossmacarthur/halite3-rust-starter written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/rossmacarthur/halite3-rust-starter already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded simplelog v0.5.3 [INFO] [stderr] Downloaded derive_more v0.12.0 [INFO] [stderr] Downloaded log v0.4.5 [INFO] [stderr] Downloaded cfg-if v0.1.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1baedfeba8fc4321db3cfb8ec20b837c861097880a529dbc70bb27845d0bc87b [INFO] running `Command { std: "docker" "start" "-a" "1baedfeba8fc4321db3cfb8ec20b837c861097880a529dbc70bb27845d0bc87b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1baedfeba8fc4321db3cfb8ec20b837c861097880a529dbc70bb27845d0bc87b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1baedfeba8fc4321db3cfb8ec20b837c861097880a529dbc70bb27845d0bc87b", kill_on_drop: false }` [INFO] [stdout] 1baedfeba8fc4321db3cfb8ec20b837c861097880a529dbc70bb27845d0bc87b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06f005af8975641407c19356d3dfb2adae43eba903867efb5c43045fc69041b1 [INFO] running `Command { std: "docker" "start" "-a" "06f005af8975641407c19356d3dfb2adae43eba903867efb5c43045fc69041b1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.20 [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Checking cfg-if v0.1.5 [INFO] [stderr] Compiling failure_derive v0.1.2 [INFO] [stderr] Compiling serde v1.0.80 [INFO] [stderr] Compiling ryu v0.2.6 [INFO] [stderr] Checking rustc-demangle v0.1.9 [INFO] [stderr] Checking byteorder v1.2.6 [INFO] [stderr] Checking rand_core v0.3.0 [INFO] [stderr] Checking log v0.4.5 [INFO] [stderr] Checking rand_core v0.2.2 [INFO] [stderr] Checking term v0.5.1 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking rand v0.5.5 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Compiling quote v0.6.8 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Compiling backtrace-sys v0.1.24 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Compiling syn v0.15.12 [INFO] [stderr] Checking simplelog v0.5.3 [INFO] [stderr] Checking backtrace v0.3.9 [INFO] [stderr] Compiling serde_derive v1.0.80 [INFO] [stderr] Compiling synstructure v0.9.0 [INFO] [stderr] Compiling derive_more v0.12.0 [INFO] [stderr] Checking serde_json v1.0.32 [INFO] [stderr] Checking failure v0.1.2 [INFO] [stderr] Checking my_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/hlt/engine/mod.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | fmt.write_str(self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/hlt/engine/mod.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | fmt.write_str(self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hlt/engine/recv.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut player = self.players.get_mut(&player_id).ok_or(EngineParseError)?; [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: variant `ConvertToDropoff` is never constructed [INFO] [stdout] --> src/hlt/mod.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 150 | pub enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 154 | ConvertToDropoff(ShipId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_player`, `get_ship`, `get_dropoff`, and `navigate_to_halite` are never used [INFO] [stdout] --> src/hlt/mod.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 180 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn get_player(&self, player_id: PlayerId) -> Option<&Player> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_ship(&self, ship_id: ShipId) -> Option<&Ship> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn get_dropoff(&self, dropoff_id: DropoffId) -> Option<&Dropoff> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn navigate_to_halite(&self, ship_id: ShipId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invert` is never used [INFO] [stdout] --> src/hlt/board.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn invert(value: isize, dimension: isize) -> isize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/hlt/board.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Offset { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 35 | /// Return the length of this Offset. [INFO] [stdout] 36 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn signum(self) -> Offset { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn dx(self) -> Offset { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn dy(self) -> Offset { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn mirrored_dx(self) -> Offset { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn mirrored_dy(self) -> Offset { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn inverted_dx(self, width: isize) -> Offset { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn reduce(self, width: isize, height: isize) -> Offset { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn into_direction(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn inverted_dy(self, height: isize) -> Offset { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn inverted(self, width: isize, height: isize) -> Offset { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `surrounding` is never used [INFO] [stdout] --> src/hlt/board.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn surrounding(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_structure` and `is_empty` are never used [INFO] [stdout] --> src/hlt/board.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 205 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn has_structure(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hlt/engine/recv.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut player = self.players.get_mut(&player_id).ok_or(EngineParseError)?; [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: variant `ConvertToDropoff` is never constructed [INFO] [stdout] --> src/hlt/mod.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 150 | pub enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 154 | ConvertToDropoff(ShipId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_player`, `get_ship`, `get_dropoff`, and `navigate_to_halite` are never used [INFO] [stdout] --> src/hlt/mod.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 180 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn get_player(&self, player_id: PlayerId) -> Option<&Player> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_ship(&self, ship_id: ShipId) -> Option<&Ship> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn get_dropoff(&self, dropoff_id: DropoffId) -> Option<&Dropoff> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn navigate_to_halite(&self, ship_id: ShipId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `signum`, `dx`, `dy`, and `into_direction` are never used [INFO] [stdout] --> src/hlt/board.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Offset { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn signum(self) -> Offset { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn dx(self) -> Offset { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn dy(self) -> Offset { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn into_direction(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `surrounding` is never used [INFO] [stdout] --> src/hlt/board.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn surrounding(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_structure` and `is_empty` are never used [INFO] [stdout] --> src/hlt/board.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 205 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn has_structure(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.66s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.14.9 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "06f005af8975641407c19356d3dfb2adae43eba903867efb5c43045fc69041b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06f005af8975641407c19356d3dfb2adae43eba903867efb5c43045fc69041b1", kill_on_drop: false }` [INFO] [stdout] 06f005af8975641407c19356d3dfb2adae43eba903867efb5c43045fc69041b1 [INFO] checking rossmacarthur/halite3-rust-starter against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frossmacarthur%2Fhalite3-rust-starter" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rossmacarthur/halite3-rust-starter on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rossmacarthur/halite3-rust-starter [INFO] finished tweaking git repo https://github.com/rossmacarthur/halite3-rust-starter [INFO] tweaked toml for git repo https://github.com/rossmacarthur/halite3-rust-starter written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/rossmacarthur/halite3-rust-starter already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 494a8d41792a66e9b0dbd6d65c1a4d07eb20e77cd53a635b80aade74dfd50f85 [INFO] running `Command { std: "docker" "start" "-a" "494a8d41792a66e9b0dbd6d65c1a4d07eb20e77cd53a635b80aade74dfd50f85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "494a8d41792a66e9b0dbd6d65c1a4d07eb20e77cd53a635b80aade74dfd50f85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "494a8d41792a66e9b0dbd6d65c1a4d07eb20e77cd53a635b80aade74dfd50f85", kill_on_drop: false }` [INFO] [stdout] 494a8d41792a66e9b0dbd6d65c1a4d07eb20e77cd53a635b80aade74dfd50f85 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dnon_local_definitions" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b4fc0b428c911eec6d18e8db9207a61537b7cdeab32f91599420371547547238 [INFO] running `Command { std: "docker" "start" "-a" "b4fc0b428c911eec6d18e8db9207a61537b7cdeab32f91599420371547547238", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.20 [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Checking cfg-if v0.1.5 [INFO] [stderr] Compiling serde v1.0.80 [INFO] [stderr] Compiling ryu v0.2.6 [INFO] [stderr] Compiling failure_derive v0.1.2 [INFO] [stderr] Checking byteorder v1.2.6 [INFO] [stderr] Checking rand_core v0.3.0 [INFO] [stderr] Checking rustc-demangle v0.1.9 [INFO] [stderr] Checking log v0.4.5 [INFO] [stderr] Checking rand_core v0.2.2 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking rand v0.5.5 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Checking term v0.5.1 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Compiling backtrace-sys v0.1.24 [INFO] [stderr] Compiling quote v0.6.8 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Compiling syn v0.15.12 [INFO] [stderr] Checking simplelog v0.5.3 [INFO] [stderr] Checking backtrace v0.3.9 [INFO] [stderr] Compiling synstructure v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.80 [INFO] [stderr] Compiling derive_more v0.12.0 [INFO] [stderr] Checking serde_json v1.0.32 [INFO] [stderr] Checking failure v0.1.2 [INFO] [stderr] Checking my_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/hlt/engine/mod.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | fmt.write_str(self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/hlt/engine/mod.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | fmt.write_str(self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hlt/engine/recv.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut player = self.players.get_mut(&player_id).ok_or(EngineParseError)?; [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/engine/recv.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut player = self.players.get_mut(&player_id).ok_or(EngineParseError)?; [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: variant `ConvertToDropoff` is never constructed [INFO] [stdout] --> src/hlt/mod.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 150 | pub enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 154 | ConvertToDropoff(ShipId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_player`, `get_ship`, `get_dropoff`, and `navigate_to_halite` are never used [INFO] [stdout] --> src/hlt/mod.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 180 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn get_player(&self, player_id: PlayerId) -> Option<&Player> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_ship(&self, ship_id: ShipId) -> Option<&Ship> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn get_dropoff(&self, dropoff_id: DropoffId) -> Option<&Dropoff> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn navigate_to_halite(&self, ship_id: ShipId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `signum`, `dx`, `dy`, and `into_direction` are never used [INFO] [stdout] --> src/hlt/board.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Offset { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn signum(self) -> Offset { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn dx(self) -> Offset { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn dy(self) -> Offset { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn into_direction(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `surrounding` is never used [INFO] [stdout] --> src/hlt/board.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn surrounding(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_structure` and `is_empty` are never used [INFO] [stdout] --> src/hlt/board.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 205 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn has_structure(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ConvertToDropoff` is never constructed [INFO] [stdout] --> src/hlt/mod.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 150 | pub enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 154 | ConvertToDropoff(ShipId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_player`, `get_ship`, `get_dropoff`, and `navigate_to_halite` are never used [INFO] [stdout] --> src/hlt/mod.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 180 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn get_player(&self, player_id: PlayerId) -> Option<&Player> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_ship(&self, ship_id: ShipId) -> Option<&Ship> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn get_dropoff(&self, dropoff_id: DropoffId) -> Option<&Dropoff> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn navigate_to_halite(&self, ship_id: ShipId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invert` is never used [INFO] [stdout] --> src/hlt/board.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn invert(value: isize, dimension: isize) -> isize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/hlt/board.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Offset { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 35 | /// Return the length of this Offset. [INFO] [stdout] 36 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn signum(self) -> Offset { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn dx(self) -> Offset { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn dy(self) -> Offset { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn mirrored_dx(self) -> Offset { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn mirrored_dy(self) -> Offset { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn inverted_dx(self, width: isize) -> Offset { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn reduce(self, width: isize, height: isize) -> Offset { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn into_direction(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn inverted_dy(self, height: isize) -> Offset { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn inverted(self, width: isize, height: isize) -> Offset { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `surrounding` is never used [INFO] [stdout] --> src/hlt/board.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn surrounding(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_structure` and `is_empty` are never used [INFO] [stdout] --> src/hlt/board.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 205 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn has_structure(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/hlt/constants.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Constants` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/hlt/constants.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Constants` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `my_bot` (bin "my_bot") due to 2 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `my_bot` (bin "my_bot" test) due to 2 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b4fc0b428c911eec6d18e8db9207a61537b7cdeab32f91599420371547547238", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4fc0b428c911eec6d18e8db9207a61537b7cdeab32f91599420371547547238", kill_on_drop: false }` [INFO] [stdout] b4fc0b428c911eec6d18e8db9207a61537b7cdeab32f91599420371547547238