[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#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnrxus%2Fadvent_2018" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nrxus/advent_2018 on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "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-0/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 17f9cec6fac3f04daadfd23482892c6b40a44f41bbceee55371b3ed51bf90214 [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" "17f9cec6fac3f04daadfd23482892c6b40a44f41bbceee55371b3ed51bf90214", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "17f9cec6fac3f04daadfd23482892c6b40a44f41bbceee55371b3ed51bf90214", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17f9cec6fac3f04daadfd23482892c6b40a44f41bbceee55371b3ed51bf90214", kill_on_drop: false }` [INFO] [stdout] 17f9cec6fac3f04daadfd23482892c6b40a44f41bbceee55371b3ed51bf90214 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "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] 26dd1f98a31b853f97ac998dd12fcd0f1fbf6f62b2dac0fb903d2cea4466e32a [INFO] running `Command { std: "docker" "start" "-a" "26dd1f98a31b853f97ac998dd12fcd0f1fbf6f62b2dac0fb903d2cea4466e32a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Checking futures v0.1.25 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Checking slab v0.4.1 [INFO] [stderr] Checking lazycell v1.2.0 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling openssl v0.10.15 [INFO] [stderr] Compiling serde v1.0.80 [INFO] [stderr] Compiling native-tls v0.2.2 [INFO] [stderr] Compiling crc32fast v1.1.1 [INFO] [stderr] Checking unicode-normalization v0.1.7 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Checking string v0.1.2 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Compiling encoding_rs v0.8.13 [INFO] [stderr] Checking dtoa v0.4.3 [INFO] [stderr] Checking safemem v0.3.0 [INFO] [stderr] Checking reexport-proc-macro v1.0.5 [INFO] [stderr] Checking array-macro v1.0.2 [INFO] [stderr] Checking strum v0.13.0 [INFO] [stderr] Checking crossbeam-utils v0.6.1 [INFO] [stderr] Checking arrayvec v0.4.8 [INFO] [stderr] Checking rand_core v0.2.2 [INFO] [stderr] Compiling unicase v2.2.0 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Checking smallvec v0.6.7 [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 phf v0.7.23 [INFO] [stderr] Checking libflate v0.1.19 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking crossbeam-deque v0.6.2 [INFO] [stderr] Checking mime v0.3.12 [INFO] [stderr] Compiling quote v0.6.10 [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 rand v0.6.1 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Compiling openssl-sys v0.9.39 [INFO] [stderr] Checking rayon-core v1.4.1 [INFO] [stderr] Checking bytes v0.4.11 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking mio v0.6.16 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking cookie v0.11.0 [INFO] [stderr] Checking tokio-executor v0.1.5 [INFO] [stderr] Checking want v0.0.6 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking rayon v1.0.3 [INFO] [stderr] Checking tokio-timer v0.2.8 [INFO] [stderr] Checking tokio-current-thread v0.1.4 [INFO] [stderr] Checking tokio-io v0.1.10 [INFO] [stderr] Checking http v0.1.14 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking tokio-threadpool v0.1.9 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Checking uuid v0.7.1 [INFO] [stderr] Compiling phf_generator v0.7.23 [INFO] [stderr] Compiling phf_codegen v0.7.23 [INFO] [stderr] Checking parking_lot v0.6.4 [INFO] [stderr] Checking tokio-fs v0.1.4 [INFO] [stderr] Compiling mime_guess v2.0.0-alpha.6 [INFO] [stderr] Checking regex v1.1.0 [INFO] [stderr] Checking tokio-reactor v0.1.7 [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] Checking h2 v0.1.13 [INFO] [stderr] Compiling enum-map-derive v0.4.0 [INFO] [stderr] Checking serde_json v1.0.33 [INFO] [stderr] Checking serde_urlencoded v0.5.4 [INFO] [stderr] Checking enum-map v0.4.1 [INFO] [stderr] Compiling strum_macros v0.13.0 [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] 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/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[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] 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[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/sixteen_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[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/three_b.rs:4:53 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{collections::HashSet, num::ParseIntError, option::NoneError, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [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] 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] [stderr] error: could not compile `advent_2018` due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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 issue #80165 [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/three_b.rs:4:53 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{collections::HashSet, num::ParseIntError, option::NoneError, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [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] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remove_item` found for struct `Vec` in the current scope [INFO] [stdout] --> src/three_b.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | clean_ids.remove_item(c); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Vec` [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: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/three_b.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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/three_b.rs:120:35 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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] 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/three_b.rs:121:39 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] 121 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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/three_b.rs:122:35 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] 121 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 122 | | let left = top_left.next()?.parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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: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/three_b.rs:123:34 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] ... | [INFO] [stdout] 123 | | let top = top_left.next()?.parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/three_b.rs:124:35 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] ... | [INFO] [stdout] 124 | | let mut size = line.next()?.trim().split('x'); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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: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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/three_b.rs:125:39 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] ... | [INFO] [stdout] 125 | | let right = left + size.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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: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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/three_b.rs:126:39 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] ... | [INFO] [stdout] 126 | | let bottom = top + size.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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: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: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599. [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/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[E0599]: no method named `remove_item` found for struct `Vec` in the current scope [INFO] [stdout] --> src/three_b.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | clean_ids.remove_item(c); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Vec` [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/three_b.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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/three_b.rs:120:35 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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/three_b.rs:121:39 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] 121 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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/three_b.rs:122:35 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] 121 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 122 | | let left = top_left.next()?.parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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/three_b.rs:123:34 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] ... | [INFO] [stdout] 123 | | let top = top_left.next()?.parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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/three_b.rs:124:35 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] ... | [INFO] [stdout] 124 | | let mut size = line.next()?.trim().split('x'); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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/three_b.rs:125:39 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] ... | [INFO] [stdout] 125 | | let right = left + size.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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/three_b.rs:126:39 [INFO] [stdout] | [INFO] [stdout] 117 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 118 | | let mut line = line.split('@'); [INFO] [stdout] 119 | | let id = line.next()?.trim()[1..].parse()?; [INFO] [stdout] 120 | | let mut line = line.next()?.split(':'); [INFO] [stdout] ... | [INFO] [stdout] 126 | | let bottom = top + size.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | }) [INFO] [stdout] 132 | | } [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_a.rs:95:38 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 95 | | let caps = RE.captures(input)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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/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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/sixteen_a.rs:96:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 96 | | let b0: u8 = caps.name("b0")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599. [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/sixteen_a.rs:97:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 97 | | let b1: u8 = caps.name("b1")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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_a.rs:98:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 98 | | let b2: u8 = caps.name("b2")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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 2 previous errors [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_a.rs:99:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 99 | | let b3: u8 = caps.name("b3")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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_a.rs:100:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 100 | | let i0: u8 = caps.name("i0")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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] 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/sixteen_a.rs:101:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 101 | | let i1: u8 = caps.name("i1")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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_a.rs:102:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 102 | | let i2: u8 = caps.name("i2")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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: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/sixteen_a.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 103 | | let i3: u8 = caps.name("i3")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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_a.rs:104:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 104 | | let a0: u8 = caps.name("a0")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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] 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/sixteen_a.rs:105:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 105 | | let a1: u8 = caps.name("a1")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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/sixteen_a.rs:106:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 106 | | let a2: u8 = caps.name("a2")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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_a.rs:107:37 [INFO] [stdout] | [INFO] [stdout] 85 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 86 | | lazy_static! { [INFO] [stdout] 87 | | static ref RE: Regex = Regex::new( [INFO] [stdout] 88 | | r"Before:\s+\[(?P\d+), (?P\d+), (?P\d+), (?P\d+)\] [INFO] [stdout] ... | [INFO] [stdout] 107 | | let a3: u8 = caps.name("a3")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] 114 | | } [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: 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/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/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/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] 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/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: 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] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "26dd1f98a31b853f97ac998dd12fcd0f1fbf6f62b2dac0fb903d2cea4466e32a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26dd1f98a31b853f97ac998dd12fcd0f1fbf6f62b2dac0fb903d2cea4466e32a", kill_on_drop: false }` [INFO] [stdout] 26dd1f98a31b853f97ac998dd12fcd0f1fbf6f62b2dac0fb903d2cea4466e32a