[INFO] cloning repository https://github.com/TyPR124/advent-of-code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TyPR124/advent-of-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyPR124%2Fadvent-of-code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyPR124%2Fadvent-of-code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c476baf7b1188fca754cc9c07eedbfa5125a6fc [INFO] checking TyPR124/advent-of-code against try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyPR124%2Fadvent-of-code" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TyPR124/advent-of-code on toolchain 4a23c45c7893f1416456144e3883cc48ea91722e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TyPR124/advent-of-code [INFO] finished tweaking git repo https://github.com/TyPR124/advent-of-code [INFO] tweaked toml for git repo https://github.com/TyPR124/advent-of-code written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/TyPR124/advent-of-code already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--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-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1a95fd0ef4b8affb4fff15291f6443b23ffec4054f3f3dc194d806a8ebec8bc0 [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" "1a95fd0ef4b8affb4fff15291f6443b23ffec4054f3f3dc194d806a8ebec8bc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a95fd0ef4b8affb4fff15291f6443b23ffec4054f3f3dc194d806a8ebec8bc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a95fd0ef4b8affb4fff15291f6443b23ffec4054f3f3dc194d806a8ebec8bc0", kill_on_drop: false }` [INFO] [stdout] 1a95fd0ef4b8affb4fff15291f6443b23ffec4054f3f3dc194d806a8ebec8bc0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 83d90b18781c0b0c6beac47bb988668ff7326e64700df14e694daf31ff6705c0 [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" "83d90b18781c0b0c6beac47bb988668ff7326e64700df14e694daf31ff6705c0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.45 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking aoc_2019 v0.1.0 (/opt/rustwide/workdir/2019) [INFO] [stderr] Compiling anyhow v1.0.34 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Checking aoc_2020 v0.1.0 (/opt/rustwide/workdir/2020) [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking num_cpus v1.9.0 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking rayon-core v1.4.1 [INFO] [stderr] Checking rayon v1.0.3 [INFO] [stderr] Checking regex v1.1.0 [INFO] [stderr] Checking aoc_2018 v0.1.0 (/opt/rustwide/workdir/2018) [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 31 | / fn part1(input: &str) -> Result { [INFO] [stdout] 32 | | type DepMap = BTreeMap>; [INFO] [stdout] 33 | | fn step(dep_map: &mut DepMap) -> u8 { [INFO] [stdout] 34 | | // #[allow(clippy::clippy::skip_while_next)] [INFO] [stdout] ... | [INFO] [stdout] 51 | | let caps = LINE_REGEX.captures(line)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(out) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 31 | / fn part1(input: &str) -> Result { [INFO] [stdout] 32 | | type DepMap = BTreeMap>; [INFO] [stdout] 33 | | fn step(dep_map: &mut DepMap) -> u8 { [INFO] [stdout] 34 | | // #[allow(clippy::clippy::skip_while_next)] [INFO] [stdout] ... | [INFO] [stdout] 52 | | let node = caps.name("node")?.as_str().as_bytes()[0]; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(out) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 31 | / fn part1(input: &str) -> Result { [INFO] [stdout] 32 | | type DepMap = BTreeMap>; [INFO] [stdout] 33 | | fn step(dep_map: &mut DepMap) -> u8 { [INFO] [stdout] 34 | | // #[allow(clippy::clippy::skip_while_next)] [INFO] [stdout] ... | [INFO] [stdout] 53 | | let need = caps.name("need")?.as_str().as_bytes()[0]; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(out) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:113:20 [INFO] [stdout] | [INFO] [stdout] 63 | / fn part2(input: &str, worker_count: usize) -> Result { [INFO] [stdout] 64 | | #[derive(PartialEq)] [INFO] [stdout] 65 | | enum Status { [INFO] [stdout] 66 | | HaveNeeds(BTreeSet), [INFO] [stdout] ... | [INFO] [stdout] 113 | | let caps = LINE_REGEX.captures(line)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 202 | | } [INFO] [stdout] 203 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:114:20 [INFO] [stdout] | [INFO] [stdout] 63 | / fn part2(input: &str, worker_count: usize) -> Result { [INFO] [stdout] 64 | | #[derive(PartialEq)] [INFO] [stdout] 65 | | enum Status { [INFO] [stdout] 66 | | HaveNeeds(BTreeSet), [INFO] [stdout] ... | [INFO] [stdout] 114 | | let node = caps.name("node")?.as_str().as_bytes()[0]; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 202 | | } [INFO] [stdout] 203 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day13/main.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 40 | / fn main() -> Result<()> { [INFO] [stdout] 41 | | let input = INPUT; [INFO] [stdout] 42 | | let mut turns = Turns::new(); [INFO] [stdout] 43 | | let mut carts = Carts::new(); [INFO] [stdout] ... | [INFO] [stdout] 113 | | first = *collisions.iter().min()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), aoc_2018::Error>` [INFO] [stdout] ... | [INFO] [stdout] 121 | | Ok(()) [INFO] [stdout] 122 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), aoc_2018::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 63 | / fn part2(input: &str, worker_count: usize) -> Result { [INFO] [stdout] 64 | | #[derive(PartialEq)] [INFO] [stdout] 65 | | enum Status { [INFO] [stdout] 66 | | HaveNeeds(BTreeSet), [INFO] [stdout] ... | [INFO] [stdout] 115 | | let need = caps.name("need")?.as_str().as_bytes()[0]; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 202 | | } [INFO] [stdout] 203 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 31 | / fn part1(input: &str) -> Result { [INFO] [stdout] 32 | | type DepMap = BTreeMap>; [INFO] [stdout] 33 | | fn step(dep_map: &mut DepMap) -> u8 { [INFO] [stdout] 34 | | // #[allow(clippy::clippy::skip_while_next)] [INFO] [stdout] ... | [INFO] [stdout] 51 | | let caps = LINE_REGEX.captures(line)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(out) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 31 | / fn part1(input: &str) -> Result { [INFO] [stdout] 32 | | type DepMap = BTreeMap>; [INFO] [stdout] 33 | | fn step(dep_map: &mut DepMap) -> u8 { [INFO] [stdout] 34 | | // #[allow(clippy::clippy::skip_while_next)] [INFO] [stdout] ... | [INFO] [stdout] 52 | | let node = caps.name("node")?.as_str().as_bytes()[0]; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(out) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 31 | / fn part1(input: &str) -> Result { [INFO] [stdout] 32 | | type DepMap = BTreeMap>; [INFO] [stdout] 33 | | fn step(dep_map: &mut DepMap) -> u8 { [INFO] [stdout] 34 | | // #[allow(clippy::clippy::skip_while_next)] [INFO] [stdout] ... | [INFO] [stdout] 53 | | let need = caps.name("need")?.as_str().as_bytes()[0]; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(out) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day13/main.rs:119:27 [INFO] [stdout] | [INFO] [stdout] 40 | / fn main() -> Result<()> { [INFO] [stdout] 41 | | let input = INPUT; [INFO] [stdout] 42 | | let mut turns = Turns::new(); [INFO] [stdout] 43 | | let mut carts = Carts::new(); [INFO] [stdout] ... | [INFO] [stdout] 119 | | println!("Part2: {}", carts.iter().next()?.0); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), aoc_2018::Error>` [INFO] [stdout] 120 | | [INFO] [stdout] 121 | | Ok(()) [INFO] [stdout] 122 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), aoc_2018::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:113:20 [INFO] [stdout] | [INFO] [stdout] 63 | / fn part2(input: &str, worker_count: usize) -> Result { [INFO] [stdout] 64 | | #[derive(PartialEq)] [INFO] [stdout] 65 | | enum Status { [INFO] [stdout] 66 | | HaveNeeds(BTreeSet), [INFO] [stdout] ... | [INFO] [stdout] 113 | | let caps = LINE_REGEX.captures(line)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 202 | | } [INFO] [stdout] 203 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:114:20 [INFO] [stdout] | [INFO] [stdout] 63 | / fn part2(input: &str, worker_count: usize) -> Result { [INFO] [stdout] 64 | | #[derive(PartialEq)] [INFO] [stdout] 65 | | enum Status { [INFO] [stdout] 66 | | HaveNeeds(BTreeSet), [INFO] [stdout] ... | [INFO] [stdout] 114 | | let node = caps.name("node")?.as_str().as_bytes()[0]; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 202 | | } [INFO] [stdout] 203 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 63 | / fn part2(input: &str, worker_count: usize) -> Result { [INFO] [stdout] 64 | | #[derive(PartialEq)] [INFO] [stdout] 65 | | enum Status { [INFO] [stdout] 66 | | HaveNeeds(BTreeSet), [INFO] [stdout] ... | [INFO] [stdout] 115 | | let need = caps.name("need")?.as_str().as_bytes()[0]; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 202 | | } [INFO] [stdout] 203 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day6/main.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 57 | / fn part1(points: &[Point], bounds: Bounds) -> Result { [INFO] [stdout] 58 | | use std::sync::Mutex; [INFO] [stdout] 59 | | let results = Mutex::new(HashMap::::new()); [INFO] [stdout] 60 | | let disq = Mutex::new(HashSet::::new()); [INFO] [stdout] ... | [INFO] [stdout] 97 | | Ok(*results [INFO] [stdout] | |_________^ [INFO] [stdout] 98 | || .iter() [INFO] [stdout] 99 | || .filter(|kv| !disq.contains(kv.0)) [INFO] [stdout] 100 | || .map(|kv| kv.1) [INFO] [stdout] 101 | || .max()?) [INFO] [stdout] | ||_______________^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 102 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day6/main.rs:128:20 [INFO] [stdout] | [INFO] [stdout] 122 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 123 | | let mut parts = s.split(", "); [INFO] [stdout] 124 | | if parts.clone().count() != 2 { [INFO] [stdout] 125 | | Err(err!("Expected 2 parts in Point::from_str()")) [INFO] [stdout] ... | [INFO] [stdout] 128 | | x: parts.next()?.parse()?, [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | } [INFO] [stdout] 132 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:194:30 [INFO] [stdout] | [INFO] [stdout] 144 | / fn tick(dep_map: &mut DepMap, workers: &mut Vec, todo: &mut Vec) -> Result { [INFO] [stdout] 145 | | let &passing_time = workers [INFO] [stdout] 146 | | .iter() [INFO] [stdout] 147 | | .filter(|w| w.is_working()) [INFO] [stdout] ... | [INFO] [stdout] 194 | | let final_time = workers [INFO] [stdout] | |______________________________^ [INFO] [stdout] 195 | || .iter() [INFO] [stdout] 196 | || .map(|w| if let Worker::Working(_, t) = w { *t } else { 0 }) [INFO] [stdout] 197 | || .max()?; [INFO] [stdout] | ||_______________________^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 201 | | } [INFO] [stdout] 202 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day6/main.rs:129:20 [INFO] [stdout] | [INFO] [stdout] 122 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 123 | | let mut parts = s.split(", "); [INFO] [stdout] 124 | | if parts.clone().count() != 2 { [INFO] [stdout] 125 | | Err(err!("Expected 2 parts in Point::from_str()")) [INFO] [stdout] ... | [INFO] [stdout] 129 | | y: parts.next()?.parse()?, [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 130 | | }) [INFO] [stdout] 131 | | } [INFO] [stdout] 132 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc_2018` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day6/main.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 57 | / fn part1(points: &[Point], bounds: Bounds) -> Result { [INFO] [stdout] 58 | | use std::sync::Mutex; [INFO] [stdout] 59 | | let results = Mutex::new(HashMap::::new()); [INFO] [stdout] 60 | | let disq = Mutex::new(HashSet::::new()); [INFO] [stdout] ... | [INFO] [stdout] 97 | | Ok(*results [INFO] [stdout] | |_________^ [INFO] [stdout] 98 | || .iter() [INFO] [stdout] 99 | || .filter(|kv| !disq.contains(kv.0)) [INFO] [stdout] 100 | || .map(|kv| kv.1) [INFO] [stdout] 101 | || .max()?) [INFO] [stdout] | ||_______________^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 102 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day7/main.rs:194:30 [INFO] [stdout] | [INFO] [stdout] 144 | / fn tick(dep_map: &mut DepMap, workers: &mut Vec, todo: &mut Vec) -> Result { [INFO] [stdout] 145 | | let &passing_time = workers [INFO] [stdout] 146 | | .iter() [INFO] [stdout] 147 | | .filter(|w| w.is_working()) [INFO] [stdout] ... | [INFO] [stdout] 194 | | let final_time = workers [INFO] [stdout] | |______________________________^ [INFO] [stdout] 195 | || .iter() [INFO] [stdout] 196 | || .map(|w| if let Worker::Working(_, t) = w { *t } else { 0 }) [INFO] [stdout] 197 | || .max()?; [INFO] [stdout] | ||_______________________^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 201 | | } [INFO] [stdout] 202 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day9/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 14 | / fn part1(n_players: usize, last_marble_score: usize) -> Result { [INFO] [stdout] 15 | | let mut players = vec![0; n_players]; [INFO] [stdout] 16 | | let marble_count = last_marble_score + 1; [INFO] [stdout] 17 | | play_game(&mut players, marble_count); [INFO] [stdout] 18 | | Ok(*players.iter().max()?) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 19 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day6/main.rs:128:20 [INFO] [stdout] | [INFO] [stdout] 122 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 123 | | let mut parts = s.split(", "); [INFO] [stdout] 124 | | if parts.clone().count() != 2 { [INFO] [stdout] 125 | | Err(err!("Expected 2 parts in Point::from_str()")) [INFO] [stdout] ... | [INFO] [stdout] 128 | | x: parts.next()?.parse()?, [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | } [INFO] [stdout] 132 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day6/main.rs:129:20 [INFO] [stdout] | [INFO] [stdout] 122 | / fn from_str(s: &str) -> Result { [INFO] [stdout] 123 | | let mut parts = s.split(", "); [INFO] [stdout] 124 | | if parts.clone().count() != 2 { [INFO] [stdout] 125 | | Err(err!("Expected 2 parts in Point::from_str()")) [INFO] [stdout] ... | [INFO] [stdout] 129 | | y: parts.next()?.parse()?, [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 130 | | }) [INFO] [stdout] 131 | | } [INFO] [stdout] 132 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day9/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 14 | / fn part1(n_players: usize, last_marble_score: usize) -> Result { [INFO] [stdout] 15 | | let mut players = vec![0; n_players]; [INFO] [stdout] 16 | | let marble_count = last_marble_score + 1; [INFO] [stdout] 17 | | play_game(&mut players, marble_count); [INFO] [stdout] 18 | | Ok(*players.iter().max()?) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 19 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day13/main.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 40 | / fn main() -> Result<()> { [INFO] [stdout] 41 | | let input = INPUT; [INFO] [stdout] 42 | | let mut turns = Turns::new(); [INFO] [stdout] 43 | | let mut carts = Carts::new(); [INFO] [stdout] ... | [INFO] [stdout] 113 | | first = *collisions.iter().min()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), aoc_2018::Error>` [INFO] [stdout] ... | [INFO] [stdout] 121 | | Ok(()) [INFO] [stdout] 122 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), aoc_2018::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day5/main.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 30 | / fn part2(input: &str) -> Result { [INFO] [stdout] 31 | | use std::collections::HashMap; [INFO] [stdout] 32 | | let input = input.trim().as_bytes(); [INFO] [stdout] 33 | | let mut all = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 50 | | Ok(all.values().map(|v| v.len()).min()?) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 51 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day13/main.rs:119:27 [INFO] [stdout] | [INFO] [stdout] 40 | / fn main() -> Result<()> { [INFO] [stdout] 41 | | let input = INPUT; [INFO] [stdout] 42 | | let mut turns = Turns::new(); [INFO] [stdout] 43 | | let mut carts = Carts::new(); [INFO] [stdout] ... | [INFO] [stdout] 119 | | println!("Part2: {}", carts.iter().next()?.0); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), aoc_2018::Error>` [INFO] [stdout] 120 | | [INFO] [stdout] 121 | | Ok(()) [INFO] [stdout] 122 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), aoc_2018::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> 2018/src/bin/day5/main.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 30 | / fn part2(input: &str) -> Result { [INFO] [stdout] 31 | | use std::collections::HashMap; [INFO] [stdout] 32 | | let input = input.trim().as_bytes(); [INFO] [stdout] 33 | | let mut all = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 50 | | Ok(all.values().map(|v| v.len()).min()?) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 51 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "83d90b18781c0b0c6beac47bb988668ff7326e64700df14e694daf31ff6705c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83d90b18781c0b0c6beac47bb988668ff7326e64700df14e694daf31ff6705c0", kill_on_drop: false }` [INFO] [stdout] 83d90b18781c0b0c6beac47bb988668ff7326e64700df14e694daf31ff6705c0