[INFO] fetching crate coldcard 0.2.1... [INFO] testing coldcard-0.2.1 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate coldcard 0.2.1 into /workspace/builds/worker-12/source [INFO] validating manifest of crates.io crate coldcard 0.2.1 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate coldcard 0.2.1 [INFO] finished tweaking crates.io crate coldcard 0.2.1 [INFO] tweaked toml for crates.io crate coldcard 0.2.1 written to /workspace/builds/worker-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", 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] 1efcb40f247565bae0283ca5967ad1c7434ce577aaba209ff6e75d8aabb2bdbe [INFO] running `Command { std: "docker" "start" "-a" "1efcb40f247565bae0283ca5967ad1c7434ce577aaba209ff6e75d8aabb2bdbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1efcb40f247565bae0283ca5967ad1c7434ce577aaba209ff6e75d8aabb2bdbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1efcb40f247565bae0283ca5967ad1c7434ce577aaba209ff6e75d8aabb2bdbe", kill_on_drop: false }` [INFO] [stdout] 1efcb40f247565bae0283ca5967ad1c7434ce577aaba209ff6e75d8aabb2bdbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--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] 8f653df08ca9c4d7d5286ef63e587ad90c6a35e1e753af31844ed6dbd33d7cb5 [INFO] running `Command { std: "docker" "start" "-a" "8f653df08ca9c4d7d5286ef63e587ad90c6a35e1e753af31844ed6dbd33d7cb5", kill_on_drop: false }` [INFO] [stderr] Compiling bitcoin_hashes v0.10.0 [INFO] [stderr] Compiling base58 v0.2.0 [INFO] [stderr] Compiling secp256k1-sys v0.5.0 [INFO] [stderr] Compiling hidapi v1.4.1 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling aes-ctr v0.6.0 [INFO] [stderr] Compiling secp256k1 v0.22.1 [INFO] [stderr] Compiling coldcard v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.08s [INFO] running `Command { std: "docker" "inspect" "8f653df08ca9c4d7d5286ef63e587ad90c6a35e1e753af31844ed6dbd33d7cb5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f653df08ca9c4d7d5286ef63e587ad90c6a35e1e753af31844ed6dbd33d7cb5", kill_on_drop: false }` [INFO] [stdout] 8f653df08ca9c4d7d5286ef63e587ad90c6a35e1e753af31844ed6dbd33d7cb5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ee6d1d035cc3e1e19159baa54a011ac604a808819af334d8c31dde403fd362bd [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" "ee6d1d035cc3e1e19159baa54a011ac604a808819af334d8c31dde403fd362bd", kill_on_drop: false }` [INFO] [stderr] Compiling coldcard v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.45s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/coldcard-a438d5015afd02a4) [INFO] running `Command { std: "docker" "inspect" "ee6d1d035cc3e1e19159baa54a011ac604a808819af334d8c31dde403fd362bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee6d1d035cc3e1e19159baa54a011ac604a808819af334d8c31dde403fd362bd", kill_on_drop: false }` [INFO] [stdout] ee6d1d035cc3e1e19159baa54a011ac604a808819af334d8c31dde403fd362bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", 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] 1f9814da3565bc7d3bcdd493f84dd57f1c06ba86b1f3f97226098041fb5e5069 [INFO] running `Command { std: "docker" "start" "-a" "1f9814da3565bc7d3bcdd493f84dd57f1c06ba86b1f3f97226098041fb5e5069", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/coldcard-a438d5015afd02a4) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test protocol::tests::decode_test ... ok [INFO] [stdout] test protocol::derivation_path::test::parse ... ok [INFO] [stdout] test protocol::tests::encode_test ... ok [INFO] [stdout] test tests::session_key_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests coldcard [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] [stdout] test src/lib.rs - (line 11) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 11) 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/lib.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use coldcard::{self, protocol}; [INFO] [stdout] 5 | | // detect all connected Coldcards [INFO] [stdout] 6 | | let serials = coldcard::detect()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 22 | | coldcard.logout()?; [INFO] [stdout] 23 | | } _doctest_main_src_lib_rs_11_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [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/lib.rs:17:37 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use coldcard::{self, protocol}; [INFO] [stdout] 5 | | // detect all connected Coldcards [INFO] [stdout] 6 | | let serials = coldcard::detect()?; [INFO] [stdout] ... | [INFO] [stdout] 9 | | let mut coldcard = serials[0].open()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 22 | | coldcard.logout()?; [INFO] [stdout] 23 | | } _doctest_main_src_lib_rs_11_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_passphrase` found for tuple `(Coldcard, Option)` in the current scope [INFO] [stdout] --> src/lib.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 12 | coldcard.set_passphrase(protocol::Passphrase::new("secret")?)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `(Coldcard, Option)` [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/lib.rs:20:60 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use coldcard::{self, protocol}; [INFO] [stdout] 5 | | // detect all connected Coldcards [INFO] [stdout] 6 | | let serials = coldcard::detect()?; [INFO] [stdout] ... | [INFO] [stdout] 12 | | coldcard.set_passphrase(protocol::Passphrase::new("secret")?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 22 | | coldcard.logout()?; [INFO] [stdout] 23 | | } _doctest_main_src_lib_rs_11_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [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/lib.rs:20:62 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use coldcard::{self, protocol}; [INFO] [stdout] 5 | | // detect all connected Coldcards [INFO] [stdout] 6 | | let serials = coldcard::detect()?; [INFO] [stdout] ... | [INFO] [stdout] 12 | | coldcard.set_passphrase(protocol::Passphrase::new("secret")?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 22 | | coldcard.logout()?; [INFO] [stdout] 23 | | } _doctest_main_src_lib_rs_11_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_passphrase_done` found for tuple `(Coldcard, Option)` in the current scope [INFO] [stdout] --> src/lib.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 15 | let xpub = coldcard.get_passphrase_done()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `(Coldcard, Option)` [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/lib.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use coldcard::{self, protocol}; [INFO] [stdout] 5 | | // detect all connected Coldcards [INFO] [stdout] 6 | | let serials = coldcard::detect()?; [INFO] [stdout] ... | [INFO] [stdout] 15 | | let xpub = coldcard.get_passphrase_done()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 22 | | coldcard.logout()?; [INFO] [stdout] 23 | | } _doctest_main_src_lib_rs_11_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `logout` found for tuple `(Coldcard, Option)` in the current scope [INFO] [stdout] --> src/lib.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 22 | coldcard.logout()?; [INFO] [stdout] | ^^^^^^ method not found in `(Coldcard, Option)` [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/lib.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use coldcard::{self, protocol}; [INFO] [stdout] 5 | | // detect all connected Coldcards [INFO] [stdout] 6 | | let serials = coldcard::detect()?; [INFO] [stdout] ... | [INFO] [stdout] 22 | | coldcard.logout()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 23 | | } _doctest_main_src_lib_rs_11_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 11) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.21s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1f9814da3565bc7d3bcdd493f84dd57f1c06ba86b1f3f97226098041fb5e5069", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f9814da3565bc7d3bcdd493f84dd57f1c06ba86b1f3f97226098041fb5e5069", kill_on_drop: false }` [INFO] [stdout] 1f9814da3565bc7d3bcdd493f84dd57f1c06ba86b1f3f97226098041fb5e5069