[INFO] cloning repository https://github.com/harunnryd/brust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/harunnryd/brust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharunnryd%2Fbrust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharunnryd%2Fbrust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 560ea1211c0a6479a08ea534f16f51c9dd7320ed [INFO] checking harunnryd/brust against try#8d46be77cd48fdbcced888d027457e2c9cf2aa16 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharunnryd%2Fbrust" "/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/harunnryd/brust on toolchain 8d46be77cd48fdbcced888d027457e2c9cf2aa16 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/harunnryd/brust [INFO] finished tweaking git repo https://github.com/harunnryd/brust [INFO] tweaked toml for git repo https://github.com/harunnryd/brust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/harunnryd/brust 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" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d414d49247191317674e495238193c48135f79a0f14fcec2ca1ea46c2449c538 [INFO] running `Command { std: "docker" "start" "-a" "d414d49247191317674e495238193c48135f79a0f14fcec2ca1ea46c2449c538", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d414d49247191317674e495238193c48135f79a0f14fcec2ca1ea46c2449c538", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d414d49247191317674e495238193c48135f79a0f14fcec2ca1ea46c2449c538", kill_on_drop: false }` [INFO] [stdout] d414d49247191317674e495238193c48135f79a0f14fcec2ca1ea46c2449c538 [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" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a4a4fda3ba5fdf1c161a9bc08a926bc4cab8605aac44ea97ab58f29cbb74aae [INFO] running `Command { std: "docker" "start" "-a" "3a4a4fda3ba5fdf1c161a9bc08a926bc4cab8605aac44ea97ab58f29cbb74aae", kill_on_drop: false }` [INFO] [stderr] Checking battle_star v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variants `Up`, `Down`, and `Left` are never constructed [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 9 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` 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: fields `x` and `y` are never read [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct GridPosition { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 21 | x: i16, [INFO] [stdout] | ^ [INFO] [stdout] 22 | y: i16, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `GridPosition` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_from_move` is never used [INFO] [stdout] --> src/main.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl GridPosition { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn new_from_move(pos: GridPosition, dir: Direction) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_keycode` is never used [INFO] [stdout] --> src/main.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Direction { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn from_keycode(key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos` and `direction` are never read [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | struct Spaceship { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 63 | pos: GridPosition, [INFO] [stdout] | ^^^ [INFO] [stdout] 64 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Spaceship` 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 `update` is never used [INFO] [stdout] --> src/main.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl Spaceship { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos` and `direction` are never read [INFO] [stdout] --> src/main.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | struct Enemy { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 87 | pos: GridPosition, [INFO] [stdout] | ^^^ [INFO] [stdout] 88 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Enemy` 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 `update` is never used [INFO] [stdout] --> src/main.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl Enemy { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos` and `direction` are never read [INFO] [stdout] --> src/main.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 111 | struct Bullet { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 112 | pos: GridPosition, [INFO] [stdout] | ^^^ [INFO] [stdout] 113 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bullet` 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 `update` is never used [INFO] [stdout] --> src/main.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 116 | impl Bullet { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `space_ship`, `enemy`, and `bullet` are never read [INFO] [stdout] --> src/main.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 134 | struct GameState { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 135 | /// First we need a Spaceship [INFO] [stdout] 136 | space_ship: Spaceship, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 137 | /// A piece of Enemy [INFO] [stdout] 138 | enemy: Enemy, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 139 | /// A piece of Enemy [INFO] [stdout] 140 | bullet: Bullet, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Up`, `Down`, and `Left` are never constructed [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 9 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` 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: fields `x` and `y` are never read [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct GridPosition { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 21 | x: i16, [INFO] [stdout] | ^ [INFO] [stdout] 22 | y: i16, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `GridPosition` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_from_move` is never used [INFO] [stdout] --> src/main.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl GridPosition { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn new_from_move(pos: GridPosition, dir: Direction) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_keycode` is never used [INFO] [stdout] --> src/main.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Direction { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn from_keycode(key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos` and `direction` are never read [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | struct Spaceship { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 63 | pos: GridPosition, [INFO] [stdout] | ^^^ [INFO] [stdout] 64 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Spaceship` 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 `update` is never used [INFO] [stdout] --> src/main.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl Spaceship { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos` and `direction` are never read [INFO] [stdout] --> src/main.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | struct Enemy { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 87 | pos: GridPosition, [INFO] [stdout] | ^^^ [INFO] [stdout] 88 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Enemy` 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 `update` is never used [INFO] [stdout] --> src/main.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl Enemy { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos` and `direction` are never read [INFO] [stdout] --> src/main.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 111 | struct Bullet { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 112 | pos: GridPosition, [INFO] [stdout] | ^^^ [INFO] [stdout] 113 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bullet` 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 `update` is never used [INFO] [stdout] --> src/main.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 116 | impl Bullet { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `space_ship`, `enemy`, and `bullet` are never read [INFO] [stdout] --> src/main.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 134 | struct GameState { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 135 | /// First we need a Spaceship [INFO] [stdout] 136 | space_ship: Spaceship, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 137 | /// A piece of Enemy [INFO] [stdout] 138 | enemy: Enemy, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 139 | /// A piece of Enemy [INFO] [stdout] 140 | bullet: Bullet, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "3a4a4fda3ba5fdf1c161a9bc08a926bc4cab8605aac44ea97ab58f29cbb74aae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a4a4fda3ba5fdf1c161a9bc08a926bc4cab8605aac44ea97ab58f29cbb74aae", kill_on_drop: false }` [INFO] [stdout] 3a4a4fda3ba5fdf1c161a9bc08a926bc4cab8605aac44ea97ab58f29cbb74aae