[INFO] cloning repository https://github.com/MaartenStaa/advent-of-code-2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MaartenStaa/advent-of-code-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaartenStaa%2Fadvent-of-code-2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaartenStaa%2Fadvent-of-code-2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0784923099a9ca52f99fb530da338af0a3ff9859 [INFO] checking MaartenStaa/advent-of-code-2020/0784923099a9ca52f99fb530da338af0a3ff9859 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaartenStaa%2Fadvent-of-code-2020" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MaartenStaa/advent-of-code-2020 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MaartenStaa/advent-of-code-2020 [INFO] finished tweaking git repo https://github.com/MaartenStaa/advent-of-code-2020 [INFO] tweaked toml for git repo https://github.com/MaartenStaa/advent-of-code-2020 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MaartenStaa/advent-of-code-2020 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded regex-syntax v0.6.26 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7f20e10623d7732bb81d0cd27bbf80fc449a6ad072b4a7c17c858354f973b72 [INFO] running `Command { std: "docker" "start" "-a" "a7f20e10623d7732bb81d0cd27bbf80fc449a6ad072b4a7c17c858354f973b72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7f20e10623d7732bb81d0cd27bbf80fc449a6ad072b4a7c17c858354f973b72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7f20e10623d7732bb81d0cd27bbf80fc449a6ad072b4a7c17c858354f973b72", kill_on_drop: false }` [INFO] [stdout] a7f20e10623d7732bb81d0cd27bbf80fc449a6ad072b4a7c17c858354f973b72 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5d1a02385ca655cb6c61e159ee6439bc696b9ea95898ec94ce3ba1b4154269a [INFO] running `Command { std: "docker" "start" "-a" "b5d1a02385ca655cb6c61e159ee6439bc696b9ea95898ec94ce3ba1b4154269a", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Checking day1-1 v0.1.0 (/opt/rustwide/workdir/day1-1) [INFO] [stderr] Checking day3-1 v0.1.0 (/opt/rustwide/workdir/day3-1) [INFO] [stderr] Checking day3-2 v0.1.0 (/opt/rustwide/workdir/day3-2) [INFO] [stderr] Checking day1-2 v0.1.0 (/opt/rustwide/workdir/day1-2) [INFO] [stderr] Checking day4-1 v0.1.0 (/opt/rustwide/workdir/day4-1) [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stdout] error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates [INFO] [stdout] --> day4-1/src/split.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | impl<'a, I: Iterator, F> Iterator for SplitIterator [INFO] [stdout] | ^^ unconstrained lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates [INFO] [stdout] --> day4-1/src/split.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | impl<'a, I: Iterator, F> Iterator for SplitIterator [INFO] [stdout] | ^^ unconstrained lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0309]: the associated type `::Item` may not live long enough [INFO] [stdout] --> day4-1/src/split.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 32 | impl<'a, I: Iterator, F> Iterator for SplitIterator [INFO] [stdout] | -- the associated type `::Item` must be valid for the lifetime `'a` as defined here... [INFO] [stdout] ... [INFO] [stdout] 36 | type Item = Vec<&'a I::Item>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ...so that the reference type `&'a ::Item` does not outlive the data it points at [INFO] [stdout] | [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 36 | type Item = Vec<&'a I::Item> where ::Item: 'a; [INFO] [stdout] | +++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0309]: the associated type `::Item` may not live long enough [INFO] [stdout] --> day4-1/src/split.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 32 | impl<'a, I: Iterator, F> Iterator for SplitIterator [INFO] [stdout] | -- the associated type `::Item` must be valid for the lifetime `'a` as defined here... [INFO] [stdout] ... [INFO] [stdout] 36 | type Item = Vec<&'a I::Item>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ...so that the reference type `&'a ::Item` does not outlive the data it points at [INFO] [stdout] | [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 36 | type Item = Vec<&'a I::Item> where ::Item: 'a; [INFO] [stdout] | +++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `split_by` found for struct `std::str::Lines` in the current scope [INFO] [stdout] --> day4-1/src/main.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | input.lines().split_by(|line| line.is_empty()) [INFO] [stdout] | ^^^^^^^^ method not found in `Lines<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `SplitBy` defines an item `split_by`, perhaps you need to implement it [INFO] [stdout] --> day4-1/src/split.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait SplitBy: Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `split_by` found for struct `std::str::Lines` in the current scope [INFO] [stdout] --> day4-1/src/main.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | input.lines().split_by(|line| line.is_empty()) [INFO] [stdout] | ^^^^^^^^ method not found in `Lines<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `SplitBy` defines an item `split_by`, perhaps you need to implement it [INFO] [stdout] --> day4-1/src/split.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait SplitBy: Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::split::SplitBy` [INFO] [stdout] --> day4-1/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::split::SplitBy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::split::SplitBy` [INFO] [stdout] --> day4-1/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::split::SplitBy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `item` does not live long enough [INFO] [stdout] --> day4-1/src/split.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 41 | while let Some(item) = self.iter.next() { [INFO] [stdout] | ---- binding `item` declared here [INFO] [stdout] 42 | if !(self.f)(&item) { [INFO] [stdout] 43 | result.push(&item); [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 47 | } [INFO] [stdout] | - `item` dropped here while still borrowed [INFO] [stdout] 48 | [INFO] [stdout] 49 | if !result.is_empty() { [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `item` does not live long enough [INFO] [stdout] --> day4-1/src/split.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 41 | while let Some(item) = self.iter.next() { [INFO] [stdout] | ---- binding `item` declared here [INFO] [stdout] 42 | if !(self.f)(&item) { [INFO] [stdout] 43 | result.push(&item); [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 47 | } [INFO] [stdout] | - `item` dropped here while still borrowed [INFO] [stdout] 48 | [INFO] [stdout] 49 | if !result.is_empty() { [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0207, E0309, E0597, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0207`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0207, E0309, E0597, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0207`. [INFO] [stdout] [INFO] [stderr] error: could not compile `day4-1` (bin "day4-1") due to 5 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `day4-1` (bin "day4-1" test) due to 5 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "b5d1a02385ca655cb6c61e159ee6439bc696b9ea95898ec94ce3ba1b4154269a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5d1a02385ca655cb6c61e159ee6439bc696b9ea95898ec94ce3ba1b4154269a", kill_on_drop: false }` [INFO] [stdout] b5d1a02385ca655cb6c61e159ee6439bc696b9ea95898ec94ce3ba1b4154269a