[INFO] cloning repository https://github.com/wyhhh/snake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wyhhh/snake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwyhhh%2Fsnake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwyhhh%2Fsnake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 11f56dd02d38f264bbd71b77bbac42345b6b3f3e [INFO] checking wyhhh/snake against try#012cd62c9add58ab3910e44c137d87db3ab70f61 for pr-155915 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwyhhh%2Fsnake" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/wyhhh/snake [INFO] finished tweaking git repo https://github.com/wyhhh/snake [INFO] tweaked toml for git repo https://github.com/wyhhh/snake written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wyhhh/snake on toolchain 012cd62c9add58ab3910e44c137d87db3ab70f61 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/wyhhh/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" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0a1c6af8feb6cd3db36c7e178f489b309d21e31a5531d299abb09f76f55cf2e9 [INFO] running `Command { std: "docker" "start" "-a" "0a1c6af8feb6cd3db36c7e178f489b309d21e31a5531d299abb09f76f55cf2e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a1c6af8feb6cd3db36c7e178f489b309d21e31a5531d299abb09f76f55cf2e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a1c6af8feb6cd3db36c7e178f489b309d21e31a5531d299abb09f76f55cf2e9", kill_on_drop: false }` [INFO] [stdout] 0a1c6af8feb6cd3db36c7e178f489b309d21e31a5531d299abb09f76f55cf2e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d6d907948536ce981b54a6d16bba83507b7576678fbb7f7d2445cb2012f0c361 [INFO] running `Command { std: "docker" "start" "-a" "d6d907948536ce981b54a6d16bba83507b7576678fbb7f7d2445cb2012f0c361", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling signal-hook v0.3.13 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking vec_list v0.1.0 (https://github.com/wyhhh/vec_list#e9373438) [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.8.2 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking crossterm v0.23.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-complex v0.4.1 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking wutil v0.1.0 (https://github.com/wyhhh/wutil.git#cfb80506) [INFO] [stdout] note: trace_macro [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/wutil-f2effaecaba364e7/cfb8050/src/util.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | write!(f, "N/A") [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `write! { f, "N/A" }` [INFO] [stdout] = note: to `f.write_fmt($crate :: format_args! ("N/A"))` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] note: trace_macro [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/wutil-f2effaecaba364e7/cfb8050/src/util.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | / write!( [INFO] [stdout] 64 | | f, [INFO] [stdout] 65 | | "{:.width$?}%", [INFO] [stdout] 66 | | self.0.rate(self.1), [INFO] [stdout] 67 | | width = self.2 as usize [INFO] [stdout] 68 | | ) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `write! { f, "{:.width$?}%", self.0.rate(self.1), width = self.2 as usize }` [INFO] [stdout] = note: to `f.write_fmt($crate :: format_args! [INFO] [stdout] ("{:.width$?}%", self.0.rate(self.1), width = self.2 as usize))` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] note: trace_macro [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/wutil-f2effaecaba364e7/cfb8050/src/util.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | write!(f, "{:?}", self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `write! { f, "{:?}", self }` [INFO] [stdout] = note: to `f.write_fmt($crate :: format_args! ("{:?}", self))` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] note: trace_macro [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/wutil-f2effaecaba364e7/cfb8050/src/util.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | write!(f, "N/A") [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `write! { f, "N/A" }` [INFO] [stdout] = note: to `f.write_fmt($crate :: format_args! ("N/A"))` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] note: trace_macro [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/wutil-f2effaecaba364e7/cfb8050/src/util.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | / write!( [INFO] [stdout] 93 | | f, [INFO] [stdout] 94 | | "{:.width$?}%", [INFO] [stdout] 95 | | 100.0 - self.0.rate(self.1), [INFO] [stdout] 96 | | width = self.2 as usize [INFO] [stdout] 97 | | ) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `write! { f, "{:.width$?}%", 100.0 - self.0.rate(self.1), width = self.2 as usize }` [INFO] [stdout] = note: to `f.write_fmt($crate :: format_args! [INFO] [stdout] ("{:.width$?}%", 100.0 - self.0.rate(self.1), width = self.2 as usize))` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] note: trace_macro [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/wutil-f2effaecaba364e7/cfb8050/src/util.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | write!(f, "{:?}", self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `write! { f, "{:?}", self }` [INFO] [stdout] = note: to `f.write_fmt($crate :: format_args! ("{:?}", self))` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead [INFO] [stdout] --> src/main.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | init_static_array!(Snake::zerod(), size_of::(), SNAKES); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `init_static_array` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead [INFO] [stdout] --> src/main.rs:58:72 [INFO] [stdout] | [INFO] [stdout] 58 | pub static mut BOARD: [[Tiers; WIDTH as usize]; HEIGHT as usize] = init_static_array!( [INFO] [stdout] | ________________________________________________________________________^ [INFO] [stdout] 59 | | Tiers { tiers: vec_list![] }, [INFO] [stdout] 60 | | size_of::(), [INFO] [stdout] 61 | | HEIGHT as usize * WIDTH as usize [INFO] [stdout] 62 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `init_static_array` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | let mut flower_tier = [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead [INFO] [stdout] --> src/main.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | init_static_array!(Snake::zerod(), size_of::(), SNAKES); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `init_static_array` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_laugh_head` is never used [INFO] [stdout] --> src/main.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 151 | impl Tier { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 192 | fn is_laugh_head(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead [INFO] [stdout] --> src/main.rs:58:72 [INFO] [stdout] | [INFO] [stdout] 58 | pub static mut BOARD: [[Tiers; WIDTH as usize]; HEIGHT as usize] = init_static_array!( [INFO] [stdout] | ________________________________________________________________________^ [INFO] [stdout] 59 | | Tiers { tiers: vec_list![] }, [INFO] [stdout] 60 | | size_of::(), [INFO] [stdout] 61 | | HEIGHT as usize * WIDTH as usize [INFO] [stdout] 62 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `init_static_array` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / crossterm::execute! { [INFO] [stdout] 17 | | stdout(), [INFO] [stdout] 18 | | cursor::Hide, [INFO] [stdout] 19 | | }; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 16 ~ let _ = crossterm::execute! { [INFO] [stdout] 17 | stdout(), [INFO] [stdout] 18 | cursor::Hide, [INFO] [stdout] 19 ~ };; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:354:29 [INFO] [stdout] | [INFO] [stdout] 354 | for row in unsafe { board::BOARD.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | / BOARD [INFO] [stdout] 69 | | .get_unchecked_mut(y as usize) [INFO] [stdout] | |__________________________________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | let mut flower_tier = [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_laugh_head` is never used [INFO] [stdout] --> src/main.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 151 | impl Tier { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 192 | fn is_laugh_head(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / crossterm::execute! { [INFO] [stdout] 17 | | stdout(), [INFO] [stdout] 18 | | cursor::Hide, [INFO] [stdout] 19 | | }; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 16 ~ let _ = crossterm::execute! { [INFO] [stdout] 17 | stdout(), [INFO] [stdout] 18 | cursor::Hide, [INFO] [stdout] 19 ~ };; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:354:29 [INFO] [stdout] | [INFO] [stdout] 354 | for row in unsafe { board::BOARD.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | / BOARD [INFO] [stdout] 69 | | .get_unchecked_mut(y as usize) [INFO] [stdout] | |__________________________________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.22s [INFO] running `Command { std: "docker" "inspect" "d6d907948536ce981b54a6d16bba83507b7576678fbb7f7d2445cb2012f0c361", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6d907948536ce981b54a6d16bba83507b7576678fbb7f7d2445cb2012f0c361", kill_on_drop: false }` [INFO] [stdout] d6d907948536ce981b54a6d16bba83507b7576678fbb7f7d2445cb2012f0c361