[INFO] cloning repository https://github.com/andyrbell/advent-of-code-2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/andyrbell/advent-of-code-2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandyrbell%2Fadvent-of-code-2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandyrbell%2Fadvent-of-code-2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3671cd06ea21839e1970511adcc50361fc8ed945 [INFO] building andyrbell/advent-of-code-2019 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%2Fandyrbell%2Fadvent-of-code-2019" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/andyrbell/advent-of-code-2019 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/andyrbell/advent-of-code-2019 [INFO] finished tweaking git repo https://github.com/andyrbell/advent-of-code-2019 [INFO] tweaked toml for git repo https://github.com/andyrbell/advent-of-code-2019 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/andyrbell/advent-of-code-2019 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] e1f38ae634d55d0b6cbe3177416d969849f6e49ccbb69636d5cf6e5a7b5417e9 [INFO] running `Command { std: "docker" "start" "-a" "e1f38ae634d55d0b6cbe3177416d969849f6e49ccbb69636d5cf6e5a7b5417e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e1f38ae634d55d0b6cbe3177416d969849f6e49ccbb69636d5cf6e5a7b5417e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1f38ae634d55d0b6cbe3177416d969849f6e49ccbb69636d5cf6e5a7b5417e9", kill_on_drop: false }` [INFO] [stdout] e1f38ae634d55d0b6cbe3177416d969849f6e49ccbb69636d5cf6e5a7b5417e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 4063ef2071eb32a79931488eb3058d62b8f9269d182e329cd3b0678bc25ab47f [INFO] running `Command { std: "docker" "start" "-a" "4063ef2071eb32a79931488eb3058d62b8f9269d182e329cd3b0678bc25ab47f", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.12 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling aho-corasick v0.7.6 [INFO] [stderr] Compiling regex v1.3.1 [INFO] [stderr] Compiling advent-of-code-2019-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/day02.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 import: `crate::utils::read_input` [INFO] [stdout] --> src/day02.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::utils::read_input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::split_csv` [INFO] [stdout] --> src/day02.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::split_csv; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/utils.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn read_input(file: &str, line_mapper: F) -> Vec [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_to_int` is never used [INFO] [stdout] --> src/utils.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn str_to_int(s: &str) -> i64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_csv` is never used [INFO] [stdout] --> src/utils.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn split_csv(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_part1` is never used [INFO] [stdout] --> src/day01.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn solve_part1(input: Vec) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_part2` is never used [INFO] [stdout] --> src/day01.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn solve_part2(input: Vec) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_fuel` is never used [INFO] [stdout] --> src/day01.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn calculate_fuel(acc: i64, mass: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day01.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn read_input() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_part1` is never used [INFO] [stdout] --> src/day02.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn solve_part1(input: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_program` is never used [INFO] [stdout] --> src/day02.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn run_program(pointer: i32, mut opcodes: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiply` is never used [INFO] [stdout] --> src/day02.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn multiply(pointer: i32, opcodes: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/day02.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn add(pointer: i32, opcodes: &mut Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_part2` is never used [INFO] [stdout] --> src/day02.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn solve_part2(input: &Vec, noun: i64, verb: i64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `never_decreases` is never used [INFO] [stdout] --> src/day04.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn never_decreases(password: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains_double` is never used [INFO] [stdout] --> src/day04.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn contains_double(password: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains_exclusive_double` is never used [INFO] [stdout] --> src/day04.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn contains_exclusive_double(password: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_digits` is never used [INFO] [stdout] --> src/day04.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn to_digits(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.54s [INFO] running `Command { std: "docker" "inspect" "4063ef2071eb32a79931488eb3058d62b8f9269d182e329cd3b0678bc25ab47f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4063ef2071eb32a79931488eb3058d62b8f9269d182e329cd3b0678bc25ab47f", kill_on_drop: false }` [INFO] [stdout] 4063ef2071eb32a79931488eb3058d62b8f9269d182e329cd3b0678bc25ab47f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 94911fb4edae9d01662c92c40d38558462782972ba9a95e6c9d7eb9e1934c71d [INFO] running `Command { std: "docker" "start" "-a" "94911fb4edae9d01662c92c40d38558462782972ba9a95e6c9d7eb9e1934c71d", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/day02.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 import: `crate::utils::read_input` [INFO] [stdout] --> src/day02.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::utils::read_input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling advent-of-code-2019-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::utils::split_csv` [INFO] [stdout] --> src/day02.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::split_csv; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/utils.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn read_input(file: &str, line_mapper: F) -> Vec [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_to_int` is never used [INFO] [stdout] --> src/utils.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn str_to_int(s: &str) -> i64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_csv` is never used [INFO] [stdout] --> src/utils.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn split_csv(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_part1` is never used [INFO] [stdout] --> src/day01.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn solve_part1(input: Vec) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_part2` is never used [INFO] [stdout] --> src/day01.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn solve_part2(input: Vec) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_fuel` is never used [INFO] [stdout] --> src/day01.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn calculate_fuel(acc: i64, mass: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day01.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn read_input() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_part1` is never used [INFO] [stdout] --> src/day02.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn solve_part1(input: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_program` is never used [INFO] [stdout] --> src/day02.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn run_program(pointer: i32, mut opcodes: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiply` is never used [INFO] [stdout] --> src/day02.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn multiply(pointer: i32, opcodes: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/day02.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn add(pointer: i32, opcodes: &mut Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_part2` is never used [INFO] [stdout] --> src/day02.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn solve_part2(input: &Vec, noun: i64, verb: i64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `never_decreases` is never used [INFO] [stdout] --> src/day04.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn never_decreases(password: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains_double` is never used [INFO] [stdout] --> src/day04.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn contains_double(password: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains_exclusive_double` is never used [INFO] [stdout] --> src/day04.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn contains_exclusive_double(password: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_digits` is never used [INFO] [stdout] --> src/day04.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn to_digits(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/day02.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: variable does not need to be mutable [INFO] [stdout] --> src/day02.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut input = lines[0].clone(); [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.02s [INFO] running `Command { std: "docker" "inspect" "94911fb4edae9d01662c92c40d38558462782972ba9a95e6c9d7eb9e1934c71d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94911fb4edae9d01662c92c40d38558462782972ba9a95e6c9d7eb9e1934c71d", kill_on_drop: false }` [INFO] [stdout] 94911fb4edae9d01662c92c40d38558462782972ba9a95e6c9d7eb9e1934c71d