[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] checking mmcclimon/advent-2020 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmcclimon%2Fadvent-2020" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mmcclimon/advent-2020 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-2-tc1/source/Cargo.toml [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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f5e9268ed7705e25c0a00842c3aee5347d07e3ae747bbbd72f8c33661ad8f273 [INFO] running `Command { std: "docker" "start" "-a" "f5e9268ed7705e25c0a00842c3aee5347d07e3ae747bbbd72f8c33661ad8f273", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f5e9268ed7705e25c0a00842c3aee5347d07e3ae747bbbd72f8c33661ad8f273", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5e9268ed7705e25c0a00842c3aee5347d07e3ae747bbbd72f8c33661ad8f273", kill_on_drop: false }` [INFO] [stdout] f5e9268ed7705e25c0a00842c3aee5347d07e3ae747bbbd72f8c33661ad8f273 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 13ac58823899db21b1c6e0f34f575166fe38824ad03c4c25a936f3eeafc7c0fd [INFO] running `Command { std: "docker" "start" "-a" "13ac58823899db21b1c6e0f34f575166fe38824ad03c4c25a936f3eeafc7c0fd", kill_on_drop: false }` [INFO] [stderr] Checking advent v0.1.0 (/opt/rustwide/workdir) [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [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 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent` (bin "day2" test) due to 6 previous errors [INFO] [stdout] error: aborting due to 5 previous errors [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 6 previous errors [INFO] running `Command { std: "docker" "inspect" "13ac58823899db21b1c6e0f34f575166fe38824ad03c4c25a936f3eeafc7c0fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13ac58823899db21b1c6e0f34f575166fe38824ad03c4c25a936f3eeafc7c0fd", kill_on_drop: false }` [INFO] [stdout] 13ac58823899db21b1c6e0f34f575166fe38824ad03c4c25a936f3eeafc7c0fd