[INFO] cloning repository https://github.com/mmcclimon/advent-2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mmcclimon/advent-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmcclimon%2Fadvent-2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmcclimon%2Fadvent-2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 62d36b472cab895d2f42f228218b5bd4140d92dd [INFO] testing mmcclimon/advent-2020 against try#0abe69e6c16114311cc2700e972492e64d69c28f for pr-154065-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmcclimon%2Fadvent-2020" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mmcclimon/advent-2020 [INFO] finished tweaking git repo https://github.com/mmcclimon/advent-2020 [INFO] tweaked toml for git repo https://github.com/mmcclimon/advent-2020 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mmcclimon/advent-2020 on toolchain 0abe69e6c16114311cc2700e972492e64d69c28f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mmcclimon/advent-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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 33bb27c836327b788bf27a2f1a3db8f3eb274f0aca31fc2364aab78fdfa4afe9 [INFO] running `Command { std: "docker" "start" "-a" "33bb27c836327b788bf27a2f1a3db8f3eb274f0aca31fc2364aab78fdfa4afe9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "33bb27c836327b788bf27a2f1a3db8f3eb274f0aca31fc2364aab78fdfa4afe9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33bb27c836327b788bf27a2f1a3db8f3eb274f0aca31fc2364aab78fdfa4afe9", kill_on_drop: false }` [INFO] [stdout] 33bb27c836327b788bf27a2f1a3db8f3eb274f0aca31fc2364aab78fdfa4afe9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f10a4cc4184b576eceab27cf6eab550e869f5bc079edaf7a429b32b58e152d8d [INFO] running `Command { std: "docker" "start" "-a" "f10a4cc4184b576eceab27cf6eab550e869f5bc079edaf7a429b32b58e152d8d", kill_on_drop: false }` [INFO] [stderr] Compiling advent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: unconstrained opaque type [INFO] [stdout] --> src/bin/day16.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | type ValidatorMap = HashMap bool>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidatorMap` must be used in combination with a concrete type within the same crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day2.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 36 | fn from_str(line: &str) -> Result { [INFO] [stdout] | --------------------------------------- this function returns a `Result` [INFO] [stdout] 37 | let mut bits = line.split(&['-', ' ', ':'][..]).filter(|s| !s.is_empty()); [INFO] [stdout] 38 | let a: usize = bits.next()?.parse()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day2.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 36 | fn from_str(line: &str) -> Result { [INFO] [stdout] | --------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 39 | let b: usize = bits.next()?.parse()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day2.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 36 | fn from_str(line: &str) -> Result { [INFO] [stdout] | --------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 40 | let want = bits.next()?.chars().next()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day2.rs:40:43 [INFO] [stdout] | [INFO] [stdout] 36 | fn from_str(line: &str) -> Result { [INFO] [stdout] | --------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 40 | let want = bits.next()?.chars().next()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day2.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 36 | fn from_str(line: &str) -> Result { [INFO] [stdout] | --------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 41 | let pw = bits.next()?.to_string(); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent` (bin "day2") due to 5 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/day16.rs:92:3 [INFO] [stdout] | [INFO] [stdout] 10 | type ValidatorMap = HashMap bool>; [INFO] [stdout] | ---------------------- the expected opaque type [INFO] [stdout] ... [INFO] [stdout] 68 | fn parse_legend(lines: Vec) -> ValidatorMap { [INFO] [stdout] | ------------ expected `HashMap` because of return type [INFO] [stdout] ... [INFO] [stdout] 84 | let c = move |n| { [INFO] [stdout] | -------- the found closure [INFO] [stdout] ... [INFO] [stdout] 89 | validators.insert(desc.to_string(), c); [INFO] [stdout] | ---------- - this argument has type `{closure@src/bin/day16.rs:84:13: 84:21}`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `validators` to have type `HashMap` [INFO] [stdout] ... [INFO] [stdout] 92 | validators [INFO] [stdout] | ^^^^^^^^^^ expected `HashMap`, found `HashMap` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap<_, ValidatorMap::{opaque#0}>` [INFO] [stdout] found struct `HashMap<_, {closure@src/bin/day16.rs:84:13: 84:21}>` [INFO] [stdout] note: this item must have a `#[define_opaque(ValidatorMap)]` attribute to be able to define hidden types [INFO] [stdout] --> src/bin/day16.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn parse_legend(lines: Vec) -> ValidatorMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent` (bin "day16") due to 2 previous errors [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day4.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 53 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 79 | byr: byr?, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day4.rs:80:15 [INFO] [stdout] | [INFO] [stdout] 53 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 80 | iyr: iyr?, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day4.rs:81:15 [INFO] [stdout] | [INFO] [stdout] 53 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 81 | eyr: eyr?, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day4.rs:82:15 [INFO] [stdout] | [INFO] [stdout] 53 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 82 | hgt: hgt?, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day4.rs:83:15 [INFO] [stdout] | [INFO] [stdout] 53 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 83 | hcl: hcl?, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day4.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 53 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 84 | ecl: ecl?, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/bin/day4.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 53 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 85 | pid: pid?, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent` (bin "day4") due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "f10a4cc4184b576eceab27cf6eab550e869f5bc079edaf7a429b32b58e152d8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f10a4cc4184b576eceab27cf6eab550e869f5bc079edaf7a429b32b58e152d8d", kill_on_drop: false }` [INFO] [stdout] f10a4cc4184b576eceab27cf6eab550e869f5bc079edaf7a429b32b58e152d8d