[INFO] cloning repository https://github.com/Deskbot/Advent-of-Code-2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Deskbot/Advent-of-Code-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeskbot%2FAdvent-of-Code-2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeskbot%2FAdvent-of-Code-2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 97d5a7e7e7f2a57ec64a5591688d1c2f5e90617d [INFO] building Deskbot/Advent-of-Code-2020 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%2FDeskbot%2FAdvent-of-Code-2020" "/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/Deskbot/Advent-of-Code-2020 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/Deskbot/Advent-of-Code-2020 [INFO] finished tweaking git repo https://github.com/Deskbot/Advent-of-Code-2020 [INFO] tweaked toml for git repo https://github.com/Deskbot/Advent-of-Code-2020 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Deskbot/Advent-of-Code-2020 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] Downloading crates ... [INFO] [stderr] Downloaded substring v1.4.0 [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] 38e3f9593fce4c0f653a641c97ca6bda6afb1e8cf5b12f7f25314c027fd5c0d8 [INFO] running `Command { std: "docker" "start" "-a" "38e3f9593fce4c0f653a641c97ca6bda6afb1e8cf5b12f7f25314c027fd5c0d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "38e3f9593fce4c0f653a641c97ca6bda6afb1e8cf5b12f7f25314c027fd5c0d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38e3f9593fce4c0f653a641c97ca6bda6afb1e8cf5b12f7f25314c027fd5c0d8", kill_on_drop: false }` [INFO] [stdout] 38e3f9593fce4c0f653a641c97ca6bda6afb1e8cf5b12f7f25314c027fd5c0d8 [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] 9efb8c33d020d3fb02f6473564c96bb93a83cc96210b4052ad68a1ba6842c678 [INFO] running `Command { std: "docker" "start" "-a" "9efb8c33d020d3fb02f6473564c96bb93a83cc96210b4052ad68a1ba6842c678", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling substring v1.4.0 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling advent_of_code_2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/day/day23.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/day/day22.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | fn part2(p1: Deck, p2: Deck) -> i64 { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/day/day22.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | fn part2(p1: Deck, p2: Deck) -> i64 { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cups` [INFO] [stdout] --> src/day/day23.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut cups = Cups::parse(input); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cups` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day/day23.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut cups = Cups::parse(input); [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: fields `current_cup` and `list` are never read [INFO] [stdout] --> src/day/day23.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Cups { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | current_cup: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 15 | list: Vec [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `step` is never used [INFO] [stdout] --> src/day/day23.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Cups { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sum` is never used [INFO] [stdout] --> src/util.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait SumI64 { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 93 | fn sum(&mut self) -> i64; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `product` is never used [INFO] [stdout] --> src/util.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub trait ProductI64 { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 103 | fn product(&mut self) -> i64; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.14s [INFO] running `Command { std: "docker" "inspect" "9efb8c33d020d3fb02f6473564c96bb93a83cc96210b4052ad68a1ba6842c678", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9efb8c33d020d3fb02f6473564c96bb93a83cc96210b4052ad68a1ba6842c678", kill_on_drop: false }` [INFO] [stdout] 9efb8c33d020d3fb02f6473564c96bb93a83cc96210b4052ad68a1ba6842c678 [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] 43270cadb11d09ca6ab3680179dc304226bc02a3c7fc28d85140cebf2e1ae141 [INFO] running `Command { std: "docker" "start" "-a" "43270cadb11d09ca6ab3680179dc304226bc02a3c7fc28d85140cebf2e1ae141", kill_on_drop: false }` [INFO] [stderr] Compiling advent_of_code_2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/day/day23.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/day/day22.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | fn part2(p1: Deck, p2: Deck) -> i64 { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/day/day22.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | fn part2(p1: Deck, p2: Deck) -> i64 { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cups` [INFO] [stdout] --> src/day/day23.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut cups = Cups::parse(input); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cups` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day/day23.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut cups = Cups::parse(input); [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: fields `current_cup` and `list` are never read [INFO] [stdout] --> src/day/day23.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Cups { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | current_cup: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 15 | list: Vec [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `step` is never used [INFO] [stdout] --> src/day/day23.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Cups { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sum` is never used [INFO] [stdout] --> src/util.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait SumI64 { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 93 | fn sum(&mut self) -> i64; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `product` is never used [INFO] [stdout] --> src/util.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub trait ProductI64 { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 103 | fn product(&mut self) -> i64; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.95s [INFO] running `Command { std: "docker" "inspect" "43270cadb11d09ca6ab3680179dc304226bc02a3c7fc28d85140cebf2e1ae141", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43270cadb11d09ca6ab3680179dc304226bc02a3c7fc28d85140cebf2e1ae141", kill_on_drop: false }` [INFO] [stdout] 43270cadb11d09ca6ab3680179dc304226bc02a3c7fc28d85140cebf2e1ae141