[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 try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnrxus%2Fadvent_2018" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nrxus/advent_2018 on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/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-3/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" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded strum_macros v0.13.0 [INFO] [stderr] Downloaded strum v0.13.0 [INFO] [stderr] Downloaded crc32fast v1.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1cdaa7fc48934bf53cadb9cca6582f24a972252c68de6115f6d0b09c9887dc8f [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" "1cdaa7fc48934bf53cadb9cca6582f24a972252c68de6115f6d0b09c9887dc8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1cdaa7fc48934bf53cadb9cca6582f24a972252c68de6115f6d0b09c9887dc8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cdaa7fc48934bf53cadb9cca6582f24a972252c68de6115f6d0b09c9887dc8f", kill_on_drop: false }` [INFO] [stdout] 1cdaa7fc48934bf53cadb9cca6582f24a972252c68de6115f6d0b09c9887dc8f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b5b901b4f39a81968e1486ddb2960c4ee995761de4fce43fb340cf989c3a41b2 [INFO] running `Command { std: "docker" "start" "-a" "b5b901b4f39a81968e1486ddb2960c4ee995761de4fce43fb340cf989c3a41b2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking byteorder v1.2.7 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Checking lazycell v1.2.0 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling serde v1.0.80 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Compiling openssl v0.10.15 [INFO] [stderr] Checking unicode-normalization v0.1.7 [INFO] [stderr] Compiling native-tls v0.2.2 [INFO] [stderr] Checking string v0.1.2 [INFO] [stderr] Checking indexmap v1.0.2 [INFO] [stderr] Compiling crc32fast v1.1.1 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Compiling encoding_rs v0.8.13 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Compiling unicode-segmentation v1.2.1 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Checking utf8-ranges v1.0.2 [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 log v0.4.6 [INFO] [stderr] Checking crossbeam-utils v0.6.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.0 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking tokio-executor v0.1.5 [INFO] [stderr] Checking arrayvec v0.4.8 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking owning_ref v0.4.0 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking want v0.0.6 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.0 [INFO] [stderr] Compiling rand v0.6.1 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling unicase v2.2.0 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Checking smallvec v0.6.7 [INFO] [stderr] Checking tokio-current-thread v0.1.4 [INFO] [stderr] Checking tokio-timer v0.2.8 [INFO] [stderr] Checking lock_api v0.1.5 [INFO] [stderr] Checking crossbeam-epoch v0.6.1 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking libflate v0.1.19 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking rand v0.5.5 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking bytes v0.4.11 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking mime v0.3.12 [INFO] [stderr] Checking crossbeam-deque v0.6.2 [INFO] [stderr] Compiling phf_shared v0.7.23 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking mio v0.6.16 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Checking rayon-core v1.4.1 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking cookie v0.11.0 [INFO] [stderr] Checking phf v0.7.23 [INFO] [stderr] Checking tokio-io v0.1.10 [INFO] [stderr] Checking http v0.1.14 [INFO] [stderr] Checking rayon v1.0.3 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Checking uuid v0.7.1 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Compiling openssl-sys v0.9.39 [INFO] [stderr] Checking parking_lot v0.6.4 [INFO] [stderr] Checking tokio-reactor v0.1.7 [INFO] [stderr] Checking tokio-threadpool v0.1.9 [INFO] [stderr] Compiling phf_generator v0.7.23 [INFO] [stderr] Compiling phf_codegen v0.7.23 [INFO] [stderr] Compiling mime_guess v2.0.0-alpha.6 [INFO] [stderr] Checking tokio-tcp v0.1.2 [INFO] [stderr] Checking tokio-uds v0.2.4 [INFO] [stderr] Checking tokio-udp v0.1.3 [INFO] [stderr] Checking tokio-fs v0.1.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_urlencoded v0.5.4 [INFO] [stderr] Checking serde_json v1.0.33 [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/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: 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/twenty_three_a.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{num::ParseIntError, option::NoneError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/twenty_three_a.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{num::ParseIntError, option::NoneError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/twenty_three_b.rs:5:71 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cmp::Ordering, collections::BinaryHeap, 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_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: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/twenty_three_b.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | / array![|i| Region { [INFO] [stdout] 262 | | bounds: boxes[i], [INFO] [stdout] 263 | | nanobots: self.nanobots.iter().filter(|n| n.intersects(&boxes[i])).cloned().collect() [INFO] [stdout] 264 | | }; 8] [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `array` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] 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/twenty_two_b.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | option::NoneError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:13:41 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:14:35 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:15:35 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] 16 | | let z = caps.name("z")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:17:40 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] 16 | | let z = caps.name("z")?.as_str().parse()?; [INFO] [stdout] 17 | | let radius = caps.name("r")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 18 | | let pos = (x, y, z); [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_2018` due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/fifteen_a.rs:180:53 [INFO] [stdout] | [INFO] [stdout] 180 | fn neighbors(&self, position: usize) -> [Option<(usize)>; 4] { [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/twenty_two_b.rs:281:41 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] 280 | | )?; [INFO] [stdout] 281 | | let caps = regex.captures(input)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/twenty_two_b.rs:282:46 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 282 | | let depth: usize = caps.name("depth")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/twenty_two_b.rs:282:57 [INFO] [stdout] | [INFO] [stdout] 282 | let depth: usize = caps.name("depth")?.as_str().parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/twenty_two_b.rs:283:40 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 283 | | let tx: usize = caps.name("tx")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/twenty_two_b.rs:283:51 [INFO] [stdout] | [INFO] [stdout] 283 | let tx: usize = caps.name("tx")?.as_str().parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/twenty_two_b.rs:284:40 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 284 | | let ty: usize = caps.name("ty")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/twenty_two_b.rs:284:51 [INFO] [stdout] | [INFO] [stdout] 284 | let ty: usize = caps.name("ty")?.as_str().parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[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] warning: the feature `bind_by_move_pattern_guards` has been stable since 1.39.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/fifteen_a.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(bind_by_move_pattern_guards)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[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: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stdout] 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] 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/nineteen_a.rs:117:38 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 117 | | let caps = RE.captures(input)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/nineteen_a.rs:118:51 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 118 | | let instruction = caps.name("instruction")?.as_str(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/nineteen_a.rs:119:31 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 119 | | let a = caps.name("a")?.as_str(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/nineteen_a.rs:120:31 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 120 | | let b = caps.name("b")?.as_str(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/nineteen_a.rs:121:40 [INFO] [stdout] | [INFO] [stdout] 111 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 112 | | lazy_static! { [INFO] [stdout] 113 | | static ref RE: Regex = [INFO] [stdout] 114 | | Regex::new(r"(?P.*) (?P\d+) (?P\d+) (?P\d+)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 121 | | let dst: usize = caps.name("c")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 143 | | Ok(Line { instruction, dst }) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:121:51 [INFO] [stdout] | [INFO] [stdout] 121 | let dst: usize = caps.name("c")?.as_str().parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:124:43 [INFO] [stdout] | [INFO] [stdout] 124 | "addr" => Instruction::AddR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:124:55 [INFO] [stdout] | [INFO] [stdout] 124 | "addr" => Instruction::AddR(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:125:43 [INFO] [stdout] | [INFO] [stdout] 125 | "addi" => Instruction::AddI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/nineteen_a.rs:125:55 [INFO] [stdout] | [INFO] [stdout] 125 | "addi" => Instruction::AddI(a.parse()?, b.parse()?), [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/three_a.rs:101:46 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [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: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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/three_a.rs:102:39 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [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: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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/three_a.rs:103:35 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [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: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_a.rs:104:34 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] 104 | | let top = top_left.next()?.parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:13:41 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/three_a.rs:105:35 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] 104 | | let top = top_left.next()?.parse()?; [INFO] [stdout] 105 | | let mut size = line.next()?.trim().split('x'); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [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: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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:14:35 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/three_a.rs:106:39 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 106 | | let right = left + size.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [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: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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:15:35 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/three_a.rs:107:39 [INFO] [stdout] | [INFO] [stdout] 100 | / fn from_str(line: &str) -> Result { [INFO] [stdout] 101 | | let mut line = line.split('@').nth(1)?.split(':'); [INFO] [stdout] 102 | | let mut top_left = line.next()?.trim().split(','); [INFO] [stdout] 103 | | let left = top_left.next()?.parse()?; [INFO] [stdout] ... | [INFO] [stdout] 107 | | let bottom = top + size.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 111 | | }) [INFO] [stdout] 112 | | } [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: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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] 16 | | let z = caps.name("z")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_a.rs:17:40 [INFO] [stdout] | [INFO] [stdout] 12 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 13 | | let caps = regex.captures(l)?; [INFO] [stdout] 14 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 15 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] 16 | | let z = caps.name("z")?.as_str().parse()?; [INFO] [stdout] 17 | | let radius = caps.name("r")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 18 | | let pos = (x, y, z); [INFO] [stdout] 19 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 20 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 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: aborting due to 8 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: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/twenty_two_b.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | option::NoneError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[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 closure that returns `Result` [INFO] [stdout] --> src/twenty_three_b.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 16 | | let caps = regex.captures(l)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 17 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 18 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 22 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 23 | | }) [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 closure that returns `Result` [INFO] [stdout] --> src/twenty_three_b.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 16 | | let caps = regex.captures(l)?; [INFO] [stdout] 17 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 18 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] ... | [INFO] [stdout] 22 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 23 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_b.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 16 | | let caps = regex.captures(l)?; [INFO] [stdout] 17 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 18 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 22 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 23 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_b.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 16 | | let caps = regex.captures(l)?; [INFO] [stdout] 17 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 18 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] 19 | | let z = caps.name("z")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 22 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 23 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a closure that returns `Result` [INFO] [stdout] --> src/twenty_three_b.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|l| { [INFO] [stdout] | ______________- [INFO] [stdout] 16 | | let caps = regex.captures(l)?; [INFO] [stdout] 17 | | let x = caps.name("x")?.as_str().parse()?; [INFO] [stdout] 18 | | let y = caps.name("y")?.as_str().parse()?; [INFO] [stdout] 19 | | let z = caps.name("z")?.as_str().parse()?; [INFO] [stdout] 20 | | let radius = caps.name("r")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 21 | | let pos = (x, y, z); [INFO] [stdout] 22 | | Ok(Nanobot { pos, radius }) [INFO] [stdout] 23 | | }) [INFO] [stdout] | |_________- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted [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/twenty_two_b.rs:281:41 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] 280 | | )?; [INFO] [stdout] 281 | | let caps = regex.captures(input)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/twenty_two_b.rs:282:46 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 282 | | let depth: usize = caps.name("depth")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/twenty_two_b.rs:282:57 [INFO] [stdout] | [INFO] [stdout] 282 | let depth: usize = caps.name("depth")?.as_str().parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/twenty_two_b.rs:283:40 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 283 | | let tx: usize = caps.name("tx")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/twenty_two_b.rs:283:51 [INFO] [stdout] | [INFO] [stdout] 283 | let tx: usize = caps.name("tx")?.as_str().parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/twenty_two_b.rs:284:40 [INFO] [stdout] | [INFO] [stdout] 276 | / fn from_str(input: &str) -> Result { [INFO] [stdout] 277 | | let regex = Regex::new( [INFO] [stdout] 278 | | r"depth: (?P\d+) [INFO] [stdout] 279 | | target: (?P\d+),(?P\d+)", [INFO] [stdout] ... | [INFO] [stdout] 284 | | let ty: usize = caps.name("ty")?.as_str().parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 310 | | }) [INFO] [stdout] 311 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Err == regex::Error` [INFO] [stdout] --> src/twenty_two_b.rs:284:51 [INFO] [stdout] | [INFO] [stdout] 284 | let ty: usize = caps.name("ty")?.as_str().parse()?; [INFO] [stdout] | ^^^^^ expected struct `ParseIntError`, found enum `regex::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b5b901b4f39a81968e1486ddb2960c4ee995761de4fce43fb340cf989c3a41b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5b901b4f39a81968e1486ddb2960c4ee995761de4fce43fb340cf989c3a41b2", kill_on_drop: false }` [INFO] [stdout] b5b901b4f39a81968e1486ddb2960c4ee995761de4fce43fb340cf989c3a41b2