[INFO] cloning repository https://github.com/trevorsm7/advent_of_code_2017 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/trevorsm7/advent_of_code_2017" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrevorsm7%2Fadvent_of_code_2017", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrevorsm7%2Fadvent_of_code_2017'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b9f64b8d92fed4ba47108443b57703762df925c1 [INFO] testing trevorsm7/advent_of_code_2017 against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrevorsm7%2Fadvent_of_code_2017" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trevorsm7/advent_of_code_2017 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trevorsm7/advent_of_code_2017 [INFO] finished tweaking git repo https://github.com/trevorsm7/advent_of_code_2017 [INFO] tweaked toml for git repo https://github.com/trevorsm7/advent_of_code_2017 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/trevorsm7/advent_of_code_2017 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded parking_lot v0.6.3 [INFO] [stderr] Downloaded lock_api v0.1.3 [INFO] [stderr] Downloaded crossbeam-channel v0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] abfcf1f13972bb8875b5cd5a9ba7675aa513e6472a7e6ea4daaf4397ef595e59 [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" "abfcf1f13972bb8875b5cd5a9ba7675aa513e6472a7e6ea4daaf4397ef595e59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "abfcf1f13972bb8875b5cd5a9ba7675aa513e6472a7e6ea4daaf4397ef595e59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abfcf1f13972bb8875b5cd5a9ba7675aa513e6472a7e6ea4daaf4397ef595e59", kill_on_drop: false }` [INFO] [stdout] abfcf1f13972bb8875b5cd5a9ba7675aa513e6472a7e6ea4daaf4397ef595e59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c78efd8d0b77d62576b8165816cbb411469bb12ac1aef7c4ac4fde0aa06db7ce [INFO] running `Command { std: "docker" "start" "-a" "c78efd8d0b77d62576b8165816cbb411469bb12ac1aef7c4ac4fde0aa06db7ce", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.1.4 [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling nodrop v0.1.12 [INFO] [stderr] Compiling cfg-if v0.1.4 [INFO] [stderr] Compiling rand_core v0.2.1 [INFO] [stderr] Compiling regex v1.0.2 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling smallvec v0.6.4 [INFO] [stderr] Compiling lock_api v0.1.3 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling aho-corasick v0.6.6 [INFO] [stderr] Compiling crossbeam-epoch v0.5.2 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling parking_lot_core v0.2.14 [INFO] [stderr] Compiling crossbeam-deque v0.5.2 [INFO] [stderr] Compiling parking_lot v0.6.3 [INFO] [stderr] Compiling crossbeam-channel v0.2.4 [INFO] [stderr] Compiling crossbeam v0.4.1 [INFO] [stderr] Compiling aoc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/day7.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | fn find_imbalance(&self, &str) -> Result<(u32, u32), u32>; [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/day20.rs:122:53 [INFO] [stdout] | [INFO] [stdout] 122 | fn get_collision(&self, other: &Self) -> Option<(i32)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 122 - fn get_collision(&self, other: &Self) -> Option<(i32)> { [INFO] [stdout] 122 + fn get_collision(&self, other: &Self) -> Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/day21.rs:258:79 [INFO] [stdout] | [INFO] [stdout] 258 | fn match_pattern_3x3<'a>(input: &[u32], patterns: &'a [Pattern3x3]) -> Option<(&'a [u32])> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 258 - fn match_pattern_3x3<'a>(input: &[u32], patterns: &'a [Pattern3x3]) -> Option<(&'a [u32])> { [INFO] [stdout] 258 + fn match_pattern_3x3<'a>(input: &[u32], patterns: &'a [Pattern3x3]) -> Option<&'a [u32]> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/day1.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | let len = input.trim_right().len(); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/day10.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | .trim_right() // discard EOL whitespace [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/day10.rs:104:23 [INFO] [stdout] | [INFO] [stdout] 104 | let input = input.trim_right(); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/day11.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | .trim_right() [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/main.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | while let Some(e) = e.cause() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day11.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | _ => panic!(format!("Invalid token '{}'", tok)), [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] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 41 - _ => panic!(format!("Invalid token '{}'", tok)), [INFO] [stdout] 41 + _ => panic!("Invalid token '{}'", tok), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day20.rs:95:28 [INFO] [stdout] | [INFO] [stdout] 95 | panic!(format!("Unhandled: '{}'", caps.get(0).unwrap().as_str())); [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] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 95 - panic!(format!("Unhandled: '{}'", caps.get(0).unwrap().as_str())); [INFO] [stdout] 95 + panic!("Unhandled: '{}'", caps.get(0).unwrap().as_str()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 37.76s [INFO] running `Command { std: "docker" "inspect" "c78efd8d0b77d62576b8165816cbb411469bb12ac1aef7c4ac4fde0aa06db7ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c78efd8d0b77d62576b8165816cbb411469bb12ac1aef7c4ac4fde0aa06db7ce", kill_on_drop: false }` [INFO] [stdout] c78efd8d0b77d62576b8165816cbb411469bb12ac1aef7c4ac4fde0aa06db7ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 34511f7fda2e3554702c5629055a7f0ad5d5b06f8d1b5472b53a3fa71282b91a [INFO] running `Command { std: "docker" "start" "-a" "34511f7fda2e3554702c5629055a7f0ad5d5b06f8d1b5472b53a3fa71282b91a", kill_on_drop: false }` [INFO] [stderr] Compiling aoc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/day7.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | fn find_imbalance(&self, &str) -> Result<(u32, u32), u32>; [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/day20.rs:122:53 [INFO] [stdout] | [INFO] [stdout] 122 | fn get_collision(&self, other: &Self) -> Option<(i32)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 122 - fn get_collision(&self, other: &Self) -> Option<(i32)> { [INFO] [stdout] 122 + fn get_collision(&self, other: &Self) -> Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/day21.rs:258:79 [INFO] [stdout] | [INFO] [stdout] 258 | fn match_pattern_3x3<'a>(input: &[u32], patterns: &'a [Pattern3x3]) -> Option<(&'a [u32])> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 258 - fn match_pattern_3x3<'a>(input: &[u32], patterns: &'a [Pattern3x3]) -> Option<(&'a [u32])> { [INFO] [stdout] 258 + fn match_pattern_3x3<'a>(input: &[u32], patterns: &'a [Pattern3x3]) -> Option<&'a [u32]> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day1.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 72 | fn test_part1(f: &Fn(&str) -> u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 72 - fn test_part1(f: &Fn(&str) -> u32) { [INFO] [stdout] 72 + fn test_part1(f: &dyn Fn(&str) -> u32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day1.rs:123:19 [INFO] [stdout] | [INFO] [stdout] 123 | fn test_part2(f: &Fn(&str) -> u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 123 - fn test_part2(f: &Fn(&str) -> u32) { [INFO] [stdout] 123 + fn test_part2(f: &dyn Fn(&str) -> u32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/day1.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | let len = input.trim_right().len(); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/day10.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | .trim_right() // discard EOL whitespace [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/day10.rs:104:23 [INFO] [stdout] | [INFO] [stdout] 104 | let input = input.trim_right(); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/day11.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | .trim_right() [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/main.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | while let Some(e) = e.cause() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day11.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | _ => panic!(format!("Invalid token '{}'", tok)), [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] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 41 - _ => panic!(format!("Invalid token '{}'", tok)), [INFO] [stdout] 41 + _ => panic!("Invalid token '{}'", tok), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day20.rs:95:28 [INFO] [stdout] | [INFO] [stdout] 95 | panic!(format!("Unhandled: '{}'", caps.get(0).unwrap().as_str())); [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] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 95 - panic!(format!("Unhandled: '{}'", caps.get(0).unwrap().as_str())); [INFO] [stdout] 95 + panic!("Unhandled: '{}'", caps.get(0).unwrap().as_str()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 8.22s [INFO] running `Command { std: "docker" "inspect" "34511f7fda2e3554702c5629055a7f0ad5d5b06f8d1b5472b53a3fa71282b91a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34511f7fda2e3554702c5629055a7f0ad5d5b06f8d1b5472b53a3fa71282b91a", kill_on_drop: false }` [INFO] [stdout] 34511f7fda2e3554702c5629055a7f0ad5d5b06f8d1b5472b53a3fa71282b91a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c69e96584c92614389a04d19f75ecdf8d8ad08899f95d5c407df385b05edaf20 [INFO] running `Command { std: "docker" "start" "-a" "c69e96584c92614389a04d19f75ecdf8d8ad08899f95d5c407df385b05edaf20", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/day7.rs:32:30 [INFO] [stderr] | [INFO] [stderr] 32 | fn find_imbalance(&self, &str) -> Result<(u32, u32), u32>; [INFO] [stderr] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/day20.rs:122:53 [INFO] [stderr] | [INFO] [stderr] 122 | fn get_collision(&self, other: &Self) -> Option<(i32)> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 122 - fn get_collision(&self, other: &Self) -> Option<(i32)> { [INFO] [stderr] 122 + fn get_collision(&self, other: &Self) -> Option { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/day21.rs:258:79 [INFO] [stderr] | [INFO] [stderr] 258 | fn match_pattern_3x3<'a>(input: &[u32], patterns: &'a [Pattern3x3]) -> Option<(&'a [u32])> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 258 - fn match_pattern_3x3<'a>(input: &[u32], patterns: &'a [Pattern3x3]) -> Option<(&'a [u32])> { [INFO] [stderr] 258 + fn match_pattern_3x3<'a>(input: &[u32], patterns: &'a [Pattern3x3]) -> Option<&'a [u32]> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/day1.rs:72:19 [INFO] [stderr] | [INFO] [stderr] 72 | fn test_part1(f: &Fn(&str) -> u32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 72 - fn test_part1(f: &Fn(&str) -> u32) { [INFO] [stderr] 72 + fn test_part1(f: &dyn Fn(&str) -> u32) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/day1.rs:123:19 [INFO] [stderr] | [INFO] [stderr] 123 | fn test_part2(f: &Fn(&str) -> u32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 123 - fn test_part2(f: &Fn(&str) -> u32) { [INFO] [stderr] 123 + fn test_part2(f: &dyn Fn(&str) -> u32) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stderr] --> src/day1.rs:156:21 [INFO] [stderr] | [INFO] [stderr] 156 | let len = input.trim_right().len(); [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stderr] --> src/day10.rs:83:10 [INFO] [stderr] | [INFO] [stderr] 83 | .trim_right() // discard EOL whitespace [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stderr] --> src/day10.rs:104:23 [INFO] [stderr] | [INFO] [stderr] 104 | let input = input.trim_right(); [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stderr] --> src/day11.rs:31:10 [INFO] [stderr] | [INFO] [stderr] 31 | .trim_right() [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stderr] --> src/main.rs:78:31 [INFO] [stderr] | [INFO] [stderr] 78 | while let Some(e) = e.cause() { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/day11.rs:41:25 [INFO] [stderr] | [INFO] [stderr] 41 | _ => panic!(format!("Invalid token '{}'", tok)), [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] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 41 - _ => panic!(format!("Invalid token '{}'", tok)), [INFO] [stderr] 41 + _ => panic!("Invalid token '{}'", tok), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/day20.rs:95:28 [INFO] [stderr] | [INFO] [stderr] 95 | panic!(format!("Unhandled: '{}'", caps.get(0).unwrap().as_str())); [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] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 95 - panic!(format!("Unhandled: '{}'", caps.get(0).unwrap().as_str())); [INFO] [stderr] 95 + panic!("Unhandled: '{}'", caps.get(0).unwrap().as_str()); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `aoc` (bin "aoc" test) generated 12 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.35s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/aoc-8be82aa7e223afaa) [INFO] [stdout] [INFO] [stdout] running 51 tests [INFO] [stdout] test day11::test_day11 ... ok [INFO] [stdout] test day12::test_day12 ... ok [INFO] [stdout] test day10::test_day10_part2 ... ok [INFO] [stdout] test day16::test_day16_part1 ... ok [INFO] [stdout] test day16::test_day16_part2 ... ok [INFO] [stdout] test day10::test_day10_part1 ... ok [INFO] [stdout] test day1::test_part1_scan ... ok [INFO] [stdout] test day17::test_day17_part1 ... ok [INFO] [stdout] test day17::test_day17_part2 ... ok [INFO] [stdout] test day13::test_day13 ... ok [INFO] [stdout] test day18::test_day18_part1 ... ok [INFO] [stdout] test day1::test_part1_zip ... ok [INFO] [stdout] test day1::test_part2_zip ... ok [INFO] [stdout] test day21::test_day21_match_pattern_2x2 ... ok [INFO] [stdout] test day21::test_day21_match_pattern_3x3 ... ok [INFO] [stdout] test day21::test_day21_enhance ... ok [INFO] [stdout] test day21::test_day21_read_patterns ... ok [INFO] [stdout] test day18::test_day18_part2 ... ok [INFO] [stdout] test day21::test_day21_transform_2x2 ... ok [INFO] [stdout] test day20::test_day20_part2 ... ok [INFO] [stdout] test day23::test_day23_is_prime ... ok [INFO] [stdout] test day24::test_day24_build_lookup ... ok [INFO] [stdout] test day23::test_day23_parse_program ... ok [INFO] [stdout] test day22::test_day22_grid ... ok [INFO] [stdout] test day24::test_day24_read_components ... ok [INFO] [stdout] test day20::test_day20_part1 ... ok [INFO] [stdout] test day19::test_day19 ... ok [INFO] [stdout] test day1::test_part2_vec ... ok [INFO] [stdout] test day1::test_part1_peek ... ok [INFO] [stdout] test day2::test_part2 ... ok [INFO] [stdout] test day25::test_part1 ... ok [INFO] [stdout] test day2::test_part1 ... ok [INFO] [stdout] test day3::test_part2 ... ok [INFO] [stdout] test day5::test_day5_part2 ... ok [INFO] [stdout] test day4::test_day4_part1 ... ok [INFO] [stdout] test day4::test_day4_part2 ... ok [INFO] [stdout] test day9::test_day9 ... ok [INFO] [stdout] test day6::test_day6_part1 ... ok [INFO] [stdout] test day6::test_day6_part2 ... ok [INFO] [stdout] test day21::test_day21_transform_3x3 ... ok [INFO] [stdout] test day24::test_day24_run ... ok [INFO] [stdout] test day3::test_part1 ... ok [INFO] [stdout] test day5::test_day5_part1 ... ok [INFO] [stdout] test day8::test_day8 ... ok [INFO] [stdout] test day25::test_day25_parse_machine ... ok [INFO] [stdout] test day7::test_day7 ... ok [INFO] [stdout] test day22::test_day22_part1 ... ok [INFO] [stdout] test day14::test_day14 ... ok [INFO] [stdout] test day15::test_day15_part2 ... ok [INFO] [stdout] test day15::test_day15_part1 ... ok [INFO] [stdout] test day22::test_day22_part2 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 51 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 30.08s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c69e96584c92614389a04d19f75ecdf8d8ad08899f95d5c407df385b05edaf20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c69e96584c92614389a04d19f75ecdf8d8ad08899f95d5c407df385b05edaf20", kill_on_drop: false }` [INFO] [stdout] c69e96584c92614389a04d19f75ecdf8d8ad08899f95d5c407df385b05edaf20