[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 try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_getrandom_patch_2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpashadia%2Fbridge-stack-backend" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [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-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pashadia/bridge-stack-backend on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/droundy/bridge-cards` [INFO] [stderr] Updating git repository `https://github.com/droundy/display-as` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand v0.8.3 [INFO] [stderr] Downloaded percent-encoding v1.0.1 [INFO] [stderr] Downloaded autocfg v1.0.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.24 [INFO] [stderr] Downloaded num-derive v0.3.3 [INFO] [stderr] Downloaded quote v1.0.9 [INFO] [stderr] Downloaded getrandom v0.2.2 [INFO] [stderr] Downloaded unicode-xid v0.2.1 [INFO] [stderr] Downloaded serde_derive v1.0.124 [INFO] [stderr] Downloaded proc-macro2 v0.4.30 [INFO] [stderr] Downloaded quote v0.6.13 [INFO] [stderr] Downloaded ppv-lite86 v0.2.10 [INFO] [stderr] Downloaded wasi v0.10.2+wasi-snapshot-preview1 [INFO] [stderr] Downloaded rand_core v0.6.2 [INFO] [stderr] Downloaded rand_hc v0.3.0 [INFO] [stderr] Downloaded syn v1.0.64 [INFO] [stderr] Downloaded glob v0.2.11 [INFO] [stderr] Downloaded unicode-xid v0.1.0 [INFO] [stderr] Downloaded rand_chacha v0.3.0 [INFO] [stderr] Downloaded num-traits v0.2.14 [INFO] [stderr] Downloaded serde v1.0.124 [INFO] [stderr] Downloaded libc v0.2.89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bd4cc856190c610e5ab1c13ecc73cb99d2addd615f12acc4fad6855b283aac67 [INFO] running `Command { std: "docker" "start" "-a" "bd4cc856190c610e5ab1c13ecc73cb99d2addd615f12acc4fad6855b283aac67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bd4cc856190c610e5ab1c13ecc73cb99d2addd615f12acc4fad6855b283aac67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd4cc856190c610e5ab1c13ecc73cb99d2addd615f12acc4fad6855b283aac67", kill_on_drop: false }` [INFO] [stdout] bd4cc856190c610e5ab1c13ecc73cb99d2addd615f12acc4fad6855b283aac67 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 7dcaf00f4f82b7ffa3878f55054e5d9638951ae6219895fe6f0da18c93a2bb1d [INFO] running `Command { std: "docker" "start" "-a" "7dcaf00f4f82b7ffa3878f55054e5d9638951ae6219895fe6f0da18c93a2bb1d", 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 unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.64 [INFO] [stderr] Compiling cfg-if v1.0.0 [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 ppv-lite86 v0.2.10 [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 v1.0.9 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling num-traits v0.2.14 [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 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 num-derive v0.3.3 [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 9.87s [INFO] running `Command { std: "docker" "inspect" "7dcaf00f4f82b7ffa3878f55054e5d9638951ae6219895fe6f0da18c93a2bb1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7dcaf00f4f82b7ffa3878f55054e5d9638951ae6219895fe6f0da18c93a2bb1d", kill_on_drop: false }` [INFO] [stdout] 7dcaf00f4f82b7ffa3878f55054e5d9638951ae6219895fe6f0da18c93a2bb1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] d561e8c2e498cc97242ddf1b4723cf6d6ea37312c28dd689d11ffe5450e5bce2 [INFO] running `Command { std: "docker" "start" "-a" "d561e8c2e498cc97242ddf1b4723cf6d6ea37312c28dd689d11ffe5450e5bce2", 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.65s [INFO] running `Command { std: "docker" "inspect" "d561e8c2e498cc97242ddf1b4723cf6d6ea37312c28dd689d11ffe5450e5bce2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d561e8c2e498cc97242ddf1b4723cf6d6ea37312c28dd689d11ffe5450e5bce2", kill_on_drop: false }` [INFO] [stdout] d561e8c2e498cc97242ddf1b4723cf6d6ea37312c28dd689d11ffe5450e5bce2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 648e0d0b52a872ea6a6e3e01018e1d2723862e2822676c4303bdb81ebac45623 [INFO] running `Command { std: "docker" "start" "-a" "648e0d0b52a872ea6a6e3e01018e1d2723862e2822676c4303bdb81ebac45623", 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.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/bridge_backend-44b698610deaf2f5) [INFO] [stdout] [INFO] [stdout] running 30 tests [INFO] [stdout] test auction::tests::auction_finished ... ok [INFO] [stdout] test auction::tests::basic::comparisons ... ok [INFO] [stdout] test auction::tests::basic::read_strain_bid ... ok [INFO] [stdout] test auction::tests::can_bid_strain ... ok [INFO] [stdout] test auction::tests::can_pass_out ... 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::contract::declarer_is_first_to_name_contract ... ok [INFO] [stdout] test auction::tests::contract::doubled_contract ... ok [INFO] [stdout] test auction::tests::contract::other_declarers ... ok [INFO] [stdout] test auction::tests::contract::passout ... ok [INFO] [stdout] test auction::tests::contract::redoubled_contract ... ok [INFO] [stdout] test auction::tests::disallow_insufficient ... ok [INFO] [stdout] test auction::tests::redoubles ... ok [INFO] [stdout] test auction::tests::doubles ... ok [INFO] [stdout] test cardplay::trick::tests::new ... ok [INFO] [stdout] test cardplay::tests::start_new_board ... ok [INFO] [stdout] test contract::tests::basic::comparisons ... ok [INFO] [stdout] test contract::tests::doubled_partscores ... ok [INFO] [stdout] test contract::tests::games_doubled ... ok [INFO] [stdout] test contract::tests::games_undoubled ... ok [INFO] [stdout] test contract::tests::new ... ok [INFO] [stderr] Doc-tests bridge_backend [INFO] [stdout] test contract::tests::score_doubled_down ... ok [INFO] [stdout] test contract::tests::partscores_made_undoubled ... ok [INFO] [stdout] test contract::tests::score_redoubled_down ... ok [INFO] [stdout] test contract::tests::score_undoubled_down ... ok [INFO] [stdout] test tests::all_cards_should_exist ... ok [INFO] [stdout] test tests::correct_number_of_cards ... ok [INFO] [stdout] test tests::new_board ... ok [INFO] [stdout] test contract::tests::slams ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 30 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [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::Auction::bid (line 60) ... FAILED [INFO] [stdout] test src/auction/mod.rs - auction::Auction (line 17) ... ok [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 - turns (line 143) ... ok [INFO] [stdout] test src/auction/mod.rs - auction::Error::InsufficientBid (line 256) ... ok [INFO] [stdout] test src/lib.rs - Board::vulnerability (line 56) ... ok [INFO] [stdout] test src/lib.rs - Board::dealer (line 73) ... 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.78s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "648e0d0b52a872ea6a6e3e01018e1d2723862e2822676c4303bdb81ebac45623", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "648e0d0b52a872ea6a6e3e01018e1d2723862e2822676c4303bdb81ebac45623", kill_on_drop: false }` [INFO] [stdout] 648e0d0b52a872ea6a6e3e01018e1d2723862e2822676c4303bdb81ebac45623