[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#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLukeThoma5%2Frs-solitaire" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LukeThoma5/rs-solitaire on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "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-11/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6bffa7690f73404a91e6bcc4cbd4c2e4c6df2d49b72ea2512cc3fd673777a41f [INFO] running `Command { std: "docker" "start" "-a" "6bffa7690f73404a91e6bcc4cbd4c2e4c6df2d49b72ea2512cc3fd673777a41f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6bffa7690f73404a91e6bcc4cbd4c2e4c6df2d49b72ea2512cc3fd673777a41f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bffa7690f73404a91e6bcc4cbd4c2e4c6df2d49b72ea2512cc3fd673777a41f", kill_on_drop: false }` [INFO] [stdout] 6bffa7690f73404a91e6bcc4cbd4c2e4c6df2d49b72ea2512cc3fd673777a41f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5ca9e00a1af778f6d4b6d3224d47b66adba8f3e8c1700b2f144bcfe64899ba3 [INFO] running `Command { std: "docker" "start" "-a" "d5ca9e00a1af778f6d4b6d3224d47b66adba8f3e8c1700b2f144bcfe64899ba3", 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[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] 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] 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] ... | [INFO] [stdout] 181 | | .next()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 206 | | Ok(()) [INFO] [stdout] 207 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] 265 | | [INFO] [stdout] ... | [INFO] [stdout] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [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] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [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] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [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] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] ... | [INFO] [stdout] 181 | | .next()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 206 | | Ok(()) [INFO] [stdout] 207 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 331 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `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 returns a `Result` [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 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] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] 265 | | [INFO] [stdout] ... | [INFO] [stdout] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 353 | | Ok(()) [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [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] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] 352 | | column.reveal(); [INFO] [stdout] 353 | | Ok(()) [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [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] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 263 | | { [INFO] [stdout] 264 | | let card = self.hand.last()?; [INFO] [stdout] 265 | | [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] 285 | | Ok(()) [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 381 | | Ok(()) [INFO] [stdout] 382 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 357 | | [INFO] [stdout] 358 | | { [INFO] [stdout] 359 | | let bucket: &mut Vec; [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] 381 | | Ok(()) [INFO] [stdout] 382 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 385 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `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 returns a `Result` [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 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] 331 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `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 returns a `Result` [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 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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 403 | | Ok(()) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 353 | | Ok(()) [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] 403 | | Ok(()) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] 352 | | column.reveal(); [INFO] [stdout] 353 | | Ok(()) [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 381 | | Ok(()) [INFO] [stdout] 382 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 357 | | [INFO] [stdout] 358 | | { [INFO] [stdout] 359 | | let bucket: &mut Vec; [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] 381 | | Ok(()) [INFO] [stdout] 382 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 385 | | let column = self.cols.get_mut(column)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `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 returns a `Result` [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 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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 456 | | Ok(()) [INFO] [stdout] 457 | | } [INFO] [stdout] | |_- this function returns a `Result` [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 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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 403 | | Ok(()) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] 403 | | Ok(()) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____- this function returns a `Result` [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 16 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `solataire` due to 17 previous errors [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] 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] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), GameError>` [INFO] [stdout] ... | [INFO] [stdout] 456 | | Ok(()) [INFO] [stdout] 457 | | } [INFO] [stdout] | |_- this function returns a `Result` [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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "d5ca9e00a1af778f6d4b6d3224d47b66adba8f3e8c1700b2f144bcfe64899ba3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5ca9e00a1af778f6d4b6d3224d47b66adba8f3e8c1700b2f144bcfe64899ba3", kill_on_drop: false }` [INFO] [stdout] d5ca9e00a1af778f6d4b6d3224d47b66adba8f3e8c1700b2f144bcfe64899ba3