[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-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjakubtuchol%2Fadventofcode2018" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jakubtuchol/adventofcode2018 on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "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-7/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-02-22" "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-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e65fd2eaec4ab960948c3e039c9483b0d68ddf57aec74758d7c1f728f14378ed [INFO] running `Command { std: "docker" "start" "-a" "e65fd2eaec4ab960948c3e039c9483b0d68ddf57aec74758d7c1f728f14378ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e65fd2eaec4ab960948c3e039c9483b0d68ddf57aec74758d7c1f728f14378ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e65fd2eaec4ab960948c3e039c9483b0d68ddf57aec74758d7c1f728f14378ed", kill_on_drop: false }` [INFO] [stdout] e65fd2eaec4ab960948c3e039c9483b0d68ddf57aec74758d7c1f728f14378ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c179f8c137a6ca740acfe1d312ac97c5b3320e79db4a5a7241f06ca397b0ffc [INFO] running `Command { std: "docker" "start" "-a" "8c179f8c137a6ca740acfe1d312ac97c5b3320e79db4a5a7241f06ca397b0ffc", 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.50 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling regex v1.1.5 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling strsim v0.7.0 [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 aho-corasick v0.7.3 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling clap v2.32.0 [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 9.66s [INFO] running `Command { std: "docker" "inspect" "8c179f8c137a6ca740acfe1d312ac97c5b3320e79db4a5a7241f06ca397b0ffc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c179f8c137a6ca740acfe1d312ac97c5b3320e79db4a5a7241f06ca397b0ffc", kill_on_drop: false }` [INFO] [stdout] 8c179f8c137a6ca740acfe1d312ac97c5b3320e79db4a5a7241f06ca397b0ffc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dee3e7dee8f4a2b12e112274c8079a07057a22c292f3c200086c671f21365529 [INFO] running `Command { std: "docker" "start" "-a" "dee3e7dee8f4a2b12e112274c8079a07057a22c292f3c200086c671f21365529", 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 2.03s [INFO] running `Command { std: "docker" "inspect" "dee3e7dee8f4a2b12e112274c8079a07057a22c292f3c200086c671f21365529", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dee3e7dee8f4a2b12e112274c8079a07057a22c292f3c200086c671f21365529", kill_on_drop: false }` [INFO] [stdout] dee3e7dee8f4a2b12e112274c8079a07057a22c292f3c200086c671f21365529 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 624727ccac2e50e0e4eb8e4c0c326f7541948a59bd6753bb2f38748836fe2867 [INFO] running `Command { std: "docker" "start" "-a" "624727ccac2e50e0e4eb8e4c0c326f7541948a59bd6753bb2f38748836fe2867", 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.07s [INFO] [stderr] Running unittests (/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_two::tests::test_find_matching_words ... ok [INFO] [stdout] test day_three::tests::test_find_num_overlapping_spaces ... 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.04s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "624727ccac2e50e0e4eb8e4c0c326f7541948a59bd6753bb2f38748836fe2867", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "624727ccac2e50e0e4eb8e4c0c326f7541948a59bd6753bb2f38748836fe2867", kill_on_drop: false }` [INFO] [stdout] 624727ccac2e50e0e4eb8e4c0c326f7541948a59bd6753bb2f38748836fe2867