[INFO] cloning repository https://github.com/pashadia/bridge-stack-backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pashadia/bridge-stack-backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpashadia%2Fbridge-stack-backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpashadia%2Fbridge-stack-backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b72fb4a5acf9cdb66a320ce8ddd1f78daf56897f [INFO] testing pashadia/bridge-stack-backend against master#414482f6a0d4e7290f614300581a0b55442552a3 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpashadia%2Fbridge-stack-backend" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pashadia/bridge-stack-backend on toolchain 414482f6a0d4e7290f614300581a0b55442552a3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pashadia/bridge-stack-backend [INFO] finished tweaking git repo https://github.com/pashadia/bridge-stack-backend [INFO] tweaked toml for git repo https://github.com/pashadia/bridge-stack-backend written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/pashadia/bridge-stack-backend 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" "+414482f6a0d4e7290f614300581a0b55442552a3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/droundy/bridge-cards` [INFO] [stderr] Updating git repository `https://github.com/droundy/display-as` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e81c66025a7822fbf8cec8c5e7ed999b073ee3e082e76bcfad8cf3ea85128b0e [INFO] running `Command { std: "docker" "start" "-a" "e81c66025a7822fbf8cec8c5e7ed999b073ee3e082e76bcfad8cf3ea85128b0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e81c66025a7822fbf8cec8c5e7ed999b073ee3e082e76bcfad8cf3ea85128b0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e81c66025a7822fbf8cec8c5e7ed999b073ee3e082e76bcfad8cf3ea85128b0e", kill_on_drop: false }` [INFO] [stdout] e81c66025a7822fbf8cec8c5e7ed999b073ee3e082e76bcfad8cf3ea85128b0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e00d4ed143489ec7a4f2e22125f2bcbb5d1dfc1409c4db802618b5f116b5bb3f [INFO] running `Command { std: "docker" "start" "-a" "e00d4ed143489ec7a4f2e22125f2bcbb5d1dfc1409c4db802618b5f116b5bb3f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.89 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.64 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.124 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde v1.0.124 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling display-as-proc-macro v0.6.0 (https://github.com/droundy/display-as#41fcfb0c) [INFO] [stderr] Compiling display-as v0.6.0 (https://github.com/droundy/display-as#41fcfb0c) [INFO] [stderr] Compiling bridge-deck v0.1.1 (https://github.com/droundy/bridge-cards?branch=main#acd38fdb) [INFO] [stderr] Compiling bridge-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/contract/mod.rs:129:62 [INFO] [stdout] | [INFO] [stdout] 129 | #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ContractLevel` [INFO] [stdout] 130 | pub enum ContractLevel { [INFO] [stdout] | ------------- `ContractLevel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.45s [INFO] running `Command { std: "docker" "inspect" "e00d4ed143489ec7a4f2e22125f2bcbb5d1dfc1409c4db802618b5f116b5bb3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e00d4ed143489ec7a4f2e22125f2bcbb5d1dfc1409c4db802618b5f116b5bb3f", kill_on_drop: false }` [INFO] [stdout] e00d4ed143489ec7a4f2e22125f2bcbb5d1dfc1409c4db802618b5f116b5bb3f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 80193c86c734ce00c417c05e1eb51b44c645357ca455631ac233e6f99719e2a5 [INFO] running `Command { std: "docker" "start" "-a" "80193c86c734ce00c417c05e1eb51b44c645357ca455631ac233e6f99719e2a5", kill_on_drop: false }` [INFO] [stderr] Compiling bridge-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/contract/mod.rs:129:62 [INFO] [stdout] | [INFO] [stdout] 129 | #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ContractLevel` [INFO] [stdout] 130 | pub enum ContractLevel { [INFO] [stdout] | ------------- `ContractLevel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ContractLevel` [INFO] [stdout] --> src/auction/tests.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::contract::{ContractLevel, Strain}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/contract/mod.rs:129:62 [INFO] [stdout] | [INFO] [stdout] 129 | #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ContractLevel` [INFO] [stdout] 130 | pub enum ContractLevel { [INFO] [stdout] | ------------- `ContractLevel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.84s [INFO] running `Command { std: "docker" "inspect" "80193c86c734ce00c417c05e1eb51b44c645357ca455631ac233e6f99719e2a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80193c86c734ce00c417c05e1eb51b44c645357ca455631ac233e6f99719e2a5", kill_on_drop: false }` [INFO] [stdout] 80193c86c734ce00c417c05e1eb51b44c645357ca455631ac233e6f99719e2a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f51b7f308a6f045bed17e799d875f5074384d44958998a59c7cba2cb22ae2944 [INFO] running `Command { std: "docker" "start" "-a" "f51b7f308a6f045bed17e799d875f5074384d44958998a59c7cba2cb22ae2944", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/contract/mod.rs:129:62 [INFO] [stderr] | [INFO] [stderr] 129 | #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, FromPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ContractLevel` [INFO] [stderr] 130 | pub enum ContractLevel { [INFO] [stderr] | ------------- `ContractLevel` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `ContractLevel` [INFO] [stderr] --> src/auction/tests.rs:5:23 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::contract::{ContractLevel, Strain}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `bridge-backend` (lib) generated 1 warning [INFO] [stderr] warning: `bridge-backend` (lib test) generated 2 warnings (1 duplicate) (run `cargo fix --lib -p bridge-backend --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/bridge_backend-605eaf7787fcd9bb) [INFO] [stdout] [INFO] [stdout] running 30 tests [INFO] [stdout] test auction::tests::auction_finished ... ok [INFO] [stdout] test auction::tests::contract::declarer_is_first_to_name_contract ... ok [INFO] [stdout] test auction::tests::contract::doubled_contract ... ok [INFO] [stdout] test auction::tests::can_pass_out ... ok [INFO] [stdout] test auction::tests::can_bid_strain ... ok [INFO] [stdout] test auction::tests::contract::other_declarers ... ok [INFO] [stdout] test auction::tests::basic::comparisons ... ok [INFO] [stdout] test auction::tests::basic::read_strain_bid ... ok [INFO] [stdout] test auction::tests::contract::basic_contract ... ok [INFO] [stdout] test auction::tests::contract::declarer_did_actually_win_auction ... ok [INFO] [stdout] test auction::tests::disallow_insufficient ... ok [INFO] [stdout] test auction::tests::doubles ... ok [INFO] [stdout] test cardplay::tests::start_new_board ... ok [INFO] [stdout] test contract::tests::basic::comparisons ... ok [INFO] [stdout] test contract::tests::games_undoubled ... ok [INFO] [stdout] test contract::tests::new ... ok [INFO] [stdout] test contract::tests::partscores_made_undoubled ... ok [INFO] [stdout] test auction::tests::contract::passout ... ok [INFO] [stdout] test contract::tests::score_doubled_down ... ok [INFO] [stdout] test auction::tests::contract::redoubled_contract ... ok [INFO] [stdout] test auction::tests::redoubles ... ok [INFO] [stdout] test contract::tests::doubled_partscores ... ok [INFO] [stdout] test cardplay::trick::tests::new ... ok [INFO] [stdout] test contract::tests::score_redoubled_down ... ok [INFO] [stdout] test contract::tests::games_doubled ... ok [INFO] [stdout] test contract::tests::score_undoubled_down ... ok [INFO] [stdout] test contract::tests::slams ... ok [INFO] [stdout] test tests::correct_number_of_cards ... ok [INFO] [stdout] test tests::new_board ... ok [INFO] [stdout] test tests::all_cards_should_exist ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 30 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] Doc-tests bridge_backend [INFO] [stderr] warning: lint `missing_crate_level_docs` has been renamed to `rustdoc::missing_crate_level_docs` [INFO] [stderr] --> src/lib.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | #![deny(missing_crate_level_docs)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `rustdoc::missing_crate_level_docs` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/auction/mod.rs - auction::Error::CantDouble (line 273) ... ok [INFO] [stdout] test src/auction/mod.rs - auction::Error::CantRedouble (line 292) ... ok [INFO] [stdout] test src/lib.rs - Board::dealer (line 73) ... ok [INFO] [stdout] test src/lib.rs - Board::vulnerability (line 56) ... ok [INFO] [stdout] test src/auction/mod.rs - auction::Error::InsufficientBid (line 256) ... ok [INFO] [stdout] test src/auction/mod.rs - auction::Auction::bid (line 60) ... FAILED [INFO] [stdout] test src/auction/mod.rs - auction::Auction (line 17) ... ok [INFO] [stdout] test src/lib.rs - turns (line 143) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/auction/mod.rs - auction::Auction::bid (line 60) 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/auction/mod.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auction_mod_rs_60_0() { [INFO] [stdout] | ------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | auction.bid(TWO_SPADES)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auction_mod_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | use bridge_backend::{Auction, BridgeDirection}; [INFO] [stdout] ... [INFO] [stdout] 11| auction.bid(PASS)?; [INFO] [stdout] 12+ Ok(()) [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/auction/mod.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auction_mod_rs_60_0() { [INFO] [stdout] | ------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | auction.bid(DOUBLE)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auction_mod_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | use bridge_backend::{Auction, BridgeDirection}; [INFO] [stdout] ... [INFO] [stdout] 11| auction.bid(PASS)?; [INFO] [stdout] 12+ Ok(()) [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/auction/mod.rs:67:22 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auction_mod_rs_60_0() { [INFO] [stdout] | ------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | auction.bid(REDOUBLE)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auction_mod_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | use bridge_backend::{Auction, BridgeDirection}; [INFO] [stdout] ... [INFO] [stdout] 11 | auction.bid(PASS)?; [INFO] [stdout] 12 + Ok(()) [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/auction/mod.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auction_mod_rs_60_0() { [INFO] [stdout] | ------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | auction.bid(PASS)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auction_mod_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | use bridge_backend::{Auction, BridgeDirection}; [INFO] [stdout] ... [INFO] [stdout] 11 | auction.bid(PASS)?; [INFO] [stdout] 12 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/auction/mod.rs - auction::Auction::bid (line 60) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 7 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.75s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "f51b7f308a6f045bed17e799d875f5074384d44958998a59c7cba2cb22ae2944", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f51b7f308a6f045bed17e799d875f5074384d44958998a59c7cba2cb22ae2944", kill_on_drop: false }` [INFO] [stdout] f51b7f308a6f045bed17e799d875f5074384d44958998a59c7cba2cb22ae2944