[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] building wyhhh/snake against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwyhhh%2Fsnake" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wyhhh/snake on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-3-tc1/source/Cargo.toml [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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/wyhhh/vec_list` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d6b40d2c7e07495eac159d8b993f7d50fa7a842ba378b93ad08d8cbf28fd5ce3 [INFO] running `Command { std: "docker" "start" "-a" "d6b40d2c7e07495eac159d8b993f7d50fa7a842ba378b93ad08d8cbf28fd5ce3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6b40d2c7e07495eac159d8b993f7d50fa7a842ba378b93ad08d8cbf28fd5ce3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6b40d2c7e07495eac159d8b993f7d50fa7a842ba378b93ad08d8cbf28fd5ce3", kill_on_drop: false }` [INFO] [stdout] d6b40d2c7e07495eac159d8b993f7d50fa7a842ba378b93ad08d8cbf28fd5ce3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94eb341dc0d9781965c29439a3895f751cce4c295d2b853afbe64a5d5daf9f33 [INFO] running `Command { std: "docker" "start" "-a" "94eb341dc0d9781965c29439a3895f751cce4c295d2b853afbe64a5d5daf9f33", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.125 [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 log v0.4.16 [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] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling signal-hook v0.3.13 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling vec_list v0.1.0 (https://github.com/wyhhh/vec_list#e9373438) [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling num-complex v0.4.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling crossterm v0.23.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling 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] Compiling snake v0.1.0 (/opt/rustwide/workdir) [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)]` 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)]` 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)]` on by default [INFO] [stdout] = note: this warning originates in the macro `crossterm::execute` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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: for more information, see [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: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [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: for more information, see [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] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.24s [INFO] running `Command { std: "docker" "inspect" "94eb341dc0d9781965c29439a3895f751cce4c295d2b853afbe64a5d5daf9f33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94eb341dc0d9781965c29439a3895f751cce4c295d2b853afbe64a5d5daf9f33", kill_on_drop: false }` [INFO] [stdout] 94eb341dc0d9781965c29439a3895f751cce4c295d2b853afbe64a5d5daf9f33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a27edfe409bb00237b18ba9ce4686ad7906aa9bb4ffdaf485526a5d9d7f6a59 [INFO] running `Command { std: "docker" "start" "-a" "7a27edfe409bb00237b18ba9ce4686ad7906aa9bb4ffdaf485526a5d9d7f6a59", kill_on_drop: false }` [INFO] [stderr] Compiling snake v0.1.0 (/opt/rustwide/workdir) [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)]` 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)]` 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)]` on by default [INFO] [stdout] = note: this warning originates in the macro `crossterm::execute` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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: for more information, see [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: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [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: for more information, see [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] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] running `Command { std: "docker" "inspect" "7a27edfe409bb00237b18ba9ce4686ad7906aa9bb4ffdaf485526a5d9d7f6a59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a27edfe409bb00237b18ba9ce4686ad7906aa9bb4ffdaf485526a5d9d7f6a59", kill_on_drop: false }` [INFO] [stdout] 7a27edfe409bb00237b18ba9ce4686ad7906aa9bb4ffdaf485526a5d9d7f6a59