[INFO] cloning repository https://github.com/maxiwu13133/Multiplayer-Snake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/maxiwu13133/Multiplayer-Snake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxiwu13133%2FMultiplayer-Snake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxiwu13133%2FMultiplayer-Snake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5ec2e9df58188d3b03eaaef9ecaa6469c9f55192 [INFO] testing maxiwu13133/Multiplayer-Snake against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxiwu13133%2FMultiplayer-Snake" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/maxiwu13133/Multiplayer-Snake [INFO] finished tweaking git repo https://github.com/maxiwu13133/Multiplayer-Snake [INFO] tweaked toml for git repo https://github.com/maxiwu13133/Multiplayer-Snake written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/maxiwu13133/Multiplayer-Snake on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/maxiwu13133/Multiplayer-Snake 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.79 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.79 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.79 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.79 [INFO] [stderr] Downloaded quote v1.0.16 [INFO] [stderr] Downloaded log v0.4.16 [INFO] [stderr] Downloaded serde_derive v1.0.136 [INFO] [stderr] Downloaded ryu v1.0.9 [INFO] [stderr] Downloaded getrandom v0.2.5 [INFO] [stderr] Downloaded itoa v1.0.1 [INFO] [stderr] Downloaded wasm-bindgen v0.2.79 [INFO] [stderr] Downloaded web-sys v0.3.56 [INFO] [stderr] Downloaded bumpalo v3.9.1 [INFO] [stderr] Downloaded js-sys v0.3.56 [INFO] [stderr] Downloaded serde v1.0.136 [INFO] [stderr] Downloaded serde_json v1.0.79 [INFO] [stderr] Downloaded syn v1.0.89 [INFO] [stderr] Downloaded libc v0.2.121 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ba7f73de7a189de6e8ec9417dacd3cc1d95067a0da48aa9b48fd19bc77a33e21 [INFO] running `Command { std: "docker" "start" "-a" "ba7f73de7a189de6e8ec9417dacd3cc1d95067a0da48aa9b48fd19bc77a33e21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba7f73de7a189de6e8ec9417dacd3cc1d95067a0da48aa9b48fd19bc77a33e21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba7f73de7a189de6e8ec9417dacd3cc1d95067a0da48aa9b48fd19bc77a33e21", kill_on_drop: false }` [INFO] [stdout] ba7f73de7a189de6e8ec9417dacd3cc1d95067a0da48aa9b48fd19bc77a33e21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f6bd313d052d042dcdf916b5c0fbb6c795d83446f6e5946686c4c74fe219cb85 [INFO] running `Command { std: "docker" "start" "-a" "f6bd313d052d042dcdf916b5c0fbb6c795d83446f6e5946686c4c74fe219cb85", 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 unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.89 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.79 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling wasm-bindgen v0.2.79 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling lib-multiplayer v0.1.0 (/opt/rustwide/workdir/libs/multiplayer) [INFO] [stderr] Compiling quote v1.0.16 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling 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] Compiling 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 44 | _SpeedModifier => snake.set_speed(item.get_speed_effect().try_into().unwrap()), [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `SpeedModifier` [INFO] [stdout] | [INFO] [stdout] 44 | item::ItemType::SpeedModifier => snake.set_speed(item.get_speed_effect().try_into().unwrap()), [INFO] [stdout] | ++++++++++++++++ [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] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 45 | _InvincibilityModifier => snake.set_is_invincible() [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `InvincibilityModifier` [INFO] [stdout] | [INFO] [stdout] 45 | item::ItemType::InvincibilityModifier => snake.set_is_invincible() [INFO] [stdout] | ++++++++++++++++ [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)]` (part of `#[warn(nonstandard_style)]`) 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] [stderr] error: could not compile `lib-game` (lib) due to 2 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "f6bd313d052d042dcdf916b5c0fbb6c795d83446f6e5946686c4c74fe219cb85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6bd313d052d042dcdf916b5c0fbb6c795d83446f6e5946686c4c74fe219cb85", kill_on_drop: false }` [INFO] [stdout] f6bd313d052d042dcdf916b5c0fbb6c795d83446f6e5946686c4c74fe219cb85