[INFO] cloning repository https://github.com/mrbech/aoc2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mrbech/aoc2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrbech%2Faoc2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrbech%2Faoc2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ea974b7397dfe86e74b63e509ffdf37fd0f6be8a [INFO] checking mrbech/aoc2018 against master#e43d139a82620a268d3828a73e12a8679339e8f8 for pr-143545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrbech%2Faoc2018" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mrbech/aoc2018 [INFO] finished tweaking git repo https://github.com/mrbech/aoc2018 [INFO] tweaked toml for git repo https://github.com/mrbech/aoc2018 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mrbech/aoc2018 on toolchain e43d139a82620a268d3828a73e12a8679339e8f8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e43d139a82620a268d3828a73e12a8679339e8f8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mrbech/aoc2018 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" "+e43d139a82620a268d3828a73e12a8679339e8f8" "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-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+e43d139a82620a268d3828a73e12a8679339e8f8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 08b4824b52438a9e1f170e109103f13af13767630fe0650e06c554a57f7fda91 [INFO] running `Command { std: "docker" "start" "-a" "08b4824b52438a9e1f170e109103f13af13767630fe0650e06c554a57f7fda91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "08b4824b52438a9e1f170e109103f13af13767630fe0650e06c554a57f7fda91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08b4824b52438a9e1f170e109103f13af13767630fe0650e06c554a57f7fda91", kill_on_drop: false }` [INFO] [stdout] 08b4824b52438a9e1f170e109103f13af13767630fe0650e06c554a57f7fda91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+e43d139a82620a268d3828a73e12a8679339e8f8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54e35e237177cc4a66b704fc6f9b3daf85ae855fabdec62969efb7ec0dcb77ef [INFO] running `Command { std: "docker" "start" "-a" "54e35e237177cc4a66b704fc6f9b3daf85ae855fabdec62969efb7ec0dcb77ef", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking aoc2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> src/day3/mod.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 21 - .into_iter() [INFO] [stdout] 21 + .iter() [INFO] [stdout] | [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 20 - let claimed: i32 = fabrics [INFO] [stdout] 20 + let claimed: i32 = IntoIterator::into_iter(fabrics) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `start_regex` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | static ref start_regex: Regex = Regex::new(r"\[.*\] Guard #(\d*) begins shift").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 103 - static ref start_regex: Regex = Regex::new(r"\[.*\] Guard #(\d*) begins shift").unwrap(); [INFO] [stdout] 103 + static ref START_REGEX: Regex = Regex::new(r"\[.*\] Guard #(\d*) begins shift").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `asleep_regex` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | static ref asleep_regex: Regex = Regex::new(r"\[.* 00:(\d*)\] falls asleep").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 110 - static ref asleep_regex: Regex = Regex::new(r"\[.* 00:(\d*)\] falls asleep").unwrap(); [INFO] [stdout] 110 + static ref ASLEEP_REGEX: Regex = Regex::new(r"\[.* 00:(\d*)\] falls asleep").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `wakesup_regex` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:117:20 [INFO] [stdout] | [INFO] [stdout] 117 | static ref wakesup_regex: Regex = Regex::new(r"\[.* 00:(\d*)\] wakes up").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 117 - static ref wakesup_regex: Regex = Regex::new(r"\[.* 00:(\d*)\] wakes up").unwrap(); [INFO] [stdout] 117 + static ref WAKESUP_REGEX: Regex = Regex::new(r"\[.* 00:(\d*)\] wakes up").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> src/day4/mod.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | self.asleep.into_iter().filter(|a| **a).count() as i32 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 129 - self.asleep.into_iter().filter(|a| **a).count() as i32 [INFO] [stdout] 129 + self.asleep.iter().filter(|a| **a).count() as i32 [INFO] [stdout] | [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 129 - self.asleep.into_iter().filter(|a| **a).count() as i32 [INFO] [stdout] 129 + IntoIterator::into_iter(self.asleep).filter(|a| **a).count() as i32 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> src/day3/mod.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 21 - .into_iter() [INFO] [stdout] 21 + .iter() [INFO] [stdout] | [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 20 - let claimed: i32 = fabrics [INFO] [stdout] 20 + let claimed: i32 = IntoIterator::into_iter(fabrics) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `start_regex` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | static ref start_regex: Regex = Regex::new(r"\[.*\] Guard #(\d*) begins shift").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 103 - static ref start_regex: Regex = Regex::new(r"\[.*\] Guard #(\d*) begins shift").unwrap(); [INFO] [stdout] 103 + static ref START_REGEX: Regex = Regex::new(r"\[.*\] Guard #(\d*) begins shift").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `asleep_regex` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | static ref asleep_regex: Regex = Regex::new(r"\[.* 00:(\d*)\] falls asleep").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 110 - static ref asleep_regex: Regex = Regex::new(r"\[.* 00:(\d*)\] falls asleep").unwrap(); [INFO] [stdout] 110 + static ref ASLEEP_REGEX: Regex = Regex::new(r"\[.* 00:(\d*)\] falls asleep").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `wakesup_regex` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:117:20 [INFO] [stdout] | [INFO] [stdout] 117 | static ref wakesup_regex: Regex = Regex::new(r"\[.* 00:(\d*)\] wakes up").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 117 - static ref wakesup_regex: Regex = Regex::new(r"\[.* 00:(\d*)\] wakes up").unwrap(); [INFO] [stdout] 117 + static ref WAKESUP_REGEX: Regex = Regex::new(r"\[.* 00:(\d*)\] wakes up").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> src/day4/mod.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | self.asleep.into_iter().filter(|a| **a).count() as i32 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 129 - self.asleep.into_iter().filter(|a| **a).count() as i32 [INFO] [stdout] 129 + self.asleep.iter().filter(|a| **a).count() as i32 [INFO] [stdout] | [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 129 - self.asleep.into_iter().filter(|a| **a).count() as i32 [INFO] [stdout] 129 + IntoIterator::into_iter(self.asleep).filter(|a| **a).count() as i32 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.41s [INFO] running `Command { std: "docker" "inspect" "54e35e237177cc4a66b704fc6f9b3daf85ae855fabdec62969efb7ec0dcb77ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54e35e237177cc4a66b704fc6f9b3daf85ae855fabdec62969efb7ec0dcb77ef", kill_on_drop: false }` [INFO] [stdout] 54e35e237177cc4a66b704fc6f9b3daf85ae855fabdec62969efb7ec0dcb77ef