[INFO] cloning repository https://github.com/nrxus/advent_2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nrxus/advent_2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnrxus%2Fadvent_2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnrxus%2Fadvent_2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0f7b9bc6e61ad765717d77e17cb205c55563b07c [INFO] checking nrxus/advent_2018 against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnrxus%2Fadvent_2018" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nrxus/advent_2018 on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nrxus/advent_2018 [INFO] finished tweaking git repo https://github.com/nrxus/advent_2018 [INFO] tweaked toml for git repo https://github.com/nrxus/advent_2018 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/nrxus/advent_2018 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ad87aa9aad19e26053539748f29aa755c174b38464eda1a22cadfc7aff75456f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ad87aa9aad19e26053539748f29aa755c174b38464eda1a22cadfc7aff75456f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad87aa9aad19e26053539748f29aa755c174b38464eda1a22cadfc7aff75456f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad87aa9aad19e26053539748f29aa755c174b38464eda1a22cadfc7aff75456f", kill_on_drop: false }` [INFO] [stdout] ad87aa9aad19e26053539748f29aa755c174b38464eda1a22cadfc7aff75456f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94771985c0d0a8549951dcf64e2624d2e05c5825852fcd07dbfa09d5f95ccc70 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "94771985c0d0a8549951dcf64e2624d2e05c5825852fcd07dbfa09d5f95ccc70", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.15 [INFO] [stderr] Compiling native-tls v0.2.2 [INFO] [stderr] Compiling crc32fast v1.1.1 [INFO] [stderr] Checking string v0.1.2 [INFO] [stderr] Compiling encoding_rs v0.8.13 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking array-macro v1.0.2 [INFO] [stderr] Checking reexport-proc-macro v1.0.5 [INFO] [stderr] Checking strum v0.13.0 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking crossbeam-utils v0.6.1 [INFO] [stderr] Checking arrayvec v0.4.8 [INFO] [stderr] Checking rand_xorshift v0.1.0 [INFO] [stderr] Compiling unicase v2.2.0 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Compiling openssl-sys v0.9.39 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tokio-current-thread v0.1.4 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking tokio-timer v0.2.8 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.0 [INFO] [stderr] Compiling rand v0.6.1 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Checking want v0.0.6 [INFO] [stderr] Checking serde_json v1.0.33 [INFO] [stderr] Compiling phf_shared v0.7.23 [INFO] [stderr] Checking crossbeam-epoch v0.6.1 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking phf v0.7.23 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Checking crossbeam-deque v0.6.2 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking mime v0.3.12 [INFO] [stderr] Checking libflate v0.1.19 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking rand v0.5.5 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking rayon-core v1.4.1 [INFO] [stderr] Checking bytes v0.4.11 [INFO] [stderr] Checking mio v0.6.16 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking cookie v0.11.0 [INFO] [stderr] Checking tokio-io v0.1.10 [INFO] [stderr] Checking http v0.1.14 [INFO] [stderr] Checking rayon v1.0.3 [INFO] [stderr] Checking regex v1.1.0 [INFO] [stderr] Checking serde_urlencoded v0.5.4 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Compiling phf_generator v0.7.23 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking uuid v0.7.1 [INFO] [stderr] Checking tokio-threadpool v0.1.9 [INFO] [stderr] Compiling phf_codegen v0.7.23 [INFO] [stderr] Checking parking_lot v0.6.4 [INFO] [stderr] Compiling mime_guess v2.0.0-alpha.6 [INFO] [stderr] Checking tokio-reactor v0.1.7 [INFO] [stderr] Checking tokio-fs v0.1.4 [INFO] [stderr] Compiling enum-map-derive v0.4.0 [INFO] [stderr] Checking h2 v0.1.13 [INFO] [stderr] Checking tokio-udp v0.1.3 [INFO] [stderr] Checking tokio-tcp v0.1.2 [INFO] [stderr] Checking tokio-uds v0.2.4 [INFO] [stderr] Checking tokio v0.1.13 [INFO] [stderr] Compiling strum_macros v0.13.0 [INFO] [stderr] Checking enum-map v0.4.1 [INFO] [stderr] Checking hyper v0.12.16 [INFO] [stderr] Checking hyper-tls v0.3.1 [INFO] [stderr] Checking reqwest v0.9.5 [INFO] [stderr] Checking advent_2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/twenty_five.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | type Err = std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/fifteen_a.rs:180:53 [INFO] [stdout] | [INFO] [stdout] 180 | fn neighbors(&self, position: usize) -> [Option<(usize)>; 4] { [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/fourteen_a.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | Answer(array![|x| scores[x]; 10]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `array` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `bind_by_move_pattern_guards` has been stable since 1.39.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/fifteen_a.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(bind_by_move_pattern_guards)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/seventeen_a.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{num::ParseIntError, ops::RangeInclusive, option::NoneError, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/guard_schedule.rs:1:71 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, convert::TryFrom, num::ParseIntError, option::NoneError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/nineteen_a.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{num::ParseIntError, option::NoneError, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/seventeen_a.rs:154:45 [INFO] [stdout] | [INFO] [stdout] 153 | .map(|l| { [INFO] [stdout] | __________________- [INFO] [stdout] 154 | | let caps = regex.captures(l)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 155 | | let point_axis = caps.name("point_axis")?.as_str(); [INFO] [stdout] 156 | | let point: usize = caps.name("point")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 168 | | } [INFO] [stdout] 169 | | }) [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 closure that returns `Result` [INFO] [stdout] --> src/seventeen_a.rs:155:57 [INFO] [stdout] | [INFO] [stdout] 153 | .map(|l| { [INFO] [stdout] | __________________- [INFO] [stdout] 154 | | let caps = regex.captures(l)?; [INFO] [stdout] 155 | | let point_axis = caps.name("point_axis")?.as_str(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 156 | | let point: usize = caps.name("point")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 168 | | } [INFO] [stdout] 169 | | }) [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 closure that returns `Result` [INFO] [stdout] --> src/seventeen_a.rs:156:54 [INFO] [stdout] | [INFO] [stdout] 153 | .map(|l| { [INFO] [stdout] | __________________- [INFO] [stdout] 154 | | let caps = regex.captures(l)?; [INFO] [stdout] 155 | | let point_axis = caps.name("point_axis")?.as_str(); [INFO] [stdout] 156 | | let point: usize = caps.name("point")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 168 | | } [INFO] [stdout] 169 | | }) [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 closure that returns `Result` [INFO] [stdout] --> src/seventeen_a.rs:157:57 [INFO] [stdout] | [INFO] [stdout] 153 | .map(|l| { [INFO] [stdout] | __________________- [INFO] [stdout] 154 | | let caps = regex.captures(l)?; [INFO] [stdout] 155 | | let point_axis = caps.name("point_axis")?.as_str(); [INFO] [stdout] 156 | | let point: usize = caps.name("point")?.as_str().parse()?; [INFO] [stdout] 157 | | let range_axis = caps.name("range_axis")?.as_str(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 168 | | } [INFO] [stdout] 169 | | }) [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 closure that returns `Result` [INFO] [stdout] --> src/seventeen_a.rs:158:66 [INFO] [stdout] | [INFO] [stdout] 153 | .map(|l| { [INFO] [stdout] | __________________- [INFO] [stdout] 154 | | let caps = regex.captures(l)?; [INFO] [stdout] 155 | | let point_axis = caps.name("point_axis")?.as_str(); [INFO] [stdout] 156 | | let point: usize = caps.name("point")?.as_str().parse()?; [INFO] [stdout] 157 | | let range_axis = caps.name("range_axis")?.as_str(); [INFO] [stdout] 158 | | let range_start: usize = caps.name("range_start")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 168 | | } [INFO] [stdout] 169 | | }) [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 closure that returns `Result` [INFO] [stdout] --> src/seventeen_a.rs:159:62 [INFO] [stdout] | [INFO] [stdout] 153 | .map(|l| { [INFO] [stdout] | __________________- [INFO] [stdout] 154 | | let caps = regex.captures(l)?; [INFO] [stdout] 155 | | let point_axis = caps.name("point_axis")?.as_str(); [INFO] [stdout] 156 | | let point: usize = caps.name("point")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 159 | | let range_end: usize = caps.name("range_end")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 168 | | } [INFO] [stdout] 169 | | }) [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/seventeen_a.rs:179:28 [INFO] [stdout] | [INFO] [stdout] 149 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 150 | | let regex = Regex::new(r"(?P[x|y])=(?P\d+), (?P[x|y])=(?P\d+)..(?P\d+)")?; [INFO] [stdout] 151 | | let groups: Vec = input [INFO] [stdout] 152 | | .lines() [INFO] [stdout] ... | [INFO] [stdout] 179 | | .map(|x| x - 1)?; //allow for spill on the left [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 229 | | }) [INFO] [stdout] 230 | | } [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/seventeen_a.rs:188:28 [INFO] [stdout] | [INFO] [stdout] 149 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 150 | | let regex = Regex::new(r"(?P[x|y])=(?P\d+), (?P[x|y])=(?P\d+)..(?P\d+)")?; [INFO] [stdout] 151 | | let groups: Vec = input [INFO] [stdout] 152 | | .lines() [INFO] [stdout] ... | [INFO] [stdout] 188 | | .map(|x| x + 1)?; //allow for spill on the top [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 229 | | }) [INFO] [stdout] 230 | | } [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/seventeen_a.rs:197:22 [INFO] [stdout] | [INFO] [stdout] 149 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 150 | | let regex = Regex::new(r"(?P[x|y])=(?P\d+), (?P[x|y])=(?P\d+)..(?P\d+)")?; [INFO] [stdout] 151 | | let groups: Vec = input [INFO] [stdout] 152 | | .lines() [INFO] [stdout] ... | [INFO] [stdout] 197 | | .cloned()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 229 | | }) [INFO] [stdout] 230 | | } [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/seventeen_a.rs:206:22 [INFO] [stdout] | [INFO] [stdout] 149 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 150 | | let regex = Regex::new(r"(?P[x|y])=(?P\d+), (?P[x|y])=(?P\d+)..(?P\d+)")?; [INFO] [stdout] 151 | | let groups: Vec = input [INFO] [stdout] 152 | | .lines() [INFO] [stdout] ... | [INFO] [stdout] 206 | | .cloned()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 229 | | }) [INFO] [stdout] 230 | | } [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, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_2018` due to 12 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/sixteen_b.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | option::NoneError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/twenty_two_b.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | option::NoneError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [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/guard_schedule.rs:78:51 [INFO] [stdout] | [INFO] [stdout] 70 | / fn try_from(raw: &'s str) -> Result { [INFO] [stdout] 71 | | let date = &raw[1..17]; [INFO] [stdout] 72 | | let action = &raw[19..]; [INFO] [stdout] 73 | | if action.contains("falls asleep") { [INFO] [stdout] ... | [INFO] [stdout] 78 | | let id = action[7..].split(' ').nth(0)?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, EntryParseError>` [INFO] [stdout] 79 | | Ok(Entry::BeginShift(date, id)) [INFO] [stdout] 80 | | } [INFO] [stdout] 81 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, EntryParseError>` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an 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/nineteen_a.rs:93:35 [INFO] [stdout] | [INFO] [stdout] 90 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 91 | | let mut input = input.lines(); [INFO] [stdout] 92 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] 93 | | .captures(input.next()?)? [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 104 | | }) [INFO] [stdout] 105 | | } [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/nineteen_a.rs:93:37 [INFO] [stdout] | [INFO] [stdout] 90 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 91 | | let mut input = input.lines(); [INFO] [stdout] 92 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] 93 | | .captures(input.next()?)? [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 104 | | }) [INFO] [stdout] 105 | | } [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/nineteen_a.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 90 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 91 | | let mut input = input.lines(); [INFO] [stdout] 92 | | let ip: usize = Regex::new(r"#ip (?P\d+)")? [INFO] [stdout] 93 | | .captures(input.next()?)? [INFO] [stdout] 94 | | .name("ip")? [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 104 | | }) [INFO] [stdout] 105 | | } [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] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ten_b.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | type Err = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | .parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [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/nineteen_a.rs:117:38 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 117 | | let caps = RE.captures(input)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [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/nineteen_a.rs:118:51 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 118 | | let instruction = caps.name("instruction")?.as_str(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [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/nineteen_a.rs:119:31 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 119 | | let a = caps.name("a")?.as_str(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [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/nineteen_a.rs:120:31 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 120 | | let b = caps.name("b")?.as_str(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [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/nineteen_a.rs:121:40 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 121 | | let dst: usize = caps.name("c")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [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[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:121:51 [INFO] [stdout] | [INFO] [stdout] 121 | let dst: usize = caps.name("c")?.as_str().parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:124:43 [INFO] [stdout] | [INFO] [stdout] 124 | "addr" => Instruction::AddR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:124:55 [INFO] [stdout] | [INFO] [stdout] 124 | "addr" => Instruction::AddR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:125:43 [INFO] [stdout] | [INFO] [stdout] 125 | "addi" => Instruction::AddI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:125:55 [INFO] [stdout] | [INFO] [stdout] 125 | "addi" => Instruction::AddI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:126:43 [INFO] [stdout] | [INFO] [stdout] 126 | "mulr" => Instruction::MulR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:126:55 [INFO] [stdout] | [INFO] [stdout] 126 | "mulr" => Instruction::MulR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:127:43 [INFO] [stdout] | [INFO] [stdout] 127 | "muli" => Instruction::MulI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:127:55 [INFO] [stdout] | [INFO] [stdout] 127 | "muli" => Instruction::MulI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:128:43 [INFO] [stdout] | [INFO] [stdout] 128 | "banr" => Instruction::BanR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:128:55 [INFO] [stdout] | [INFO] [stdout] 128 | "banr" => Instruction::BanR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:129:43 [INFO] [stdout] | [INFO] [stdout] 129 | "bani" => Instruction::BanI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:129:55 [INFO] [stdout] | [INFO] [stdout] 129 | "bani" => Instruction::BanI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:130:43 [INFO] [stdout] | [INFO] [stdout] 130 | "borr" => Instruction::BorR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:130:55 [INFO] [stdout] | [INFO] [stdout] 130 | "borr" => Instruction::BorR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:131:43 [INFO] [stdout] | [INFO] [stdout] 131 | "bori" => Instruction::BorI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:131:55 [INFO] [stdout] | [INFO] [stdout] 131 | "bori" => Instruction::BorI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:132:43 [INFO] [stdout] | [INFO] [stdout] 132 | "setr" => Instruction::SetR(a.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:133:43 [INFO] [stdout] | [INFO] [stdout] 133 | "seti" => Instruction::SetI(a.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:134:43 [INFO] [stdout] | [INFO] [stdout] 134 | "gtir" => Instruction::GtIR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:134:55 [INFO] [stdout] | [INFO] [stdout] 134 | "gtir" => Instruction::GtIR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:135:43 [INFO] [stdout] | [INFO] [stdout] 135 | "gtri" => Instruction::GtRI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:135:55 [INFO] [stdout] | [INFO] [stdout] 135 | "gtri" => Instruction::GtRI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:136:43 [INFO] [stdout] | [INFO] [stdout] 136 | "gtrr" => Instruction::GtRR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:136:55 [INFO] [stdout] | [INFO] [stdout] 136 | "gtrr" => Instruction::GtRR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:137:43 [INFO] [stdout] | [INFO] [stdout] 137 | "eqir" => Instruction::EqIR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:137:55 [INFO] [stdout] | [INFO] [stdout] 137 | "eqir" => Instruction::EqIR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:138:43 [INFO] [stdout] | [INFO] [stdout] 138 | "eqri" => Instruction::EqRI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:138:55 [INFO] [stdout] | [INFO] [stdout] 138 | "eqri" => Instruction::EqRI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:139:43 [INFO] [stdout] | [INFO] [stdout] 139 | "eqrr" => Instruction::EqRR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:139:55 [INFO] [stdout] | [INFO] [stdout] 139 | "eqrr" => Instruction::EqRR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 41 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [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/sixteen_b.rs:141:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 141 | | let caps = RE.captures(input)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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] warning: unnecessary parentheses around type [INFO] [stdout] --> src/fifteen_b.rs:193:53 [INFO] [stdout] | [INFO] [stdout] 193 | fn neighbors(&self, position: usize) -> [Option<(usize)>; 4] { [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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/sixteen_b.rs:142:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 142 | | let b0: u16 = caps.name("b0")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/sixteen_b.rs:143:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 143 | | let b1: u16 = caps.name("b1")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/sixteen_b.rs:144:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 144 | | let b2: u16 = caps.name("b2")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/sixteen_b.rs:145:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 145 | | let b3: u16 = caps.name("b3")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/sixteen_b.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 146 | | let i0: u16 = caps.name("i0")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/sixteen_b.rs:147:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 147 | | let i1: u16 = caps.name("i1")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/sixteen_b.rs:148:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 148 | | let i2: u16 = caps.name("i2")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/sixteen_b.rs:149:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 149 | | let i3: u16 = caps.name("i3")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/sixteen_b.rs:150:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 150 | | let a0: u16 = caps.name("a0")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/sixteen_b.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 151 | | let a1: u16 = caps.name("a1")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/sixteen_b.rs:152:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 152 | | let a2: u16 = caps.name("a2")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/twenty_two_b.rs:281:41 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] 280 | | )?; [INFO] [stdout] 281 | | let caps = regex.captures(input)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [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/sixteen_b.rs:153:38 [INFO] [stdout] | [INFO] [stdout] 131 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 132 | | lazy_static! { [INFO] [stdout] 133 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 134 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 153 | | let a3: u16 = caps.name("a3")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | }) [INFO] [stdout] 160 | | } [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/twenty_two_b.rs:282:46 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 282 | | let depth: usize = caps.name("depth")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [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 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/twenty_two_b.rs:282:57 [INFO] [stdout] | [INFO] [stdout] 282 | let depth: usize = caps.name("depth")?.as_str().parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [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/twenty_two_b.rs:283:40 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 283 | | let tx: usize = caps.name("tx")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [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[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/twenty_two_b.rs:283:51 [INFO] [stdout] | [INFO] [stdout] 283 | let tx: usize = caps.name("tx")?.as_str().parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [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/twenty_two_b.rs:284:40 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 284 | | let ty: usize = caps.name("ty")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [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[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/twenty_two_b.rs:284:51 [INFO] [stdout] | [INFO] [stdout] 284 | let ty: usize = caps.name("ty")?.as_str().parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/twenty_three_a.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{num::ParseIntError, option::NoneError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/fifteen_a.rs:180:53 [INFO] [stdout] | [INFO] [stdout] 180 | fn neighbors(&self, position: usize) -> [Option<(usize)>; 4] { [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `bind_by_move_pattern_guards` has been stable since 1.39.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/fifteen_b.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(bind_by_move_pattern_guards)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `bind_by_move_pattern_guards` has been stable since 1.39.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/fifteen_a.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(bind_by_move_pattern_guards)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:13:41 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [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 closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:14:35 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [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 closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:15:35 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [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 closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] 16 | | let z = caps.name("z")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [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 closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:17:40 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] 16 | | let z = caps.name("z")?.as_str().parse()?; [INFO] [stdout] 17 | | let radius = caps.name("r")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 18 | | let pos = (x, y, z); [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [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 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "94771985c0d0a8549951dcf64e2624d2e05c5825852fcd07dbfa09d5f95ccc70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94771985c0d0a8549951dcf64e2624d2e05c5825852fcd07dbfa09d5f95ccc70", kill_on_drop: false }` [INFO] [stdout] 94771985c0d0a8549951dcf64e2624d2e05c5825852fcd07dbfa09d5f95ccc70