[INFO] cloning repository https://github.com/jospradlin/three_prototyping [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jospradlin/three_prototyping" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjospradlin%2Fthree_prototyping", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjospradlin%2Fthree_prototyping'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] de48d410f10f6d8b0703b08589dc68d90f3b775d [INFO] checking jospradlin/three_prototyping against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjospradlin%2Fthree_prototyping" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jospradlin/three_prototyping 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/jospradlin/three_prototyping [INFO] finished tweaking git repo https://github.com/jospradlin/three_prototyping [INFO] tweaked toml for git repo https://github.com/jospradlin/three_prototyping written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jospradlin/three_prototyping 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-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] b25aa3e76aab2e0813b6ac5a305e1870738a528d10123601c2778bee58dec285 [INFO] running `Command { std: "docker" "start" "-a" "b25aa3e76aab2e0813b6ac5a305e1870738a528d10123601c2778bee58dec285", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b25aa3e76aab2e0813b6ac5a305e1870738a528d10123601c2778bee58dec285", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b25aa3e76aab2e0813b6ac5a305e1870738a528d10123601c2778bee58dec285", kill_on_drop: false }` [INFO] [stdout] b25aa3e76aab2e0813b6ac5a305e1870738a528d10123601c2778bee58dec285 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 08630472bdb6fac9d76cd9c1f8d9e07a85662881b117f83aaa55af02272844d3 [INFO] running `Command { std: "docker" "start" "-a" "08630472bdb6fac9d76cd9c1f8d9e07a85662881b117f83aaa55af02272844d3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.89 [INFO] [stderr] Compiling bumpalo v3.14.0 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling wasm-bindgen v0.2.89 [INFO] [stderr] Checking memory_units v0.4.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.41 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.89 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.89 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.89 [INFO] [stderr] Checking three_prototyping v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `body` and `direction` are never read [INFO] [stdout] --> src/lib.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct Snake { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 43 | body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Snake { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 49 | pub fn new(spawn_index: usize, size: usize) -> Snake { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 68 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 69 | size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 70 | snake: Snake, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 71 | next_cell: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 72 | reward_cell: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 73 | status: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 74 | points: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lib.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl World { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 79 | pub fn new(width: usize, snake_index: usize, starting_size: usize) -> World { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn start_game(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn status(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn points(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn game_status_text(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn width(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn reward_cell(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn snake_head_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn snake_cells(&self) -> *const SnakeCell { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn snake_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn set_random_reward_cell(max_size: usize, snake_body: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | fn gen_next_snake_cell(&self, direction: &Direction) -> SnakeCell { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn handle_input(&mut self, new_direction: Direction) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `body` and `direction` are never read [INFO] [stdout] --> src/lib.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct Snake { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 43 | body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Snake { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 49 | pub fn new(spawn_index: usize, size: usize) -> Snake { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 68 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 69 | size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 70 | snake: Snake, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 71 | next_cell: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 72 | reward_cell: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 73 | status: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 74 | points: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lib.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl World { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 79 | pub fn new(width: usize, snake_index: usize, starting_size: usize) -> World { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn start_game(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn status(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn points(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn game_status_text(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn width(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn reward_cell(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn snake_head_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn snake_cells(&self) -> *const SnakeCell { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn snake_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn set_random_reward_cell(max_size: usize, snake_body: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | fn gen_next_snake_cell(&self, direction: &Direction) -> SnakeCell { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn handle_input(&mut self, new_direction: Direction) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.47s [INFO] running `Command { std: "docker" "inspect" "08630472bdb6fac9d76cd9c1f8d9e07a85662881b117f83aaa55af02272844d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08630472bdb6fac9d76cd9c1f8d9e07a85662881b117f83aaa55af02272844d3", kill_on_drop: false }` [INFO] [stdout] 08630472bdb6fac9d76cd9c1f8d9e07a85662881b117f83aaa55af02272844d3 [INFO] checking jospradlin/three_prototyping against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjospradlin%2Fthree_prototyping" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jospradlin/three_prototyping 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/jospradlin/three_prototyping [INFO] finished tweaking git repo https://github.com/jospradlin/three_prototyping [INFO] tweaked toml for git repo https://github.com/jospradlin/three_prototyping written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jospradlin/three_prototyping 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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 9a9b3db8381b9a3f1b5e58e44229e399ceb82980d15d2ff99c193b1248d765db [INFO] running `Command { std: "docker" "start" "-a" "9a9b3db8381b9a3f1b5e58e44229e399ceb82980d15d2ff99c193b1248d765db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a9b3db8381b9a3f1b5e58e44229e399ceb82980d15d2ff99c193b1248d765db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a9b3db8381b9a3f1b5e58e44229e399ceb82980d15d2ff99c193b1248d765db", kill_on_drop: false }` [INFO] [stdout] 9a9b3db8381b9a3f1b5e58e44229e399ceb82980d15d2ff99c193b1248d765db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 877a2f4fce8bae8c1680921fc239daec05e31f2ad940050a0d35cc7a013e0cb7 [INFO] running `Command { std: "docker" "start" "-a" "877a2f4fce8bae8c1680921fc239daec05e31f2ad940050a0d35cc7a013e0cb7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.89 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling bumpalo v3.14.0 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling wasm-bindgen v0.2.89 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Checking memory_units v0.4.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.41 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.89 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.89 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.89 [INFO] [stderr] Checking three_prototyping v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `body` and `direction` are never read [INFO] [stdout] --> src/lib.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct Snake { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 43 | body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Snake { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 49 | pub fn new(spawn_index: usize, size: usize) -> Snake { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 68 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 69 | size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 70 | snake: Snake, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 71 | next_cell: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 72 | reward_cell: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 73 | status: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 74 | points: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lib.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl World { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 79 | pub fn new(width: usize, snake_index: usize, starting_size: usize) -> World { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn start_game(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn status(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn points(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn game_status_text(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn width(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn reward_cell(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn snake_head_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn snake_cells(&self) -> *const SnakeCell { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn snake_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn set_random_reward_cell(max_size: usize, snake_body: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | fn gen_next_snake_cell(&self, direction: &Direction) -> SnakeCell { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn handle_input(&mut self, new_direction: Direction) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `body` and `direction` are never read [INFO] [stdout] --> src/lib.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct Snake { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 43 | body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Snake { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 49 | pub fn new(spawn_index: usize, size: usize) -> Snake { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 68 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 69 | size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 70 | snake: Snake, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 71 | next_cell: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 72 | reward_cell: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 73 | status: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 74 | points: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lib.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl World { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 79 | pub fn new(width: usize, snake_index: usize, starting_size: usize) -> World { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn start_game(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn status(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn points(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn game_status_text(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn width(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn reward_cell(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn snake_head_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn snake_cells(&self) -> *const SnakeCell { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn snake_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn set_random_reward_cell(max_size: usize, snake_body: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | fn gen_next_snake_cell(&self, direction: &Direction) -> SnakeCell { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn handle_input(&mut self, new_direction: Direction) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.53s [INFO] running `Command { std: "docker" "inspect" "877a2f4fce8bae8c1680921fc239daec05e31f2ad940050a0d35cc7a013e0cb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "877a2f4fce8bae8c1680921fc239daec05e31f2ad940050a0d35cc7a013e0cb7", kill_on_drop: false }` [INFO] [stdout] 877a2f4fce8bae8c1680921fc239daec05e31f2ad940050a0d35cc7a013e0cb7