[INFO] cloning repository https://github.com/jakubtuchol/adventofcode2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jakubtuchol/adventofcode2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjakubtuchol%2Fadventofcode2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjakubtuchol%2Fadventofcode2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5b238b3b6a2eec7ce8c6939a6a0062e85430ae24 [INFO] testing jakubtuchol/adventofcode2018 against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjakubtuchol%2Fadventofcode2018" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jakubtuchol/adventofcode2018 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jakubtuchol/adventofcode2018 [INFO] finished tweaking git repo https://github.com/jakubtuchol/adventofcode2018 [INFO] tweaked toml for git repo https://github.com/jakubtuchol/adventofcode2018 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/jakubtuchol/adventofcode2018 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3a612df5a8f63f7a18b61094cd9a849df515f7daeeb32459b67aa7068ea37ef9 [INFO] running `Command { std: "docker" "start" "-a" "3a612df5a8f63f7a18b61094cd9a849df515f7daeeb32459b67aa7068ea37ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a612df5a8f63f7a18b61094cd9a849df515f7daeeb32459b67aa7068ea37ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a612df5a8f63f7a18b61094cd9a849df515f7daeeb32459b67aa7068ea37ef9", kill_on_drop: false }` [INFO] [stdout] 3a612df5a8f63f7a18b61094cd9a849df515f7daeeb32459b67aa7068ea37ef9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c7ef4ee70a1de8a964365877cf6648c16654a80987c4b92164c50cce6d259dc [INFO] running `Command { std: "docker" "start" "-a" "2c7ef4ee70a1de8a964365877cf6648c16654a80987c4b92164c50cce6d259dc", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling libc v0.2.50 [INFO] [stderr] Compiling regex v1.1.5 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling itertools v0.7.11 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling regex-syntax v0.6.6 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling aho-corasick v0.7.3 [INFO] [stderr] Compiling adventofcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `last_event` [INFO] [stdout] --> src/day_four.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut last_event: Option = None; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_event` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_event` [INFO] [stdout] --> src/day_four.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let new_event = parse_event(&line); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_four.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let mut last_event: Option = None; [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: variant is never constructed: `Begin` [INFO] [stdout] --> src/day_four.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Begin, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `EventType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/day_four.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Sleep` [INFO] [stdout] --> src/day_four.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Sleep, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `EventType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/day_four.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Wake` [INFO] [stdout] --> src/day_four.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Wake, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `EventType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/day_four.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Event` [INFO] [stdout] --> src/day_four.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Event { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_date` [INFO] [stdout] --> src/day_four.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn get_date(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_event` [INFO] [stdout] --> src/day_four.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn parse_event(line: &str) -> (Event, Option) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_minute_difference` [INFO] [stdout] --> src/day_four.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn get_minute_difference(one: &Event, two: &Event) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_vector_sum` [INFO] [stdout] --> src/day_four.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn get_vector_sum(one: Vec, two: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_most_minutes_asleep` [INFO] [stdout] --> src/day_four.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn calculate_most_minutes_asleep(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:67:26 [INFO] [stdout] | [INFO] [stdout] 67 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 67 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 67 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:87:26 [INFO] [stdout] | [INFO] [stdout] 87 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 87 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 87 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.61s [INFO] running `Command { std: "docker" "inspect" "2c7ef4ee70a1de8a964365877cf6648c16654a80987c4b92164c50cce6d259dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c7ef4ee70a1de8a964365877cf6648c16654a80987c4b92164c50cce6d259dc", kill_on_drop: false }` [INFO] [stdout] 2c7ef4ee70a1de8a964365877cf6648c16654a80987c4b92164c50cce6d259dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 59a17484524bd296b7043456ed0cd3c7d9c699e5c8f03e22f94fcb858d9dc5e7 [INFO] running `Command { std: "docker" "start" "-a" "59a17484524bd296b7043456ed0cd3c7d9c699e5c8f03e22f94fcb858d9dc5e7", kill_on_drop: false }` [INFO] [stderr] Compiling adventofcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `last_event` [INFO] [stdout] --> src/day_four.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut last_event: Option = None; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_event` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_event` [INFO] [stdout] --> src/day_four.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let new_event = parse_event(&line); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_four.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let mut last_event: Option = None; [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: `get_date` [INFO] [stdout] --> src/day_four.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn get_date(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_minute_difference` [INFO] [stdout] --> src/day_four.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn get_minute_difference(one: &Event, two: &Event) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_most_minutes_asleep` [INFO] [stdout] --> src/day_four.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn calculate_most_minutes_asleep(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:67:26 [INFO] [stdout] | [INFO] [stdout] 67 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 67 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 67 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:87:26 [INFO] [stdout] | [INFO] [stdout] 87 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 87 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 87 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.55s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/adventofcode-73fc8355213fde04) [INFO] running `Command { std: "docker" "inspect" "59a17484524bd296b7043456ed0cd3c7d9c699e5c8f03e22f94fcb858d9dc5e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59a17484524bd296b7043456ed0cd3c7d9c699e5c8f03e22f94fcb858d9dc5e7", kill_on_drop: false }` [INFO] [stdout] 59a17484524bd296b7043456ed0cd3c7d9c699e5c8f03e22f94fcb858d9dc5e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e2fc40089d4fc8dbfcae9b060de8df3f2158298e53b6c55fbc702a93b15d028f [INFO] running `Command { std: "docker" "start" "-a" "e2fc40089d4fc8dbfcae9b060de8df3f2158298e53b6c55fbc702a93b15d028f", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `last_event` [INFO] [stderr] --> src/day_four.rs:91:13 [INFO] [stderr] | [INFO] [stderr] 91 | let mut last_event: Option = None; [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_event` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `new_event` [INFO] [stderr] --> src/day_four.rs:94:13 [INFO] [stderr] | [INFO] [stderr] 94 | let new_event = parse_event(&line); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_event` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/day_four.rs:91:9 [INFO] [stderr] | [INFO] [stderr] 91 | let mut last_event: Option = None; [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_date` [INFO] [stderr] --> src/day_four.rs:22:8 [INFO] [stderr] | [INFO] [stderr] 22 | fn get_date(&self) -> String { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_minute_difference` [INFO] [stderr] --> src/day_four.rs:70:4 [INFO] [stderr] | [INFO] [stderr] 70 | fn get_minute_difference(one: &Event, two: &Event) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_most_minutes_asleep` [INFO] [stderr] --> src/day_four.rs:90:4 [INFO] [stderr] | [INFO] [stderr] 90 | fn calculate_most_minutes_asleep(lines: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/main.rs:45:26 [INFO] [stderr] | [INFO] [stderr] 45 | Err(e) => panic!(e), [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 45 | Err(e) => panic!("{}", e), [INFO] [stderr] | +++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 45 | Err(e) => std::panic::panic_any(e), [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/main.rs:67:26 [INFO] [stderr] | [INFO] [stderr] 67 | Err(e) => panic!(e), [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 67 | Err(e) => panic!("{}", e), [INFO] [stderr] | +++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 67 | Err(e) => std::panic::panic_any(e), [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/main.rs:87:26 [INFO] [stderr] | [INFO] [stderr] 87 | Err(e) => panic!(e), [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 87 | Err(e) => panic!("{}", e), [INFO] [stderr] | +++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 87 | Err(e) => std::panic::panic_any(e), [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: `adventofcode` (bin "adventofcode" test) generated 9 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/adventofcode-73fc8355213fde04) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test day_four::tests::test_get_vector_sum ... ok [INFO] [stdout] test day_three::tests::test_create_claim ... ok [INFO] [stdout] test day_one::tests::test_calculate_final_frequency ... ok [INFO] [stdout] test day_one::tests::test_find_repeated_frequency ... ok [INFO] [stdout] test day_three::tests::test_get_claim_overlap ... ok [INFO] [stdout] test day_three::tests::test_find_num_overlapping_spaces ... ok [INFO] [stdout] test day_two::tests::test_find_matching_words ... ok [INFO] [stdout] test day_two::tests::test_get_id_checksum ... ok [INFO] [stdout] test day_two::tests::test_get_box_list_checksum ... ok [INFO] [stdout] test day_four::tests::test_parse_event ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e2fc40089d4fc8dbfcae9b060de8df3f2158298e53b6c55fbc702a93b15d028f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2fc40089d4fc8dbfcae9b060de8df3f2158298e53b6c55fbc702a93b15d028f", kill_on_drop: false }` [INFO] [stdout] e2fc40089d4fc8dbfcae9b060de8df3f2158298e53b6c55fbc702a93b15d028f