[INFO] cloning repository https://github.com/weargoggles/aoc-2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/weargoggles/aoc-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweargoggles%2Faoc-2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweargoggles%2Faoc-2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9fbd1fe2715e7b16ca515e25f30d382c5e518a2d [INFO] checking weargoggles/aoc-2020 against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweargoggles%2Faoc-2020" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/weargoggles/aoc-2020 [INFO] finished tweaking git repo https://github.com/weargoggles/aoc-2020 [INFO] tweaked toml for git repo https://github.com/weargoggles/aoc-2020 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/weargoggles/aoc-2020 on toolchain 5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/weargoggles/aoc-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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded scan_fmt v0.2.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 47f3fad1bb063023e185c7f5b85a591d5346422dd87a4037c35facf7d1eae49f [INFO] running `Command { std: "docker" "start" "-a" "47f3fad1bb063023e185c7f5b85a591d5346422dd87a4037c35facf7d1eae49f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "47f3fad1bb063023e185c7f5b85a591d5346422dd87a4037c35facf7d1eae49f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47f3fad1bb063023e185c7f5b85a591d5346422dd87a4037c35facf7d1eae49f", kill_on_drop: false }` [INFO] [stdout] 47f3fad1bb063023e185c7f5b85a591d5346422dd87a4037c35facf7d1eae49f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3eaeb7270e8672b9475020677bf92cb8a37274fad74fe613db9231b43a23b816 [INFO] running `Command { std: "docker" "start" "-a" "3eaeb7270e8672b9475020677bf92cb8a37274fad74fe613db9231b43a23b816", kill_on_drop: false }` [INFO] [stderr] Checking util v0.1.0 (/opt/rustwide/workdir/util) [INFO] [stderr] Compiling anyhow v1.0.35 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking day-3 v0.1.0 (/opt/rustwide/workdir/day-3) [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> day-3/src/main.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 34 | .zip((0..)) // track the y-distance [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 34 - .zip((0..)) // track the y-distance [INFO] [stdout] 34 + .zip(0..) // track the y-distance [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> day-3/src/main.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 34 | .zip((0..)) // track the y-distance [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 34 - .zip((0..)) // track the y-distance [INFO] [stdout] 34 + .zip(0..) // track the y-distance [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking day-6 v0.1.0 (/opt/rustwide/workdir/day-6) [INFO] [stderr] Checking aoc-2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> day-6/src/main.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{BufReader, Read, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> day-6/src/main.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{BufReader, Read, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day-1 v0.1.0 (/opt/rustwide/workdir/day-1) [INFO] [stderr] Checking day-5 v0.1.0 (/opt/rustwide/workdir/day-5) [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking scan_fmt v0.2.5 [INFO] [stderr] Checking day-4 v0.1.0 (/opt/rustwide/workdir/day-4) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> day-4/src/main.rs:39:41 [INFO] [stdout] | [INFO] [stdout] 39 | let year_between: fn(&str, &str) -> (fn(&str) -> bool) = |min, max| { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 39 - let year_between: fn(&str, &str) -> (fn(&str) -> bool) = |min, max| { [INFO] [stdout] 39 + let year_between: fn(&str, &str) -> fn(&str) -> bool = |min, max| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> day-4/src/main.rs:39:41 [INFO] [stdout] | [INFO] [stdout] 39 | let year_between: fn(&str, &str) -> (fn(&str) -> bool) = |min, max| { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 39 - let year_between: fn(&str, &str) -> (fn(&str) -> bool) = |min, max| { [INFO] [stdout] 39 + let year_between: fn(&str, &str) -> fn(&str) -> bool = |min, max| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day-4/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | |year| year.len() == 4 && min <= year && max >= year [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected fn pointer, found closure [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a str) -> bool` [INFO] [stdout] found closure `{closure@day-4/src/main.rs:40:9: 40:15}` [INFO] [stdout] note: closures can only be coerced to `fn` types if they do not capture any variables [INFO] [stdout] --> day-4/src/main.rs:40:35 [INFO] [stdout] | [INFO] [stdout] 40 | |year| year.len() == 4 && min <= year && max >= year [INFO] [stdout] | ^^^ ^^^ `max` captured here [INFO] [stdout] | | [INFO] [stdout] | `min` captured here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day-4/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | |year| year.len() == 4 && min <= year && max >= year [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected fn pointer, found closure [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a str) -> bool` [INFO] [stdout] found closure `{closure@day-4/src/main.rs:40:9: 40:15}` [INFO] [stdout] note: closures can only be coerced to `fn` types if they do not capture any variables [INFO] [stdout] --> day-4/src/main.rs:40:35 [INFO] [stdout] | [INFO] [stdout] 40 | |year| year.len() == 4 && min <= year && max >= year [INFO] [stdout] | ^^^ ^^^ `max` captured here [INFO] [stdout] | | [INFO] [stdout] | `min` captured here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `day-4` (bin "day-4" test) due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `day-4` (bin "day-4") due to 1 previous error; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "3eaeb7270e8672b9475020677bf92cb8a37274fad74fe613db9231b43a23b816", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3eaeb7270e8672b9475020677bf92cb8a37274fad74fe613db9231b43a23b816", kill_on_drop: false }` [INFO] [stdout] 3eaeb7270e8672b9475020677bf92cb8a37274fad74fe613db9231b43a23b816