[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] testing nrxus/advent_2018 against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnrxus%2Fadvent_2018" "/workspace/builds/worker-74/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-74/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nrxus/advent_2018 on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "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-74/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" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "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-74/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 943762d24921546f14423ac72bf3dd37448978daf67f776443d8197a14ae131b [INFO] running `Command { std: "docker" "start" "-a" "943762d24921546f14423ac72bf3dd37448978daf67f776443d8197a14ae131b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "943762d24921546f14423ac72bf3dd37448978daf67f776443d8197a14ae131b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "943762d24921546f14423ac72bf3dd37448978daf67f776443d8197a14ae131b", kill_on_drop: false }` [INFO] [stdout] 943762d24921546f14423ac72bf3dd37448978daf67f776443d8197a14ae131b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be38d6c37f2d7b304c30458250b8115e6f9c9e45a5368afbc431085b71e3cecb [INFO] running `Command { std: "docker" "start" "-a" "be38d6c37f2d7b304c30458250b8115e6f9c9e45a5368afbc431085b71e3cecb", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling futures v0.1.25 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling byteorder v1.2.7 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling slab v0.4.1 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling lazycell v1.2.0 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling openssl v0.10.15 [INFO] [stderr] Compiling httparse v1.3.3 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Compiling string v0.1.2 [INFO] [stderr] Compiling crc32fast v1.1.1 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling native-tls v0.2.2 [INFO] [stderr] Compiling try-lock v0.2.2 [INFO] [stderr] Compiling indexmap v1.0.2 [INFO] [stderr] Compiling encoding_rs v0.8.13 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling safemem v0.3.0 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling adler32 v1.0.3 [INFO] [stderr] Compiling unicode-segmentation v1.2.1 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling reexport-proc-macro v1.0.5 [INFO] [stderr] Compiling array-macro v1.0.2 [INFO] [stderr] Compiling strum v0.13.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling crossbeam-utils v0.6.1 [INFO] [stderr] Compiling arrayvec v0.4.8 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling owning_ref v0.4.0 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling unicase v2.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling smallvec v0.6.7 [INFO] [stderr] Compiling lock_api v0.1.5 [INFO] [stderr] Compiling tokio-executor v0.1.5 [INFO] [stderr] Compiling want v0.0.6 [INFO] [stderr] Compiling crossbeam-epoch v0.6.1 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling tokio-current-thread v0.1.4 [INFO] [stderr] Compiling tokio-timer v0.2.8 [INFO] [stderr] Compiling openssl-sys v0.9.39 [INFO] [stderr] Compiling mime v0.3.12 [INFO] [stderr] Compiling serde_json v1.0.33 [INFO] [stderr] Compiling serde_urlencoded v0.5.4 [INFO] [stderr] Compiling phf_shared v0.7.23 [INFO] [stderr] Compiling libflate v0.1.19 [INFO] [stderr] Compiling crossbeam-deque v0.6.2 [INFO] [stderr] Compiling phf v0.7.23 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.1.0 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling rand v0.6.1 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling time v0.1.40 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling enum-map-derive v0.4.0 [INFO] [stderr] Compiling bytes v0.4.11 [INFO] [stderr] Compiling strum_macros v0.13.0 [INFO] [stderr] Compiling aho-corasick v0.6.9 [INFO] [stderr] Compiling mio v0.6.16 [INFO] [stderr] Compiling tokio-io v0.1.10 [INFO] [stderr] Compiling http v0.1.14 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Compiling cookie v0.11.0 [INFO] [stderr] Compiling tokio-codec v0.1.1 [INFO] [stderr] Compiling phf_generator v0.7.23 [INFO] [stderr] Compiling uuid v0.7.1 [INFO] [stderr] Compiling phf_codegen v0.7.23 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling mime_guess v2.0.0-alpha.6 [INFO] [stderr] Compiling tokio-threadpool v0.1.9 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling enum-map v0.4.1 [INFO] [stderr] Compiling tokio-reactor v0.1.7 [INFO] [stderr] Compiling tokio-uds v0.2.4 [INFO] [stderr] Compiling tokio-tcp v0.1.2 [INFO] [stderr] Compiling tokio-udp v0.1.3 [INFO] [stderr] Compiling tokio-fs v0.1.4 [INFO] [stderr] Compiling tokio v0.1.13 [INFO] [stderr] Compiling h2 v0.1.13 [INFO] [stderr] Compiling hyper v0.12.16 [INFO] [stderr] Compiling hyper-tls v0.3.1 [INFO] [stderr] Compiling reqwest v0.9.5 [INFO] [stderr] Compiling advent_2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ten_b.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | type Err = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[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/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/sixteen_b.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | option::NoneError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/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_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/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[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/twenty_one_b.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/seventeen_a.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{num::ParseIntError, ops::RangeInclusive, option::NoneError, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 180 - fn neighbors(&self, position: usize) -> [Option<(usize)>; 4] { [INFO] [stdout] 180 + fn neighbors(&self, position: usize) -> [Option; 4] { [INFO] [stdout] | [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/seventeen_b.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{num::ParseIntError, ops::RangeInclusive, option::NoneError, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an associated function with this name may be added to the standard library in the future [INFO] [stdout] --> src/twenty_two_b.rs:226:25 [INFO] [stdout] | [INFO] [stdout] 226 | self.position.1.abs_diff(other.position.1) as u32 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `AbsDiff::abs_diff(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(int_abs_diff)]` to the crate attributes to enable `core::num::::abs_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an associated function with this name may be added to the standard library in the future [INFO] [stdout] --> src/twenty_two_b.rs:227:31 [INFO] [stdout] | [INFO] [stdout] 227 | + self.position.0.abs_diff(other.position.0) as u32 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `AbsDiff::abs_diff(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(int_abs_diff)]` to the crate attributes to enable `core::num::::abs_diff` [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/twenty_two_a.rs:7:36 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{fmt, 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/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_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: 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] warning: the feature `bind_by_move_pattern_guards` has been stable since 1.39.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/fifteen_a.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(bind_by_move_pattern_guards)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/twenty_five.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | type Err = std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/fourteen_a.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | Answer(array![|x| scores[x]; 10]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `array` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] 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] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ten_a.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | type Err = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[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] 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 193 - fn neighbors(&self, position: usize) -> [Option<(usize)>; 4] { [INFO] [stdout] 193 + fn neighbors(&self, position: usize) -> [Option; 4] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/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] 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] warning: an associated function with this name may be added to the standard library in the future [INFO] [stdout] --> src/six_b.rs:28:36 [INFO] [stdout] | [INFO] [stdout] 28 | .map(|(c1, r1)| c1.abs_diff(c) + r1.abs_diff(r)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `AbsDiff::abs_diff(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(int_abs_diff)]` to the crate attributes to enable `core::num::::abs_diff` [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/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] warning: an associated function with this name may be added to the standard library in the future [INFO] [stdout] --> src/six_b.rs:28:53 [INFO] [stdout] | [INFO] [stdout] 28 | .map(|(c1, r1)| c1.abs_diff(c) + r1.abs_diff(r)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `AbsDiff::abs_diff(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(int_abs_diff)]` to the crate attributes to enable `core::num::::abs_diff` [INFO] [stdout] [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] 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[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[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[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/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[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/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[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/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[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: aborting due to 8 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_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] 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: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] warning: an associated function with this name may be added to the standard library in the future [INFO] [stdout] --> src/six_a.rs:24:48 [INFO] [stdout] | [INFO] [stdout] 24 | .uniq_min_by_key(|(c1, r1)| c1.abs_diff(c) + r1.abs_diff(r)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `AbsDiff::abs_diff(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(int_abs_diff)]` to the crate attributes to enable `core::num::::abs_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an associated function with this name may be added to the standard library in the future [INFO] [stdout] --> src/six_a.rs:24:65 [INFO] [stdout] | [INFO] [stdout] 24 | .uniq_min_by_key(|(c1, r1)| c1.abs_diff(c) + r1.abs_diff(r)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `AbsDiff::abs_diff(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(int_abs_diff)]` to the crate attributes to enable `core::num::::abs_diff` [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" "be38d6c37f2d7b304c30458250b8115e6f9c9e45a5368afbc431085b71e3cecb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be38d6c37f2d7b304c30458250b8115e6f9c9e45a5368afbc431085b71e3cecb", kill_on_drop: false }` [INFO] [stdout] be38d6c37f2d7b304c30458250b8115e6f9c9e45a5368afbc431085b71e3cecb