[INFO] cloning repository https://github.com/shelvacu/warsim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shelvacu/warsim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshelvacu%2Fwarsim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshelvacu%2Fwarsim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 249f2402abd2a87cafae9a2a4772dbea63b6093a [INFO] checking shelvacu/warsim against try#6f8a6450478f69b8510c8976ab6c2a70b3b0e47c for pr-84920 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshelvacu%2Fwarsim" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shelvacu/warsim on toolchain 6f8a6450478f69b8510c8976ab6c2a70b3b0e47c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shelvacu/warsim [INFO] finished tweaking git repo https://github.com/shelvacu/warsim [INFO] tweaked toml for git repo https://github.com/shelvacu/warsim written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/shelvacu/warsim already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arr_macro_impl v0.1.3 [INFO] [stderr] Downloaded arr_macro v0.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef6005af64d8a4d81ba2dd236d16157a014f033babb6bb0bd9f16d9bd15edaea [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ef6005af64d8a4d81ba2dd236d16157a014f033babb6bb0bd9f16d9bd15edaea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef6005af64d8a4d81ba2dd236d16157a014f033babb6bb0bd9f16d9bd15edaea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef6005af64d8a4d81ba2dd236d16157a014f033babb6bb0bd9f16d9bd15edaea", kill_on_drop: false }` [INFO] [stdout] ef6005af64d8a4d81ba2dd236d16157a014f033babb6bb0bd9f16d9bd15edaea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b79a109a357e3a5c22e04013e9975e970bbb73d2d73429146ec3f44a76fd212 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5b79a109a357e3a5c22e04013e9975e970bbb73d2d73429146ec3f44a76fd212", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling syn v1.0.68 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Compiling arr_macro_impl v0.1.3 [INFO] [stderr] Checking arr_macro v0.1.3 [INFO] [stderr] Checking warsim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:225:52 [INFO] [stdout] | [INFO] [stdout] 225 | competing_cards.sort_unstable_by_key(|(a,b)| *b); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:232:31 [INFO] [stdout] | [INFO] [stdout] 232 | .take_while(|(i,c)| *c==winning_card) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | .map(|(i,c)| *i) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:267:72 [INFO] [stdout] | [INFO] [stdout] 267 | let players_in:Vec<_> = self.hands.iter().enumerate().filter(|(i,h)| h.len() > 0).map(|(i,h)| i).collect(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/main.rs:267:99 [INFO] [stdout] | [INFO] [stdout] 267 | let players_in:Vec<_> = self.hands.iter().enumerate().filter(|(i,h)| h.len() > 0).map(|(i,h)| i).collect(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:225:52 [INFO] [stdout] | [INFO] [stdout] 225 | competing_cards.sort_unstable_by_key(|(a,b)| *b); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:232:31 [INFO] [stdout] | [INFO] [stdout] 232 | .take_while(|(i,c)| *c==winning_card) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | .map(|(i,c)| *i) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:267:72 [INFO] [stdout] | [INFO] [stdout] 267 | let players_in:Vec<_> = self.hands.iter().enumerate().filter(|(i,h)| h.len() > 0).map(|(i,h)| i).collect(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/main.rs:267:99 [INFO] [stdout] | [INFO] [stdout] 267 | let players_in:Vec<_> = self.hands.iter().enumerate().filter(|(i,h)| h.len() > 0).map(|(i,h)| i).collect(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:229:17 [INFO] [stdout] | [INFO] [stdout] 229 | let mut winners:Vec = competing_cards [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: associated function is never used: `history` [INFO] [stdout] --> src/main.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn history(&self) -> &[T] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:229:17 [INFO] [stdout] | [INFO] [stdout] 229 | let mut winners:Vec = competing_cards [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: associated function is never used: `history` [INFO] [stdout] --> src/main.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn history(&self) -> &[T] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 27.72s [INFO] running `Command { std: "docker" "inspect" "5b79a109a357e3a5c22e04013e9975e970bbb73d2d73429146ec3f44a76fd212", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b79a109a357e3a5c22e04013e9975e970bbb73d2d73429146ec3f44a76fd212", kill_on_drop: false }` [INFO] [stdout] 5b79a109a357e3a5c22e04013e9975e970bbb73d2d73429146ec3f44a76fd212