[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 try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLukeThoma5%2Frs-solitaire" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LukeThoma5/rs-solitaire 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/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-9/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: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.41 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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] c790fa662ff3b03a6e0550149408591afb93592fae264300a0f0059dc67a991d [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" "c790fa662ff3b03a6e0550149408591afb93592fae264300a0f0059dc67a991d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c790fa662ff3b03a6e0550149408591afb93592fae264300a0f0059dc67a991d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c790fa662ff3b03a6e0550149408591afb93592fae264300a0f0059dc67a991d", kill_on_drop: false }` [INFO] [stdout] c790fa662ff3b03a6e0550149408591afb93592fae264300a0f0059dc67a991d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b3350499004b45fce76b9408d68569485794338a1af0cac2e21cb29296f38da9 [INFO] running `Command { std: "docker" "start" "-a" "b3350499004b45fce76b9408d68569485794338a1af0cac2e21cb29296f38da9", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.41 [INFO] [stderr] Checking rand_core v0.2.0 [INFO] [stderr] Checking rand v0.5.0 [INFO] [stderr] Checking solataire v0.1.0 (/opt/rustwide/workdir) [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] --> src/main.rs:177:29 [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] ... | [INFO] [stdout] 177 | | let move_card = move_column [INFO] [stdout] | |_____________________________^ [INFO] [stdout] 178 | || .visible [INFO] [stdout] 179 | || .iter() [INFO] [stdout] 180 | || .skip(move_column_len - card_index - 1) [INFO] [stdout] 181 | || .next()?; [INFO] [stdout] | ||________________________^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 206 | | Ok(()) [INFO] [stdout] 207 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:264:24 [INFO] [stdout] | [INFO] [stdout] 262 | / fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] 265 | | [INFO] [stdout] ... | [INFO] [stdout] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:266:26 [INFO] [stdout] | [INFO] [stdout] 262 | / fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [INFO] [stdout] 266 | | let column = self.cols.get(column)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 262 | / fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [INFO] [stdout] ... | [INFO] [stdout] 276 | /| self.cols [INFO] [stdout] 277 | || .get_mut(column)? [INFO] [stdout] | ||_____________________________^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:279:24 [INFO] [stdout] | [INFO] [stdout] 262 | / fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [INFO] [stdout] ... | [INFO] [stdout] 279 | | .push_back(self.hand.pop()?); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:331:22 [INFO] [stdout] | [INFO] [stdout] 330 | / fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 331 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] 332 | | let bucket: &mut Vec; [INFO] [stdout] 333 | | { [INFO] [stdout] ... | [INFO] [stdout] 353 | | Ok(()) [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:334:29 [INFO] [stdout] | [INFO] [stdout] 330 | / fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 331 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] 332 | | let bucket: &mut Vec; [INFO] [stdout] 333 | | { [INFO] [stdout] 334 | | let move_card = column.visible.back()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 353 | | Ok(()) [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:351:21 [INFO] [stdout] | [INFO] [stdout] 330 | / fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 331 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] 332 | | let bucket: &mut Vec; [INFO] [stdout] 333 | | { [INFO] [stdout] ... | [INFO] [stdout] 351 | | bucket.push(column.visible.pop_back()?); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] 352 | | column.reveal(); [INFO] [stdout] 353 | | Ok(()) [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:177:29 [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] ... | [INFO] [stdout] 177 | | let move_card = move_column [INFO] [stdout] | |_____________________________^ [INFO] [stdout] 178 | || .visible [INFO] [stdout] 179 | || .iter() [INFO] [stdout] 180 | || .skip(move_column_len - card_index - 1) [INFO] [stdout] 181 | || .next()?; [INFO] [stdout] | ||________________________^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 206 | | Ok(()) [INFO] [stdout] 207 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:361:29 [INFO] [stdout] | [INFO] [stdout] 356 | / fn hand_to_bucket(&mut self) -> Result<(), GameError> { [INFO] [stdout] 357 | | [INFO] [stdout] 358 | | { [INFO] [stdout] 359 | | let bucket: &mut Vec; [INFO] [stdout] 360 | | { [INFO] [stdout] 361 | | let move_card = self.hand.last()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 381 | | Ok(()) [INFO] [stdout] 382 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:378:21 [INFO] [stdout] | [INFO] [stdout] 356 | / fn hand_to_bucket(&mut self) -> Result<(), GameError> { [INFO] [stdout] 357 | | [INFO] [stdout] 358 | | { [INFO] [stdout] 359 | | let bucket: &mut Vec; [INFO] [stdout] ... | [INFO] [stdout] 378 | | bucket.push(self.hand.pop()?); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 381 | | Ok(()) [INFO] [stdout] 382 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:385:22 [INFO] [stdout] | [INFO] [stdout] 384 | / fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] 385 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] 386 | | let bucket: &mut Vec; [INFO] [stdout] 387 | | { [INFO] [stdout] ... | [INFO] [stdout] 403 | | Ok(()) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:395:29 [INFO] [stdout] | [INFO] [stdout] 384 | / fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] 385 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] 386 | | let bucket: &mut Vec; [INFO] [stdout] 387 | | { [INFO] [stdout] ... | [INFO] [stdout] 395 | | let move_card = bucket.last()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 403 | | Ok(()) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:402:34 [INFO] [stdout] | [INFO] [stdout] 384 | / fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] 385 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] 386 | | let bucket: &mut Vec; [INFO] [stdout] 387 | | { [INFO] [stdout] ... | [INFO] [stdout] 402 | | column.visible.push_back(bucket.pop()?); [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] 403 | | Ok(()) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:264:24 [INFO] [stdout] | [INFO] [stdout] 262 | / fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] 265 | | [INFO] [stdout] ... | [INFO] [stdout] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:266:26 [INFO] [stdout] | [INFO] [stdout] 262 | / fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [INFO] [stdout] 266 | | let column = self.cols.get(column)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:451:67 [INFO] [stdout] | [INFO] [stdout] 414 | / fn make_move(field: &mut Playfield) -> Result<(), GameError> { [INFO] [stdout] 415 | | use std::io::stdin; [INFO] [stdout] 416 | | [INFO] [stdout] 417 | | field.print(); [INFO] [stdout] ... | [INFO] [stdout] 451 | | (Some(&"cheat"), Some(&"pop"), ..) => {field.backlog.push(field.hand.pop()?);}, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 456 | | Ok(()) [INFO] [stdout] 457 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 262 | / fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [INFO] [stdout] ... | [INFO] [stdout] 276 | /| self.cols [INFO] [stdout] 277 | || .get_mut(column)? [INFO] [stdout] | ||_____________________________^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:279:24 [INFO] [stdout] | [INFO] [stdout] 262 | / fn hand_to_column(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [INFO] [stdout] ... | [INFO] [stdout] 279 | | .push_back(self.hand.pop()?); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `solataire` [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] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:331:22 [INFO] [stdout] | [INFO] [stdout] 330 | / fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 331 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] 332 | | let bucket: &mut Vec; [INFO] [stdout] 333 | | { [INFO] [stdout] ... | [INFO] [stdout] 353 | | Ok(()) [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:334:29 [INFO] [stdout] | [INFO] [stdout] 330 | / fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 331 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] 332 | | let bucket: &mut Vec; [INFO] [stdout] 333 | | { [INFO] [stdout] 334 | | let move_card = column.visible.back()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 353 | | Ok(()) [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:351:21 [INFO] [stdout] | [INFO] [stdout] 330 | / fn column_to_bucket(&mut self, column: usize) -> Result<(), GameError> { [INFO] [stdout] 331 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] 332 | | let bucket: &mut Vec; [INFO] [stdout] 333 | | { [INFO] [stdout] ... | [INFO] [stdout] 351 | | bucket.push(column.visible.pop_back()?); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] 352 | | column.reveal(); [INFO] [stdout] 353 | | Ok(()) [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:361:29 [INFO] [stdout] | [INFO] [stdout] 356 | / fn hand_to_bucket(&mut self) -> Result<(), GameError> { [INFO] [stdout] 357 | | [INFO] [stdout] 358 | | { [INFO] [stdout] 359 | | let bucket: &mut Vec; [INFO] [stdout] 360 | | { [INFO] [stdout] 361 | | let move_card = self.hand.last()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 381 | | Ok(()) [INFO] [stdout] 382 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:378:21 [INFO] [stdout] | [INFO] [stdout] 356 | / fn hand_to_bucket(&mut self) -> Result<(), GameError> { [INFO] [stdout] 357 | | [INFO] [stdout] 358 | | { [INFO] [stdout] 359 | | let bucket: &mut Vec; [INFO] [stdout] ... | [INFO] [stdout] 378 | | bucket.push(self.hand.pop()?); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 381 | | Ok(()) [INFO] [stdout] 382 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:385:22 [INFO] [stdout] | [INFO] [stdout] 384 | / fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] 385 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] 386 | | let bucket: &mut Vec; [INFO] [stdout] 387 | | { [INFO] [stdout] ... | [INFO] [stdout] 403 | | Ok(()) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:395:29 [INFO] [stdout] | [INFO] [stdout] 384 | / fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] 385 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] 386 | | let bucket: &mut Vec; [INFO] [stdout] 387 | | { [INFO] [stdout] ... | [INFO] [stdout] 395 | | let move_card = bucket.last()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 403 | | Ok(()) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:402:34 [INFO] [stdout] | [INFO] [stdout] 384 | / fn bucket_to_column(&mut self, column: usize, bucket_suit: CardSuit) -> Result<(), GameError> { [INFO] [stdout] 385 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] 386 | | let bucket: &mut Vec; [INFO] [stdout] 387 | | { [INFO] [stdout] ... | [INFO] [stdout] 402 | | column.visible.push_back(bucket.pop()?); [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), GameError>` [INFO] [stdout] 403 | | Ok(()) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] --> src/main.rs:451:67 [INFO] [stdout] | [INFO] [stdout] 414 | / fn make_move(field: &mut Playfield) -> Result<(), GameError> { [INFO] [stdout] 415 | | use std::io::stdin; [INFO] [stdout] 416 | | [INFO] [stdout] 417 | | field.print(); [INFO] [stdout] ... | [INFO] [stdout] 451 | | (Some(&"cheat"), Some(&"pop"), ..) => {field.backlog.push(field.hand.pop()?);}, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 456 | | Ok(()) [INFO] [stdout] 457 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), GameError>` [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] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b3350499004b45fce76b9408d68569485794338a1af0cac2e21cb29296f38da9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3350499004b45fce76b9408d68569485794338a1af0cac2e21cb29296f38da9", kill_on_drop: false }` [INFO] [stdout] b3350499004b45fce76b9408d68569485794338a1af0cac2e21cb29296f38da9