[INFO] fetching crate coldcard 0.2.1... [INFO] testing coldcard-0.2.1 against 1.60.0 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 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hidapi v1.4.1 [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" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 43602006c57d0ee824bf3d853d0bf5ab2fbad6b4338e8c8c6b8cbe74f3afac3a [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" "43602006c57d0ee824bf3d853d0bf5ab2fbad6b4338e8c8c6b8cbe74f3afac3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "43602006c57d0ee824bf3d853d0bf5ab2fbad6b4338e8c8c6b8cbe74f3afac3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43602006c57d0ee824bf3d853d0bf5ab2fbad6b4338e8c8c6b8cbe74f3afac3a", kill_on_drop: false }` [INFO] [stdout] 43602006c57d0ee824bf3d853d0bf5ab2fbad6b4338e8c8c6b8cbe74f3afac3a [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" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e36a08e76a503adc559d13c9da858e3fbfa34f8486d3eadcaed55797999b699 [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" "1e36a08e76a503adc559d13c9da858e3fbfa34f8486d3eadcaed55797999b699", 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 ctr v0.6.0 [INFO] [stderr] Compiling aes-soft v0.6.4 [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 18.77s [INFO] running `Command { std: "docker" "inspect" "1e36a08e76a503adc559d13c9da858e3fbfa34f8486d3eadcaed55797999b699", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e36a08e76a503adc559d13c9da858e3fbfa34f8486d3eadcaed55797999b699", kill_on_drop: false }` [INFO] [stdout] 1e36a08e76a503adc559d13c9da858e3fbfa34f8486d3eadcaed55797999b699 [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" "+1.60.0" "test" "--frozen" "--no-run" "--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] 8dbd75d4466ce9843a4253ce6f5ec82da22ba45b3b8d8ff71ce5ac6342882a64 [INFO] running `Command { std: "docker" "start" "-a" "8dbd75d4466ce9843a4253ce6f5ec82da22ba45b3b8d8ff71ce5ac6342882a64", kill_on_drop: false }` [INFO] [stderr] Compiling coldcard v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.73s [INFO] running `Command { std: "docker" "inspect" "8dbd75d4466ce9843a4253ce6f5ec82da22ba45b3b8d8ff71ce5ac6342882a64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8dbd75d4466ce9843a4253ce6f5ec82da22ba45b3b8d8ff71ce5ac6342882a64", kill_on_drop: false }` [INFO] [stdout] 8dbd75d4466ce9843a4253ce6f5ec82da22ba45b3b8d8ff71ce5ac6342882a64 [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" "+1.60.0" "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] a4f4c2402a347380ea4ab24fbfe557adda5bffafc1da9afb07be07164075d942 [INFO] running `Command { std: "docker" "start" "-a" "a4f4c2402a347380ea4ab24fbfe557adda5bffafc1da9afb07be07164075d942", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/coldcard-d260b4b2f7f80592) [INFO] [stdout] running 4 tests [INFO] [stdout] test tests::session_key_test ... ok [INFO] [stdout] test protocol::tests::encode_test ... ok [INFO] [stdout] test protocol::tests::decode_test ... ok [INFO] [stderr] Doc-tests coldcard [INFO] [stdout] test protocol::derivation_path::test::parse ... 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] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 11) - compile ... FAILED [INFO] [stderr] error: test failed, to rerun pass '--doc' [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" "a4f4c2402a347380ea4ab24fbfe557adda5bffafc1da9afb07be07164075d942", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4f4c2402a347380ea4ab24fbfe557adda5bffafc1da9afb07be07164075d942", kill_on_drop: false }` [INFO] [stdout] a4f4c2402a347380ea4ab24fbfe557adda5bffafc1da9afb07be07164075d942