[INFO] cloning repository https://github.com/mhthies/gpn20-gpn-mazing [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mhthies/gpn20-gpn-mazing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmhthies%2Fgpn20-gpn-mazing", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmhthies%2Fgpn20-gpn-mazing'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 82ca42406473944a2a9c03d4c1b7afc16b796020 [INFO] checking mhthies/gpn20-gpn-mazing against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmhthies%2Fgpn20-gpn-mazing" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mhthies/gpn20-gpn-mazing on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mhthies/gpn20-gpn-mazing [INFO] finished tweaking git repo https://github.com/mhthies/gpn20-gpn-mazing [INFO] tweaked toml for git repo https://github.com/mhthies/gpn20-gpn-mazing written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mhthies/gpn20-gpn-mazing 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4233670ae24ab6edb4afcc960c437f09c9c67fe8ee0e9c9cb667d2b9e1523b30 [INFO] running `Command { std: "docker" "start" "-a" "4233670ae24ab6edb4afcc960c437f09c9c67fe8ee0e9c9cb667d2b9e1523b30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4233670ae24ab6edb4afcc960c437f09c9c67fe8ee0e9c9cb667d2b9e1523b30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4233670ae24ab6edb4afcc960c437f09c9c67fe8ee0e9c9cb667d2b9e1523b30", kill_on_drop: false }` [INFO] [stdout] 4233670ae24ab6edb4afcc960c437f09c9c67fe8ee0e9c9cb667d2b9e1523b30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d18860f4bc33b50f8758fd230480df4a6d6d75ed824465de8e86c5bb38e62509 [INFO] running `Command { std: "docker" "start" "-a" "d18860f4bc33b50f8758fd230480df4a6d6d75ed824465de8e86c5bb38e62509", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Checking toml v0.5.9 [INFO] [stderr] Checking gpn20-maze v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/algorithm.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Some` is imported redundantly [INFO] [stdout] --> src/algorithm.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use core::option::Option::{None, Some}; [INFO] [stdout] | ^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Some` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/algorithm.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Some` is imported redundantly [INFO] [stdout] --> src/algorithm.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use core::option::Option::{None, Some}; [INFO] [stdout] | ^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Some` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::slice::::connect`: renamed to join [INFO] [stdout] --> src/algorithm.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 135 | .connect(",")); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 135 | .join(",")); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::slice::::connect`: renamed to join [INFO] [stdout] --> src/algorithm.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 135 | .connect(",")); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 135 | .join(",")); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/algorithm.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn decide_action(state: &mut State, rng: &mut ThreadRng, config: &AlgorithmConfig) -> Option> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/algorithm.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn decide_action(state: &mut State, rng: &mut ThreadRng, config: &AlgorithmConfig) -> Option> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Chat` is never constructed [INFO] [stdout] --> src/client.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Command<'a> { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | Chat(&'a str), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/client.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Goal(Position), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Goal(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/client.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | Win(u32, u32), [INFO] [stdout] | --- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 18 | Win((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/client.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | Lose(u32, u32), [INFO] [stdout] | ---- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 19 | Lose((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Chat` is never constructed [INFO] [stdout] --> src/client.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Command<'a> { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | Chat(&'a str), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/client.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Goal(Position), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Goal(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/client.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | Win(u32, u32), [INFO] [stdout] | --- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 18 | Win((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/client.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | Lose(u32, u32), [INFO] [stdout] | ---- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 19 | Lose((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_by_direction` is never used [INFO] [stdout] --> src/helper.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn move_by_direction(pos: &Position, dir: &MoveDirection) -> Position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_move_over_playground_border` is never used [INFO] [stdout] --> src/helper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn is_move_over_playground_border(pos: &Position, dir: &MoveDirection, size: &Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `direction_from_move` is never used [INFO] [stdout] --> src/helper.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn direction_from_move(pos1: &Position, pos2: &Position) -> MoveDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_wall` is never used [INFO] [stdout] --> src/helper.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn has_wall(walls: &Walls, dir: &MoveDirection) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_distance` is never used [INFO] [stdout] --> src/helper.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn calculate_distance(pos1: &Position, pos2: &Position) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance_from_line` is never used [INFO] [stdout] --> src/helper.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn distance_from_line(pos: &Position, p1: &Position, p2: &Position) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_by_direction` is never used [INFO] [stdout] --> src/helper.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn move_by_direction(pos: &Position, dir: &MoveDirection) -> Position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_move_over_playground_border` is never used [INFO] [stdout] --> src/helper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn is_move_over_playground_border(pos: &Position, dir: &MoveDirection, size: &Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `direction_from_move` is never used [INFO] [stdout] --> src/helper.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn direction_from_move(pos1: &Position, pos2: &Position) -> MoveDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_wall` is never used [INFO] [stdout] --> src/helper.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn has_wall(walls: &Walls, dir: &MoveDirection) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_distance` is never used [INFO] [stdout] --> src/helper.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn calculate_distance(pos1: &Position, pos2: &Position) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance_from_line` is never used [INFO] [stdout] --> src/helper.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn distance_from_line(pos: &Position, p1: &Position, p2: &Position) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.59s [INFO] running `Command { std: "docker" "inspect" "d18860f4bc33b50f8758fd230480df4a6d6d75ed824465de8e86c5bb38e62509", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d18860f4bc33b50f8758fd230480df4a6d6d75ed824465de8e86c5bb38e62509", kill_on_drop: false }` [INFO] [stdout] d18860f4bc33b50f8758fd230480df4a6d6d75ed824465de8e86c5bb38e62509 [INFO] checking mhthies/gpn20-gpn-mazing against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmhthies%2Fgpn20-gpn-mazing" "/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/mhthies/gpn20-gpn-mazing on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mhthies/gpn20-gpn-mazing [INFO] finished tweaking git repo https://github.com/mhthies/gpn20-gpn-mazing [INFO] tweaked toml for git repo https://github.com/mhthies/gpn20-gpn-mazing written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mhthies/gpn20-gpn-mazing 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2ac821899ab6a9ef13b0497dc0def0d533f3acb280153d243912d7b84324ac6 [INFO] running `Command { std: "docker" "start" "-a" "d2ac821899ab6a9ef13b0497dc0def0d533f3acb280153d243912d7b84324ac6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2ac821899ab6a9ef13b0497dc0def0d533f3acb280153d243912d7b84324ac6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2ac821899ab6a9ef13b0497dc0def0d533f3acb280153d243912d7b84324ac6", kill_on_drop: false }` [INFO] [stdout] d2ac821899ab6a9ef13b0497dc0def0d533f3acb280153d243912d7b84324ac6 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cc5247351087e42bbe0d4d27a5a92ad7f09f0eace75fb9e2005bcb8993c4d684 [INFO] running `Command { std: "docker" "start" "-a" "cc5247351087e42bbe0d4d27a5a92ad7f09f0eace75fb9e2005bcb8993c4d684", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Checking toml v0.5.9 [INFO] [stderr] Checking gpn20-maze v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/algorithm.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Some` is imported redundantly [INFO] [stdout] --> src/algorithm.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use core::option::Option::{None, Some}; [INFO] [stdout] | ^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Some` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/algorithm.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Some` is imported redundantly [INFO] [stdout] --> src/algorithm.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use core::option::Option::{None, Some}; [INFO] [stdout] | ^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Some` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::slice::::connect`: renamed to join [INFO] [stdout] --> src/algorithm.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 135 | .connect(",")); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 135 | .join(",")); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/algorithm.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn decide_action(state: &mut State, rng: &mut ThreadRng, config: &AlgorithmConfig) -> Option> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::slice::::connect`: renamed to join [INFO] [stdout] --> src/algorithm.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 135 | .connect(",")); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 135 | .join(",")); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Chat` is never constructed [INFO] [stdout] --> src/client.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Command<'a> { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | Chat(&'a str), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/client.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Goal(Position), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Goal(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/client.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | Win(u32, u32), [INFO] [stdout] | --- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 18 | Win((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/client.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | Lose(u32, u32), [INFO] [stdout] | ---- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 19 | Lose((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/algorithm.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn decide_action(state: &mut State, rng: &mut ThreadRng, config: &AlgorithmConfig) -> Option> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Chat` is never constructed [INFO] [stdout] --> src/client.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Command<'a> { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | Chat(&'a str), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/client.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Goal(Position), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Goal(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/client.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | Win(u32, u32), [INFO] [stdout] | --- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 18 | Win((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/client.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | Lose(u32, u32), [INFO] [stdout] | ---- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 19 | Lose((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_by_direction` is never used [INFO] [stdout] --> src/helper.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn move_by_direction(pos: &Position, dir: &MoveDirection) -> Position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_move_over_playground_border` is never used [INFO] [stdout] --> src/helper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn is_move_over_playground_border(pos: &Position, dir: &MoveDirection, size: &Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `direction_from_move` is never used [INFO] [stdout] --> src/helper.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn direction_from_move(pos1: &Position, pos2: &Position) -> MoveDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_wall` is never used [INFO] [stdout] --> src/helper.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn has_wall(walls: &Walls, dir: &MoveDirection) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_distance` is never used [INFO] [stdout] --> src/helper.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn calculate_distance(pos1: &Position, pos2: &Position) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance_from_line` is never used [INFO] [stdout] --> src/helper.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn distance_from_line(pos: &Position, p1: &Position, p2: &Position) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_by_direction` is never used [INFO] [stdout] --> src/helper.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn move_by_direction(pos: &Position, dir: &MoveDirection) -> Position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_move_over_playground_border` is never used [INFO] [stdout] --> src/helper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn is_move_over_playground_border(pos: &Position, dir: &MoveDirection, size: &Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `direction_from_move` is never used [INFO] [stdout] --> src/helper.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn direction_from_move(pos1: &Position, pos2: &Position) -> MoveDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_wall` is never used [INFO] [stdout] --> src/helper.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn has_wall(walls: &Walls, dir: &MoveDirection) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_distance` is never used [INFO] [stdout] --> src/helper.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn calculate_distance(pos1: &Position, pos2: &Position) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance_from_line` is never used [INFO] [stdout] --> src/helper.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn distance_from_line(pos: &Position, p1: &Position, p2: &Position) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.69s [INFO] running `Command { std: "docker" "inspect" "cc5247351087e42bbe0d4d27a5a92ad7f09f0eace75fb9e2005bcb8993c4d684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc5247351087e42bbe0d4d27a5a92ad7f09f0eace75fb9e2005bcb8993c4d684", kill_on_drop: false }` [INFO] [stdout] cc5247351087e42bbe0d4d27a5a92ad7f09f0eace75fb9e2005bcb8993c4d684