[INFO] cloning repository https://github.com/skhademolhosseini/Multiplayer-Snake-Game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/skhademolhosseini/Multiplayer-Snake-Game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fskhademolhosseini%2FMultiplayer-Snake-Game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fskhademolhosseini%2FMultiplayer-Snake-Game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5ec2e9df58188d3b03eaaef9ecaa6469c9f55192 [INFO] checking skhademolhosseini/Multiplayer-Snake-Game against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fskhademolhosseini%2FMultiplayer-Snake-Game" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/skhademolhosseini/Multiplayer-Snake-Game [INFO] finished tweaking git repo https://github.com/skhademolhosseini/Multiplayer-Snake-Game [INFO] tweaked toml for git repo https://github.com/skhademolhosseini/Multiplayer-Snake-Game written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/skhademolhosseini/Multiplayer-Snake-Game on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/skhademolhosseini/Multiplayer-Snake-Game 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff33e1f9f9d33a0857aef52fa1cbfbd531809db33bfe44fef53761e4bd4ecfcb [INFO] running `Command { std: "docker" "start" "-a" "ff33e1f9f9d33a0857aef52fa1cbfbd531809db33bfe44fef53761e4bd4ecfcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff33e1f9f9d33a0857aef52fa1cbfbd531809db33bfe44fef53761e4bd4ecfcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff33e1f9f9d33a0857aef52fa1cbfbd531809db33bfe44fef53761e4bd4ecfcb", kill_on_drop: false }` [INFO] [stdout] ff33e1f9f9d33a0857aef52fa1cbfbd531809db33bfe44fef53761e4bd4ecfcb [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91f82a85e1b824e55ed39d89df97c088763e4680aec1b579e1d9c41deebe7361 [INFO] running `Command { std: "docker" "start" "-a" "91f82a85e1b824e55ed39d89df97c088763e4680aec1b579e1d9c41deebe7361", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.89 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.79 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Compiling wasm-bindgen v0.2.79 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking lib-multiplayer v0.1.0 (/opt/rustwide/workdir/libs/multiplayer) [INFO] [stderr] Compiling quote v1.0.16 [INFO] [stderr] Checking getrandom v0.2.5 [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] Compiling wasm-bindgen-backend v0.2.79 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.79 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.79 [INFO] [stderr] Checking lib-game v0.1.0 (/opt/rustwide/workdir/libs/game) [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> libs/game/src/lib.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::{RngCore, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> libs/game/src/lib.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::{RngCore, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `invincibility` [INFO] [stdout] --> libs/game/src/item.rs:19:76 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(item_type: ItemType, x: usize, y: usize, speed_effect: i32, invincibility: bool) -> Item { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_invincibility` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> libs/game/src/lib.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(config: Config, rng: &mut dyn RngCore) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `SpeedModifier` is named the same as one of the variants of the type `item::ItemType` [INFO] [stdout] --> libs/game/src/lib.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | SpeedModifier => snake.set_speed(item.get_speed_effect().try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `item::ItemType::SpeedModifier` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `InvincibilityModifier` is named the same as one of the variants of the type `item::ItemType` [INFO] [stdout] --> libs/game/src/lib.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | InvincibilityModifier => snake.set_is_invincible() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `item::ItemType::InvincibilityModifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> libs/game/src/lib.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 44 | SpeedModifier => snake.set_speed(item.get_speed_effect().try_into().unwrap()), [INFO] [stdout] | ------------- matches any value [INFO] [stdout] 45 | InvincibilityModifier => snake.set_is_invincible() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SpeedModifier` [INFO] [stdout] --> libs/game/src/lib.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | SpeedModifier => snake.set_speed(item.get_speed_effect().try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SpeedModifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `InvincibilityModifier` [INFO] [stdout] --> libs/game/src/lib.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | InvincibilityModifier => snake.set_is_invincible() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_InvincibilityModifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lib-game` (lib test) due to 2 previous errors; 8 warnings emitted [INFO] [stdout] warning: variable `SpeedModifier` should have a snake case name [INFO] [stdout] --> libs/game/src/lib.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | SpeedModifier => snake.set_speed(item.get_speed_effect().try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `speed_modifier` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable `InvincibilityModifier` should have a snake case name [INFO] [stdout] --> libs/game/src/lib.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | InvincibilityModifier => snake.set_is_invincible() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `invincibility_modifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lib-game` (lib) due to 2 previous errors; 8 warnings emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `invincibility` [INFO] [stdout] --> libs/game/src/item.rs:19:76 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(item_type: ItemType, x: usize, y: usize, speed_effect: i32, invincibility: bool) -> Item { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_invincibility` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> libs/game/src/lib.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(config: Config, rng: &mut dyn RngCore) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `SpeedModifier` is named the same as one of the variants of the type `item::ItemType` [INFO] [stdout] --> libs/game/src/lib.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | SpeedModifier => snake.set_speed(item.get_speed_effect().try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `item::ItemType::SpeedModifier` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `InvincibilityModifier` is named the same as one of the variants of the type `item::ItemType` [INFO] [stdout] --> libs/game/src/lib.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | InvincibilityModifier => snake.set_is_invincible() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `item::ItemType::InvincibilityModifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> libs/game/src/lib.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 44 | SpeedModifier => snake.set_speed(item.get_speed_effect().try_into().unwrap()), [INFO] [stdout] | ------------- matches any value [INFO] [stdout] 45 | InvincibilityModifier => snake.set_is_invincible() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SpeedModifier` [INFO] [stdout] --> libs/game/src/lib.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | SpeedModifier => snake.set_speed(item.get_speed_effect().try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SpeedModifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `InvincibilityModifier` [INFO] [stdout] --> libs/game/src/lib.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | InvincibilityModifier => snake.set_is_invincible() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_InvincibilityModifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SpeedModifier` should have a snake case name [INFO] [stdout] --> libs/game/src/lib.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | SpeedModifier => snake.set_speed(item.get_speed_effect().try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `speed_modifier` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `InvincibilityModifier` should have a snake case name [INFO] [stdout] --> libs/game/src/lib.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | InvincibilityModifier => snake.set_is_invincible() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `invincibility_modifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "91f82a85e1b824e55ed39d89df97c088763e4680aec1b579e1d9c41deebe7361", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91f82a85e1b824e55ed39d89df97c088763e4680aec1b579e1d9c41deebe7361", kill_on_drop: false }` [INFO] [stdout] 91f82a85e1b824e55ed39d89df97c088763e4680aec1b579e1d9c41deebe7361