[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 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaartenStaa%2Fadvent-of-code-2020" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MaartenStaa/advent-of-code-2020 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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-5-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e46ee05cf0e6e2e6aa1109c9c612f7f3b6d10d71794db61dfaeb2ce4ecf8c771 [INFO] running `Command { std: "docker" "start" "-a" "e46ee05cf0e6e2e6aa1109c9c612f7f3b6d10d71794db61dfaeb2ce4ecf8c771", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e46ee05cf0e6e2e6aa1109c9c612f7f3b6d10d71794db61dfaeb2ce4ecf8c771", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e46ee05cf0e6e2e6aa1109c9c612f7f3b6d10d71794db61dfaeb2ce4ecf8c771", kill_on_drop: false }` [INFO] [stdout] e46ee05cf0e6e2e6aa1109c9c612f7f3b6d10d71794db61dfaeb2ce4ecf8c771 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7cac5691412581afa0f5a091433fce45bb6e4cfe26fd63728cdaafe0627ea046 [INFO] running `Command { std: "docker" "start" "-a" "7cac5691412581afa0f5a091433fce45bb6e4cfe26fd63728cdaafe0627ea046", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [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 day4-1 v0.1.0 (/opt/rustwide/workdir/day4-1) [INFO] [stderr] Checking day1-2 v0.1.0 (/opt/rustwide/workdir/day1-2) [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] 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 [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 [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 [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 [INFO] running `Command { std: "docker" "inspect" "7cac5691412581afa0f5a091433fce45bb6e4cfe26fd63728cdaafe0627ea046", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cac5691412581afa0f5a091433fce45bb6e4cfe26fd63728cdaafe0627ea046", kill_on_drop: false }` [INFO] [stdout] 7cac5691412581afa0f5a091433fce45bb6e4cfe26fd63728cdaafe0627ea046