[INFO] cloning repository https://github.com/LukeThoma5/rs-solitaire [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LukeThoma5/rs-solitaire" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLukeThoma5%2Frs-solitaire", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLukeThoma5%2Frs-solitaire'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b089b156a5e0630527dff210933c51f2f4941f36 [INFO] checking LukeThoma5/rs-solitaire against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLukeThoma5%2Frs-solitaire" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LukeThoma5/rs-solitaire on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LukeThoma5/rs-solitaire [INFO] finished tweaking git repo https://github.com/LukeThoma5/rs-solitaire [INFO] tweaked toml for git repo https://github.com/LukeThoma5/rs-solitaire written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/LukeThoma5/rs-solitaire already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_core v0.2.0 [INFO] [stderr] Downloaded rand v0.5.0 [INFO] [stderr] Downloaded libc v0.2.41 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f411b4337452744eff86e2df2175716897e6246b839fbb622ea71ff0accd160c [INFO] running `Command { std: "docker" "start" "-a" "f411b4337452744eff86e2df2175716897e6246b839fbb622ea71ff0accd160c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f411b4337452744eff86e2df2175716897e6246b839fbb622ea71ff0accd160c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f411b4337452744eff86e2df2175716897e6246b839fbb622ea71ff0accd160c", kill_on_drop: false }` [INFO] [stdout] f411b4337452744eff86e2df2175716897e6246b839fbb622ea71ff0accd160c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4b4578b79140d70adea67f7b9bb740ed01ecbd18884f049e6fc89811acb7d507 [INFO] running `Command { std: "docker" "start" "-a" "4b4578b79140d70adea67f7b9bb740ed01ecbd18884f049e6fc89811acb7d507", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.2.0 [INFO] [stderr] Checking libc v0.2.41 [INFO] [stderr] Checking rand v0.5.0 [INFO] [stderr] Checking solataire v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/main.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | impl From for GameError { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/main.rs:34:29 [INFO] [stdout] | [INFO] [stdout] 34 | fn from(x: std::option::NoneError) -> GameError { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro_path_invoc` has been stable since 1.30.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(proc_macro_path_invoc)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `use_extern_macros` has been stable since 1.30.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(use_extern_macros)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `try_trait` [INFO] [stdout] --> src/main.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | #![feature(try_trait)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/main.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | impl From for GameError { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/main.rs:34:29 [INFO] [stdout] | [INFO] [stdout] 34 | fn from(x: std::option::NoneError) -> GameError { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro_path_invoc` has been stable since 1.30.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(proc_macro_path_invoc)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `use_extern_macros` has been stable since 1.30.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(use_extern_macros)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `try_trait` [INFO] [stdout] --> src/main.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | #![feature(try_trait)] [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/main.rs:181:24 [INFO] [stdout] | [INFO] [stdout] 150 | / fn move_cards( [INFO] [stdout] 151 | | &mut self, [INFO] [stdout] 152 | | col_from_index: usize, [INFO] [stdout] 153 | | card_index: usize, [INFO] [stdout] 154 | | destination: usize, [INFO] [stdout] 155 | | ) -> Result<(), GameError> { [INFO] [stdout] | |______________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 181 | .next()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:264:40 [INFO] [stdout] | [INFO] [stdout] 262 | fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | -------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 263 | { [INFO] [stdout] 264 | let card = self.hand.last()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:266:47 [INFO] [stdout] | [INFO] [stdout] 262 | fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | -------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 266 | let column = self.cols.get(column)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 262 | fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | -------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 277 | .get_mut(column)? [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:279:39 [INFO] [stdout] | [INFO] [stdout] 262 | fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | -------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 279 | .push_back(self.hand.pop()?); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:331:47 [INFO] [stdout] | [INFO] [stdout] 330 | fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | ---------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 331 | let column = self.cols.get_mut(column)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:334:50 [INFO] [stdout] | [INFO] [stdout] 330 | fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | ---------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 334 | let move_card = column.visible.back()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:351:46 [INFO] [stdout] | [INFO] [stdout] 330 | fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | ---------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 351 | bucket.push(column.visible.pop_back()?); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:361:45 [INFO] [stdout] | [INFO] [stdout] 356 | fn hand_to_bucket(&mut self) -> Result<(), GameError> { [INFO] [stdout] | ----------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 361 | let move_card = self.hand.last()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:378:36 [INFO] [stdout] | [INFO] [stdout] 356 | fn hand_to_bucket(&mut self) -> Result<(), GameError> { [INFO] [stdout] | ----------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 378 | bucket.push(self.hand.pop()?); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:385:47 [INFO] [stdout] | [INFO] [stdout] 384 | fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] | --------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 385 | let column = self.cols.get_mut(column)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:395:42 [INFO] [stdout] | [INFO] [stdout] 384 | fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] | --------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 395 | let move_card = bucket.last()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:402:46 [INFO] [stdout] | [INFO] [stdout] 384 | fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] | --------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 402 | column.visible.push_back(bucket.pop()?); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:181:24 [INFO] [stdout] | [INFO] [stdout] 150 | / fn move_cards( [INFO] [stdout] 151 | | &mut self, [INFO] [stdout] 152 | | col_from_index: usize, [INFO] [stdout] 153 | | card_index: usize, [INFO] [stdout] 154 | | destination: usize, [INFO] [stdout] 155 | | ) -> Result<(), GameError> { [INFO] [stdout] | |______________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 181 | .next()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/main.rs:451:83 [INFO] [stdout] | [INFO] [stdout] 414 | fn make_move(field: &mut Playfield) -> Result<(), GameError> { [INFO] [stdout] | ------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 451 | (Some(&"cheat"), Some(&"pop"), ..) => {field.backlog.push(field.hand.pop()?);}, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | fn from(x: std::num::ParseIntError) -> GameError { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | fn from(x: std::io::Error) -> GameError { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [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/main.rs:264:40 [INFO] [stdout] | [INFO] [stdout] 262 | fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | -------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 263 | { [INFO] [stdout] 264 | let card = self.hand.last()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:266:47 [INFO] [stdout] | [INFO] [stdout] 262 | fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | -------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 266 | let column = self.cols.get(column)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 262 | fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | -------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 277 | .get_mut(column)? [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:279:39 [INFO] [stdout] | [INFO] [stdout] 262 | fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | -------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 279 | .push_back(self.hand.pop()?); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:331:47 [INFO] [stdout] | [INFO] [stdout] 330 | fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | ---------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 331 | let column = self.cols.get_mut(column)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:334:50 [INFO] [stdout] | [INFO] [stdout] 330 | fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | ---------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 334 | let move_card = column.visible.back()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:351:46 [INFO] [stdout] | [INFO] [stdout] 330 | fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] | ---------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 351 | bucket.push(column.visible.pop_back()?); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:361:45 [INFO] [stdout] | [INFO] [stdout] 356 | fn hand_to_bucket(&mut self) -> Result<(), GameError> { [INFO] [stdout] | ----------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 361 | let move_card = self.hand.last()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:378:36 [INFO] [stdout] | [INFO] [stdout] 356 | fn hand_to_bucket(&mut self) -> Result<(), GameError> { [INFO] [stdout] | ----------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 378 | bucket.push(self.hand.pop()?); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:385:47 [INFO] [stdout] | [INFO] [stdout] 384 | fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] | --------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 385 | let column = self.cols.get_mut(column)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:395:42 [INFO] [stdout] | [INFO] [stdout] 384 | fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] | --------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 395 | let move_card = bucket.last()?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [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/main.rs:402:46 [INFO] [stdout] | [INFO] [stdout] 384 | fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] | --------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 402 | column.visible.push_back(bucket.pop()?); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0635. [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 function that returns `Result` [INFO] [stdout] --> src/main.rs:451:83 [INFO] [stdout] | [INFO] [stdout] 414 | fn make_move(field: &mut Playfield) -> Result<(), GameError> { [INFO] [stdout] | ------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 451 | (Some(&"cheat"), Some(&"pop"), ..) => {field.backlog.push(field.hand.pop()?);}, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] as FromResidual>> [INFO] [stdout] as FromResidual>> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | fn from(x: std::num::ParseIntError) -> GameError { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | fn from(x: std::io::Error) -> GameError { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `solataire` (bin "solataire" test) due to 18 previous errors; 4 warnings emitted [INFO] [stdout] error: aborting due to 17 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `solataire` (bin "solataire") due to 18 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4b4578b79140d70adea67f7b9bb740ed01ecbd18884f049e6fc89811acb7d507", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b4578b79140d70adea67f7b9bb740ed01ecbd18884f049e6fc89811acb7d507", kill_on_drop: false }` [INFO] [stdout] 4b4578b79140d70adea67f7b9bb740ed01ecbd18884f049e6fc89811acb7d507