[INFO] cloning repository https://github.com/goodmanjonathan/aoc2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/goodmanjonathan/aoc2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoodmanjonathan%2Faoc2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoodmanjonathan%2Faoc2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bce77712c52f9bf99edab33d62e41bff883e3dcf [INFO] checking goodmanjonathan/aoc2018 against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoodmanjonathan%2Faoc2018" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/goodmanjonathan/aoc2018 on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/goodmanjonathan/aoc2018 [INFO] finished tweaking git repo https://github.com/goodmanjonathan/aoc2018 [INFO] tweaked toml for git repo https://github.com/goodmanjonathan/aoc2018 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/goodmanjonathan/aoc2018 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3d9f6852401c2d0f9c8d51f73f805258f2484cb2e192ee5abb442420795fd265 [INFO] running `Command { std: "docker" "start" "-a" "3d9f6852401c2d0f9c8d51f73f805258f2484cb2e192ee5abb442420795fd265", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d9f6852401c2d0f9c8d51f73f805258f2484cb2e192ee5abb442420795fd265", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d9f6852401c2d0f9c8d51f73f805258f2484cb2e192ee5abb442420795fd265", kill_on_drop: false }` [INFO] [stdout] 3d9f6852401c2d0f9c8d51f73f805258f2484cb2e192ee5abb442420795fd265 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1bcbae642ce8d7111be4b24b9d180bae3efb7c9cbd620f9fe6311b05683326b4 [INFO] running `Command { std: "docker" "start" "-a" "1bcbae642ce8d7111be4b24b9d180bae3efb7c9cbd620f9fe6311b05683326b4", kill_on_drop: false }` [INFO] [stderr] Checking aoc2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/bin/day3/main.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | NoneError(std::option::NoneError), [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::ParseEntryError::NoneError`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 17 | NoneError(crate::ParseEntryError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/bin/day3/main.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | impl From for ParseEntryError { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::ParseEntryError::NoneError`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 21 | impl From for ParseEntryError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/bin/day3/main.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | fn from(o: std::option::NoneError) -> Self { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::ParseEntryError::NoneError`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 22 | fn from(o: crate::ParseEntryError) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/bin/day3/main.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | NoneError(std::option::NoneError), [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::ParseEntryError::NoneError`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 17 | NoneError(crate::ParseEntryError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/bin/day3/main.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | impl From for ParseEntryError { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::ParseEntryError::NoneError`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 21 | impl From for ParseEntryError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/bin/day3/main.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | fn from(o: std::option::NoneError) -> Self { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::ParseEntryError::NoneError`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 22 | fn from(o: crate::ParseEntryError) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [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/day3/main.rs:39:32 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:39:32 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] 40 | | let _ = iter.next()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] 40 | | let _ = iter.next()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 42 | | let mut parts = iter.next()?.trim_matches(':').split(','); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 42 | | let mut parts = iter.next()?.trim_matches(':').split(','); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 43 | | (parts.next()?.parse()?, parts.next()?.parse()?) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 43 | | (parts.next()?.parse()?, parts.next()?.parse()?) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:43:50 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 43 | | (parts.next()?.parse()?, parts.next()?.parse()?) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:43:50 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 43 | | (parts.next()?.parse()?, parts.next()?.parse()?) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 46 | | let mut parts = iter.next()?.split('x'); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:47:26 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 47 | | (parts.next()?.parse()?, parts.next()?.parse()?) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 46 | | let mut parts = iter.next()?.split('x'); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:47:50 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 47 | | (parts.next()?.parse()?, parts.next()?.parse()?) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:47:26 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 47 | | (parts.next()?.parse()?, parts.next()?.parse()?) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [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/day3/main.rs:47:50 [INFO] [stdout] | [INFO] [stdout] 36 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 37 | | let mut iter = s.split_whitespace(); [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | let claim = iter.next()?.to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 47 | | (parts.next()?.parse()?, parts.next()?.parse()?) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2018` due to 12 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "1bcbae642ce8d7111be4b24b9d180bae3efb7c9cbd620f9fe6311b05683326b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bcbae642ce8d7111be4b24b9d180bae3efb7c9cbd620f9fe6311b05683326b4", kill_on_drop: false }` [INFO] [stdout] 1bcbae642ce8d7111be4b24b9d180bae3efb7c9cbd620f9fe6311b05683326b4