[INFO] fetching crate emerald-wallet-state 0.1.0...
[INFO] checking emerald-wallet-state-0.1.0 against master#30f74ff0dc4d66debc8b50724c446f817e5f75f4 for pr-121848-1
[INFO] extracting crate emerald-wallet-state 0.1.0 into /workspace/builds/worker-3-tc1/source
[INFO] validating manifest of crates.io crate emerald-wallet-state 0.1.0 on toolchain 30f74ff0dc4d66debc8b50724c446f817e5f75f4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate emerald-wallet-state 0.1.0
[INFO] finished tweaking crates.io crate emerald-wallet-state 0.1.0
[INFO] tweaked toml for crates.io crate emerald-wallet-state 0.1.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded scrypt v0.4.1
[INFO] [stderr]   Downloaded protobuf v2.25.2
[INFO] [stderr]   Downloaded aes-ctr v0.6.0
[INFO] [stderr]   Downloaded byte-array-struct v0.2.0
[INFO] [stderr]   Downloaded rustc-hex v1.0.0
[INFO] [stderr]   Downloaded argon2 v0.3.4
[INFO] [stderr]   Downloaded ethabi v2.0.1
[INFO] [stderr]   Downloaded num-bigint v0.3.3
[INFO] [stderr]   Downloaded hdpath v0.6.3
[INFO] [stderr]   Downloaded hidapi v1.5.0
[INFO] [stderr]   Downloaded emerald-vault v0.32.0
[INFO] [stderr]   Downloaded emerald-hwkey v0.4.0
[INFO] [stderr]   Downloaded sled v0.34.7
[INFO] [stderr]   Downloaded pbkdf2 v0.5.0
[INFO] [stderr]   Downloaded enum-display-derive v0.1.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a3d92d7232d58d43a949a1d066aac90a1098a1df59fab85b306a9c43383384b5
[INFO] running `Command { std: "docker" "start" "-a" "a3d92d7232d58d43a949a1d066aac90a1098a1df59fab85b306a9c43383384b5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a3d92d7232d58d43a949a1d066aac90a1098a1df59fab85b306a9c43383384b5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a3d92d7232d58d43a949a1d066aac90a1098a1df59fab85b306a9c43383384b5", kill_on_drop: false }`
[INFO] [stdout] a3d92d7232d58d43a949a1d066aac90a1098a1df59fab85b306a9c43383384b5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4fdd718ad9f6254b9e6571a5a470bca348e079e7c14128ff73054ace33ff10b5
[INFO] running `Command { std: "docker" "start" "-a" "4fdd718ad9f6254b9e6571a5a470bca348e079e7c14128ff73054ace33ff10b5", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.18
[INFO] [stderr]     Checking ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling serde v1.0.197
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling bitcoin-internals v0.2.0
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling secp256k1-sys v0.6.1
[INFO] [stderr]    Compiling secp256k1-sys v0.9.2
[INFO] [stderr]    Compiling hidapi v1.5.0
[INFO] [stderr]    Compiling num-bigint v0.3.3
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]    Compiling hex_lit v0.1.1
[INFO] [stderr]     Checking getrandom v0.2.12
[INFO] [stderr]    Compiling syn v2.0.57
[INFO] [stderr]     Checking bitcoin_hashes v0.11.0
[INFO] [stderr]     Checking hex-conservative v0.1.1
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking futures-sink v0.3.30
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling num-rational v0.3.2
[INFO] [stderr]     Checking futures-channel v0.3.30
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]    Compiling bitcoin v0.31.1
[INFO] [stderr]     Checking base64ct v1.0.1
[INFO] [stderr]     Checking bech32 v0.9.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking bitcoin_hashes v0.13.0
[INFO] [stderr]     Checking password-hash v0.3.2
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]     Checking instant v0.1.12
[INFO] [stderr]    Compiling num-bigint v0.4.4
[INFO] [stderr]    Compiling emerald-hwkey v0.4.0
[INFO] [stderr]    Compiling protobuf v2.25.2
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking digest v0.9.0
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]     Checking cipher v0.2.5
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking crypto-mac v0.9.1
[INFO] [stderr]     Checking sha2 v0.9.9
[INFO] [stderr]     Checking bech32 v0.10.0-beta
[INFO] [stderr]     Checking regex-syntax v0.8.3
[INFO] [stderr]     Checking powerfmt v0.2.0
[INFO] [stderr]     Checking aes-soft v0.6.4
[INFO] [stderr]     Checking sha2 v0.10.8
[INFO] [stderr]     Checking deranged v0.3.11
[INFO] [stderr]     Checking hmac v0.12.1
[INFO] [stderr]     Checking blake2 v0.10.6
[INFO] [stderr]     Checking ctr v0.6.0
[INFO] [stderr]     Checking hmac v0.9.0
[INFO] [stderr]     Checking pbkdf2 v0.5.0
[INFO] [stderr]     Checking ripemd160 v0.9.1
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking tiny-keccak v1.5.0
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking num-complex v0.3.1
[INFO] [stderr]     Checking csv-core v0.1.11
[INFO] [stderr]     Checking time-core v0.1.2
[INFO] [stderr]     Checking base64 v0.12.3
[INFO] [stderr]     Checking keccak v0.1.5
[INFO] [stderr]     Checking rustc-hex v1.0.0
[INFO] [stderr]     Checking rustc-hex v2.1.0
[INFO] [stderr]     Checking num-conv v0.1.0
[INFO] [stderr]    Compiling emerald-vault v0.32.0
[INFO] [stderr]     Checking chrono v0.4.37
[INFO] [stderr]     Checking num-iter v0.1.44
[INFO] [stderr]     Checking sha3 v0.10.8
[INFO] [stderr]     Checking rlp v0.5.2
[INFO] [stderr]     Checking argon2 v0.3.4
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]     Checking scrypt v0.4.1
[INFO] [stderr]     Checking zip v0.6.6
[INFO] [stderr]     Checking aes-ctr v0.6.0
[INFO] [stderr]     Checking pbkdf2 v0.10.1
[INFO] [stderr]     Checking fs2 v0.4.3
[INFO] [stderr]     Checking glob v0.3.1
[INFO] [stderr]     Checking time v0.3.34
[INFO] [stderr]     Checking fs_extra v1.3.0
[INFO] [stderr]     Checking remove_dir_all v0.5.3
[INFO] [stderr]     Checking sled v0.34.7
[INFO] [stderr]     Checking tempdir v0.3.7
[INFO] [stderr]     Checking regex-automata v0.4.6
[INFO] [stderr]    Compiling futures-macro v0.3.30
[INFO] [stderr]    Compiling serde_derive v1.0.197
[INFO] [stderr]     Checking num v0.3.1
[INFO] [stderr]     Checking serde_json v1.0.115
[INFO] [stderr]     Checking csv v1.3.0
[INFO] [stderr]     Checking uuid v0.8.2
[INFO] [stderr]    Compiling enum-display-derive v0.1.1
[INFO] [stderr]     Checking secp256k1 v0.24.3
[INFO] [stderr]     Checking secp256k1 v0.28.2
[INFO] [stderr]     Checking byte-array-struct v0.2.0
[INFO] [stderr]     Checking bitcoin v0.29.2
[INFO] [stderr]     Checking futures-util v0.3.30
[INFO] [stderr]     Checking regex v1.10.4
[INFO] [stderr]     Checking ethabi v2.0.1
[INFO] [stderr]     Checking hdpath v0.6.3
[INFO] [stderr]     Checking futures-executor v0.3.30
[INFO] [stderr]     Checking futures v0.3.30
[INFO] [stdout] error[E0433]: failed to resolve: could not find `util` in `bitcoin`
[INFO] [stdout]  --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/traits.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | use bitcoin::util::bip32::{ExtendedPubKey, Fingerprint, ChildNumber, ChainCode};
[INFO] [stdout]   |              ^^^^ could not find `util` in `bitcoin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `util` in `bitcoin`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_ethereum.rs:11:14
[INFO] [stdout]    |
[INFO] [stdout] 11 | use bitcoin::util::bip32::ChainCode;
[INFO] [stdout]    |              ^^^^ could not find `util` in `bitcoin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `util` in `bitcoin`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 |     util::psbt::serialize::Serialize
[INFO] [stdout]    |     ^^^^ could not find `util` in `bitcoin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `util` in `bitcoin`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:33:14
[INFO] [stdout]    |
[INFO] [stdout] 33 | use bitcoin::util::bip32::{ChainCode};
[INFO] [stdout]    |              ^^^^ could not find `util` in `bitcoin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `bitcoin::SigHashType`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     SigHashType,
[INFO] [stdout]    |     ^^^^^^^^^^^ no `SigHashType` in the root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:215:13
[INFO] [stdout]     |
[INFO] [stdout] 215 |     redeem: Script,
[INFO] [stdout]     |             ^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]     |
[INFO] [stdout]     = help: within `bitcoin::Script`, the trait `Sized` is not implemented for `[u8]`, which is required by `bitcoin::Script: Sized`
[INFO] [stdout] note: required because it appears within the type `bitcoin::Script`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/borrowed.rs:73:12
[INFO] [stdout]     |
[INFO] [stdout] 73  | pub struct Script(pub(in crate::blockdata::script) [u8]);
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout]     = note: only the last field of a struct may have a dynamically sized type
[INFO] [stdout]     = help: change the field's type to have a statically known size
[INFO] [stdout] help: borrowed types always have a statically known size
[INFO] [stdout]     |
[INFO] [stdout] 215 |     redeem: &Script,
[INFO] [stdout]     |             +
[INFO] [stdout] help: the `Box` type always has a statically known size and allocates its contents in the heap
[INFO] [stdout]     |
[INFO] [stdout] 215 |     redeem: Box<Script>,
[INFO] [stdout]     |             ++++      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `serialize` found for struct `bitcoin::PublicKey` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:160:53
[INFO] [stdout]     |
[INFO] [stdout] 160 |                     .push_slice(hash160(pubkey_comp.serialize().as_slice()).as_slice())
[INFO] [stdout]     |                                                     ^^^^^^^^^ method not found in `PublicKey`
[INFO] [stdout]     |
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]     |
[INFO] [stdout] 160 |                     .push_slice(hash160(pubkey_comp.inner.serialize().as_slice()).as_slice())
[INFO] [stdout]     |                                                     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `[u8]: AsRef<bitcoin::script::PushBytes>` is not satisfied
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:160:33
[INFO] [stdout]     |
[INFO] [stdout] 160 |                     .push_slice(hash160(pubkey_comp.serialize().as_slice()).as_slice())
[INFO] [stdout]     |                      ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsRef<bitcoin::script::PushBytes>` is not implemented for `[u8]`, which is required by `&[u8]: AsRef<bitcoin::script::PushBytes>`
[INFO] [stdout]     |                      |
[INFO] [stdout]     |                      required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the following other types implement trait `AsRef<T>`:
[INFO] [stdout]               <[u8; 0] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 1] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 2] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 3] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 4] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 5] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 6] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 7] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]             and 68 others
[INFO] [stdout]     = note: required for `&[u8]` to implement `AsRef<bitcoin::script::PushBytes>`
[INFO] [stdout] note: required by a bound in `bitcoin::script::Builder::push_slice`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/builder.rs:60:26
[INFO] [stdout]     |
[INFO] [stdout] 60  |     pub fn push_slice<T: AsRef<PushBytes>>(mut self, data: T) -> Builder {
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^ required by this bound in `Builder::push_slice`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `bitcoin::Script: Clone` is not satisfied
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:215:5
[INFO] [stdout]     |
[INFO] [stdout] 210 | #[derive(Clone)]
[INFO] [stdout]     |          ----- in this derive macro expansion
[INFO] [stdout] ...
[INFO] [stdout] 215 |     redeem: Script,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `bitcoin::Script`
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:215:5
[INFO] [stdout]     |
[INFO] [stdout] 210 | #[derive(Clone)]
[INFO] [stdout]     |          ----- in this derive macro expansion
[INFO] [stdout] ...
[INFO] [stdout] 215 |     redeem: Script,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]     |
[INFO] [stdout]     = help: within `bitcoin::Script`, the trait `Sized` is not implemented for `[u8]`, which is required by `bitcoin::Script: Sized`
[INFO] [stdout] note: required because it appears within the type `bitcoin::Script`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/borrowed.rs:73:12
[INFO] [stdout]     |
[INFO] [stdout] 73  | pub struct Script(pub(in crate::blockdata::script) [u8]);
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] note: required by a bound in `clone`
[INFO] [stdout]    --> /rustc/30f74ff0dc4d66debc8b50724c446f817e5f75f4/library/core/src/clone.rs:160:5
[INFO] [stdout]     = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:245:64
[INFO] [stdout]     |
[INFO] [stdout] 245 |     fn witness_redeem(pubkey: &PublicKey, network: Network) -> Script {
[INFO] [stdout]     |                                                                ^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]     |
[INFO] [stdout]     = help: within `bitcoin::Script`, the trait `Sized` is not implemented for `[u8]`, which is required by `bitcoin::Script: Sized`
[INFO] [stdout] note: required because it appears within the type `bitcoin::Script`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/borrowed.rs:73:12
[INFO] [stdout]     |
[INFO] [stdout] 73  | pub struct Script(pub(in crate::blockdata::script) [u8]);
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout]     = note: the return type of a function must have a statically known size
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `bitcoin::Script: AsRef<bitcoin::script::PushBytes>` is not satisfied
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:252:26
[INFO] [stdout]     |
[INFO] [stdout] 252 |             .push_slice(&base[2..])
[INFO] [stdout]     |              ----------  ^^^^^^^^^ the trait `AsRef<bitcoin::script::PushBytes>` is not implemented for `bitcoin::Script`, which is required by `&bitcoin::Script: AsRef<bitcoin::script::PushBytes>`
[INFO] [stdout]     |              |
[INFO] [stdout]     |              required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the following other types implement trait `AsRef<T>`:
[INFO] [stdout]               <bitcoin::Script as AsRef<bitcoin::Script>>
[INFO] [stdout]               <bitcoin::Script as AsRef<[u8]>>
[INFO] [stdout]     = note: required for `&bitcoin::Script` to implement `AsRef<bitcoin::script::PushBytes>`
[INFO] [stdout] note: required by a bound in `bitcoin::script::Builder::push_slice`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/builder.rs:60:26
[INFO] [stdout]     |
[INFO] [stdout] 60  |     pub fn push_slice<T: AsRef<PushBytes>>(mut self, data: T) -> Builder {
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^ required by this bound in `Builder::push_slice`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `to_u32` found for enum `bitcoin::absolute::LockTime` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:295:91
[INFO] [stdout]     |
[INFO] [stdout] 295 |             let mut signature = self.untrusted_hash_sign(&mut device, input, tx.lock_time.to_u32())?;
[INFO] [stdout]     |                                                                                           ^^^^^^ method not found in `LockTime`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `from_vec` found for struct `bitcoin::Witness` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:298:44
[INFO] [stdout]     |
[INFO] [stdout] 298 |             tx.input[i].witness = Witness::from_vec(vec![
[INFO] [stdout]     |                                            ^^^^^^^^ function or associated item not found in `Witness`
[INFO] [stdout]     |
[INFO] [stdout] note: if you're trying to build a new `bitcoin::Witness` consider using one of the following associated functions:
[INFO] [stdout]       bitcoin::Witness::new
[INFO] [stdout]       bitcoin::Witness::p2wpkh
[INFO] [stdout]       bitcoin::Witness::from_slice
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/witness.rs:237:5
[INFO] [stdout]     |
[INFO] [stdout] 237 |     pub fn new() -> Self { Witness::default() }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 245 |     pub fn p2wpkh(signature: &ecdsa::Signature, pubkey: &secp256k1::PublicKey) -> Witness {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 253 |     pub fn from_slice<T: AsRef<[u8]>>(slice: &[T]) -> Self {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: there is an associated function `from` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 298 |             tx.input[i].witness = Witness::from(vec![
[INFO] [stdout]     |                                            ~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `serialize` found for struct `bitcoin::PublicKey` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:299:62
[INFO] [stdout]     |
[INFO] [stdout] 299 |                 signature.clone(), input.from_address.pubkey.serialize().to_vec()
[INFO] [stdout]     |                                                              ^^^^^^^^^ method not found in `PublicKey`
[INFO] [stdout]     |
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]     |
[INFO] [stdout] 299 |                 signature.clone(), input.from_address.pubkey.inner.serialize().to_vec()
[INFO] [stdout]     |                                                              ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:281:25
[INFO] [stdout]     |
[INFO] [stdout] 281 |                 redeem: BitcoinApp::witness_redeem(&address.pubkey, config.network)
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]     |
[INFO] [stdout]     = help: within `bitcoin::Script`, the trait `Sized` is not implemented for `[u8]`, which is required by `bitcoin::Script: Sized`
[INFO] [stdout] note: required because it appears within the type `bitcoin::Script`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/borrowed.rs:73:12
[INFO] [stdout]     |
[INFO] [stdout] 73  | pub struct Script(pub(in crate::blockdata::script) [u8]);
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout]     = note: the return type of a function must have a statically known size
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0605]: non-primitive cast: `bitcoin::transaction::Version` as `u32`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:311:40
[INFO] [stdout]     |
[INFO] [stdout] 311 |         data.write_u32::<LittleEndian>(tx.version as u32)
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:400:44
[INFO] [stdout]      |
[INFO] [stdout] 400  |             data.write_u64::<LittleEndian>(output.value)
[INFO] [stdout]      |                  ------------------------- ^^^^^^^^^^^^ expected `u64`, found `Amount`
[INFO] [stdout]      |                  |
[INFO] [stdout]      |                  arguments to this method are incorrect
[INFO] [stdout]      |
[INFO] [stdout] note: method defined here
[INFO] [stdout]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/io.rs:1367:8
[INFO] [stdout]      |
[INFO] [stdout] 1367 |     fn write_u64<T: ByteOrder>(&mut self, n: u64) -> Result<()> {
[INFO] [stdout]      |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 18 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0432, E0433, E0599, E0605.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `emerald-hwkey` (lib) due to 19 previous errors
[INFO] running `Command { std: "docker" "inspect" "4fdd718ad9f6254b9e6571a5a470bca348e079e7c14128ff73054ace33ff10b5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4fdd718ad9f6254b9e6571a5a470bca348e079e7c14128ff73054ace33ff10b5", kill_on_drop: false }`
[INFO] [stdout] 4fdd718ad9f6254b9e6571a5a470bca348e079e7c14128ff73054ace33ff10b5
[INFO] checking emerald-wallet-state-0.1.0 against try#72eda894eb3548c7ba774079ce0afab42958d4ee for pr-121848-1
[INFO] extracting crate emerald-wallet-state 0.1.0 into /workspace/builds/worker-3-tc2/source
[INFO] validating manifest of crates.io crate emerald-wallet-state 0.1.0 on toolchain 72eda894eb3548c7ba774079ce0afab42958d4ee
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate emerald-wallet-state 0.1.0
[INFO] finished tweaking crates.io crate emerald-wallet-state 0.1.0
[INFO] tweaked toml for crates.io crate emerald-wallet-state 0.1.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5ec633427f256988660868393076d5690e3f3aafcd2e86dde105ff1f4c474224
[INFO] running `Command { std: "docker" "start" "-a" "5ec633427f256988660868393076d5690e3f3aafcd2e86dde105ff1f4c474224", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5ec633427f256988660868393076d5690e3f3aafcd2e86dde105ff1f4c474224", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5ec633427f256988660868393076d5690e3f3aafcd2e86dde105ff1f4c474224", kill_on_drop: false }`
[INFO] [stdout] 5ec633427f256988660868393076d5690e3f3aafcd2e86dde105ff1f4c474224
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] eef94296d9b9f2f146a7a13ab5b502bba7f5cd0fa125973281e0cbbbd744e885
[INFO] running `Command { std: "docker" "start" "-a" "eef94296d9b9f2f146a7a13ab5b502bba7f5cd0fa125973281e0cbbbd744e885", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.18
[INFO] [stderr]     Checking ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling serde v1.0.197
[INFO] [stderr]    Compiling bitcoin-internals v0.2.0
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling secp256k1-sys v0.6.1
[INFO] [stderr]    Compiling secp256k1-sys v0.9.2
[INFO] [stderr]    Compiling hidapi v1.5.0
[INFO] [stderr]    Compiling num-bigint v0.3.3
[INFO] [stderr]     Checking futures-sink v0.3.30
[INFO] [stderr]     Checking getrandom v0.2.12
[INFO] [stderr]    Compiling syn v2.0.57
[INFO] [stderr]     Checking hex-conservative v0.1.1
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]    Compiling hex_lit v0.1.1
[INFO] [stderr]     Checking bitcoin_hashes v0.11.0
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking futures-channel v0.3.30
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling num-rational v0.3.2
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking base64ct v1.0.1
[INFO] [stderr]    Compiling bitcoin v0.31.1
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]     Checking bech32 v0.9.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking bitcoin_hashes v0.13.0
[INFO] [stderr]     Checking password-hash v0.3.2
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]     Checking instant v0.1.12
[INFO] [stderr]    Compiling num-bigint v0.4.4
[INFO] [stderr]    Compiling emerald-hwkey v0.4.0
[INFO] [stderr]     Checking bech32 v0.10.0-beta
[INFO] [stderr]     Checking regex-syntax v0.8.3
[INFO] [stderr]     Checking powerfmt v0.2.0
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking digest v0.9.0
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]     Checking cipher v0.2.5
[INFO] [stderr]     Checking crypto-mac v0.9.1
[INFO] [stderr]     Checking sha2 v0.9.9
[INFO] [stderr]    Compiling protobuf v2.25.2
[INFO] [stderr]     Checking blake2 v0.10.6
[INFO] [stderr]     Checking aes-soft v0.6.4
[INFO] [stderr]     Checking ctr v0.6.0
[INFO] [stderr]     Checking hmac v0.12.1
[INFO] [stderr]     Checking sha2 v0.10.8
[INFO] [stderr]     Checking hmac v0.9.0
[INFO] [stderr]     Checking pbkdf2 v0.5.0
[INFO] [stderr]     Checking ripemd160 v0.9.1
[INFO] [stderr]     Checking deranged v0.3.11
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking tiny-keccak v1.5.0
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking num-complex v0.3.1
[INFO] [stderr]     Checking csv-core v0.1.11
[INFO] [stderr]     Checking keccak v0.1.5
[INFO] [stderr]     Checking num-conv v0.1.0
[INFO] [stderr]     Checking base64 v0.12.3
[INFO] [stderr]     Checking time-core v0.1.2
[INFO] [stderr]     Checking rustc-hex v1.0.0
[INFO] [stderr]    Compiling emerald-vault v0.32.0
[INFO] [stderr]     Checking rustc-hex v2.1.0
[INFO] [stderr]     Checking sha3 v0.10.8
[INFO] [stderr]     Checking num-iter v0.1.44
[INFO] [stderr]     Checking chrono v0.4.37
[INFO] [stderr]     Checking rlp v0.5.2
[INFO] [stderr]     Checking scrypt v0.4.1
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]     Checking zip v0.6.6
[INFO] [stderr]     Checking pbkdf2 v0.10.1
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking aes-ctr v0.6.0
[INFO] [stderr]     Checking argon2 v0.3.4
[INFO] [stderr]     Checking fs2 v0.4.3
[INFO] [stderr]     Checking glob v0.3.1
[INFO] [stderr]     Checking fs_extra v1.3.0
[INFO] [stderr]     Checking sled v0.34.7
[INFO] [stderr]     Checking remove_dir_all v0.5.3
[INFO] [stderr]     Checking time v0.3.34
[INFO] [stderr]     Checking tempdir v0.3.7
[INFO] [stderr]     Checking regex-automata v0.4.6
[INFO] [stderr]     Checking serde_json v1.0.115
[INFO] [stderr]     Checking uuid v0.8.2
[INFO] [stderr]     Checking csv v1.3.0
[INFO] [stderr]     Checking num v0.3.1
[INFO] [stderr]     Checking secp256k1 v0.24.3
[INFO] [stderr]    Compiling enum-display-derive v0.1.1
[INFO] [stderr]    Compiling futures-macro v0.3.30
[INFO] [stderr]    Compiling serde_derive v1.0.197
[INFO] [stderr]     Checking secp256k1 v0.28.2
[INFO] [stderr]     Checking byte-array-struct v0.2.0
[INFO] [stderr]     Checking bitcoin v0.29.2
[INFO] [stderr]     Checking futures-util v0.3.30
[INFO] [stderr]     Checking regex v1.10.4
[INFO] [stderr]     Checking hdpath v0.6.3
[INFO] [stderr]     Checking ethabi v2.0.1
[INFO] [stderr]     Checking futures-executor v0.3.30
[INFO] [stdout] error[E0433]: failed to resolve: could not find `util` in `bitcoin`
[INFO] [stdout]  --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/traits.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | use bitcoin::util::bip32::{ExtendedPubKey, Fingerprint, ChildNumber, ChainCode};
[INFO] [stdout]   |              ^^^^ could not find `util` in `bitcoin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `util` in `bitcoin`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_ethereum.rs:11:14
[INFO] [stdout]    |
[INFO] [stdout] 11 | use bitcoin::util::bip32::ChainCode;
[INFO] [stdout]    |              ^^^^ could not find `util` in `bitcoin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `util` in `bitcoin`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 |     util::psbt::serialize::Serialize
[INFO] [stdout]    |     ^^^^ could not find `util` in `bitcoin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `util` in `bitcoin`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:33:14
[INFO] [stdout]    |
[INFO] [stdout] 33 | use bitcoin::util::bip32::{ChainCode};
[INFO] [stdout]    |              ^^^^ could not find `util` in `bitcoin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `bitcoin::SigHashType`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     SigHashType,
[INFO] [stdout]    |     ^^^^^^^^^^^ no `SigHashType` in the root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking futures v0.3.30
[INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:215:13
[INFO] [stdout]     |
[INFO] [stdout] 215 |     redeem: Script,
[INFO] [stdout]     |             ^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]     |
[INFO] [stdout]     = help: within `bitcoin::Script`, the trait `Sized` is not implemented for `[u8]`, which is required by `bitcoin::Script: Sized`
[INFO] [stdout] note: required because it appears within the type `bitcoin::Script`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/borrowed.rs:73:12
[INFO] [stdout]     |
[INFO] [stdout] 73  | pub struct Script(pub(in crate::blockdata::script) [u8]);
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout]     = note: only the last field of a struct may have a dynamically sized type
[INFO] [stdout]     = help: change the field's type to have a statically known size
[INFO] [stdout] help: borrowed types always have a statically known size
[INFO] [stdout]     |
[INFO] [stdout] 215 |     redeem: &Script,
[INFO] [stdout]     |             +
[INFO] [stdout] help: the `Box` type always has a statically known size and allocates its contents in the heap
[INFO] [stdout]     |
[INFO] [stdout] 215 |     redeem: Box<Script>,
[INFO] [stdout]     |             ++++      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `serialize` found for struct `bitcoin::PublicKey` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:160:53
[INFO] [stdout]     |
[INFO] [stdout] 160 |                     .push_slice(hash160(pubkey_comp.serialize().as_slice()).as_slice())
[INFO] [stdout]     |                                                     ^^^^^^^^^ method not found in `PublicKey`
[INFO] [stdout]     |
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]     |
[INFO] [stdout] 160 |                     .push_slice(hash160(pubkey_comp.inner.serialize().as_slice()).as_slice())
[INFO] [stdout]     |                                                     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `[u8]: AsRef<bitcoin::script::PushBytes>` is not satisfied
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:160:33
[INFO] [stdout]     |
[INFO] [stdout] 160 |                     .push_slice(hash160(pubkey_comp.serialize().as_slice()).as_slice())
[INFO] [stdout]     |                      ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsRef<bitcoin::script::PushBytes>` is not implemented for `[u8]`, which is required by `&[u8]: AsRef<bitcoin::script::PushBytes>`
[INFO] [stdout]     |                      |
[INFO] [stdout]     |                      required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the following other types implement trait `AsRef<T>`:
[INFO] [stdout]               <[u8; 0] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 1] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 2] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 3] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 4] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 5] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 6] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]               <[u8; 7] as AsRef<bitcoin::script::PushBytes>>
[INFO] [stdout]             and 68 others
[INFO] [stdout]     = note: required for `&[u8]` to implement `AsRef<bitcoin::script::PushBytes>`
[INFO] [stdout] note: required by a bound in `bitcoin::script::Builder::push_slice`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/builder.rs:60:26
[INFO] [stdout]     |
[INFO] [stdout] 60  |     pub fn push_slice<T: AsRef<PushBytes>>(mut self, data: T) -> Builder {
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^ required by this bound in `Builder::push_slice`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `bitcoin::Script: Clone` is not satisfied
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:215:5
[INFO] [stdout]     |
[INFO] [stdout] 210 | #[derive(Clone)]
[INFO] [stdout]     |          ----- in this derive macro expansion
[INFO] [stdout] ...
[INFO] [stdout] 215 |     redeem: Script,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `bitcoin::Script`
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:215:5
[INFO] [stdout]     |
[INFO] [stdout] 210 | #[derive(Clone)]
[INFO] [stdout]     |          ----- in this derive macro expansion
[INFO] [stdout] ...
[INFO] [stdout] 215 |     redeem: Script,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]     |
[INFO] [stdout]     = help: within `bitcoin::Script`, the trait `Sized` is not implemented for `[u8]`, which is required by `bitcoin::Script: Sized`
[INFO] [stdout] note: required because it appears within the type `bitcoin::Script`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/borrowed.rs:73:12
[INFO] [stdout]     |
[INFO] [stdout] 73  | pub struct Script(pub(in crate::blockdata::script) [u8]);
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] note: required by a bound in `clone`
[INFO] [stdout]    --> /rustc/72eda894eb3548c7ba774079ce0afab42958d4ee/library/core/src/clone.rs:160:5
[INFO] [stdout]     = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:245:64
[INFO] [stdout]     |
[INFO] [stdout] 245 |     fn witness_redeem(pubkey: &PublicKey, network: Network) -> Script {
[INFO] [stdout]     |                                                                ^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]     |
[INFO] [stdout]     = help: within `bitcoin::Script`, the trait `Sized` is not implemented for `[u8]`, which is required by `bitcoin::Script: Sized`
[INFO] [stdout] note: required because it appears within the type `bitcoin::Script`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/borrowed.rs:73:12
[INFO] [stdout]     |
[INFO] [stdout] 73  | pub struct Script(pub(in crate::blockdata::script) [u8]);
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout]     = note: the return type of a function must have a statically known size
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `bitcoin::Script: AsRef<bitcoin::script::PushBytes>` is not satisfied
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:252:26
[INFO] [stdout]     |
[INFO] [stdout] 252 |             .push_slice(&base[2..])
[INFO] [stdout]     |              ----------  ^^^^^^^^^ the trait `AsRef<bitcoin::script::PushBytes>` is not implemented for `bitcoin::Script`, which is required by `&bitcoin::Script: AsRef<bitcoin::script::PushBytes>`
[INFO] [stdout]     |              |
[INFO] [stdout]     |              required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the following other types implement trait `AsRef<T>`:
[INFO] [stdout]               <bitcoin::Script as AsRef<bitcoin::Script>>
[INFO] [stdout]               <bitcoin::Script as AsRef<[u8]>>
[INFO] [stdout]     = note: required for `&bitcoin::Script` to implement `AsRef<bitcoin::script::PushBytes>`
[INFO] [stdout] note: required by a bound in `bitcoin::script::Builder::push_slice`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/builder.rs:60:26
[INFO] [stdout]     |
[INFO] [stdout] 60  |     pub fn push_slice<T: AsRef<PushBytes>>(mut self, data: T) -> Builder {
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^ required by this bound in `Builder::push_slice`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `to_u32` found for enum `bitcoin::absolute::LockTime` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:295:91
[INFO] [stdout]     |
[INFO] [stdout] 295 |             let mut signature = self.untrusted_hash_sign(&mut device, input, tx.lock_time.to_u32())?;
[INFO] [stdout]     |                                                                                           ^^^^^^ method not found in `LockTime`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `from_vec` found for struct `bitcoin::Witness` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:298:44
[INFO] [stdout]     |
[INFO] [stdout] 298 |             tx.input[i].witness = Witness::from_vec(vec![
[INFO] [stdout]     |                                            ^^^^^^^^ function or associated item not found in `Witness`
[INFO] [stdout]     |
[INFO] [stdout] note: if you're trying to build a new `bitcoin::Witness` consider using one of the following associated functions:
[INFO] [stdout]       bitcoin::Witness::new
[INFO] [stdout]       bitcoin::Witness::p2wpkh
[INFO] [stdout]       bitcoin::Witness::from_slice
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/witness.rs:237:5
[INFO] [stdout]     |
[INFO] [stdout] 237 |     pub fn new() -> Self { Witness::default() }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 245 |     pub fn p2wpkh(signature: &ecdsa::Signature, pubkey: &secp256k1::PublicKey) -> Witness {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 253 |     pub fn from_slice<T: AsRef<[u8]>>(slice: &[T]) -> Self {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: there is an associated function `from` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 298 |             tx.input[i].witness = Witness::from(vec![
[INFO] [stdout]     |                                            ~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `serialize` found for struct `bitcoin::PublicKey` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:299:62
[INFO] [stdout]     |
[INFO] [stdout] 299 |                 signature.clone(), input.from_address.pubkey.serialize().to_vec()
[INFO] [stdout]     |                                                              ^^^^^^^^^ method not found in `PublicKey`
[INFO] [stdout]     |
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]     |
[INFO] [stdout] 299 |                 signature.clone(), input.from_address.pubkey.inner.serialize().to_vec()
[INFO] [stdout]     |                                                              ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:281:25
[INFO] [stdout]     |
[INFO] [stdout] 281 |                 redeem: BitcoinApp::witness_redeem(&address.pubkey, config.network)
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]     |
[INFO] [stdout]     = help: within `bitcoin::Script`, the trait `Sized` is not implemented for `[u8]`, which is required by `bitcoin::Script: Sized`
[INFO] [stdout] note: required because it appears within the type `bitcoin::Script`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bitcoin-0.31.1/src/blockdata/script/borrowed.rs:73:12
[INFO] [stdout]     |
[INFO] [stdout] 73  | pub struct Script(pub(in crate::blockdata::script) [u8]);
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout]     = note: the return type of a function must have a statically known size
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0605]: non-primitive cast: `bitcoin::transaction::Version` as `u32`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:311:40
[INFO] [stdout]     |
[INFO] [stdout] 311 |         data.write_u32::<LittleEndian>(tx.version as u32)
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/emerald-hwkey-0.4.0/src/ledger/app_bitcoin.rs:400:44
[INFO] [stdout]      |
[INFO] [stdout] 400  |             data.write_u64::<LittleEndian>(output.value)
[INFO] [stdout]      |                  ------------------------- ^^^^^^^^^^^^ expected `u64`, found `Amount`
[INFO] [stdout]      |                  |
[INFO] [stdout]      |                  arguments to this method are incorrect
[INFO] [stdout]      |
[INFO] [stdout] note: method defined here
[INFO] [stdout]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/io.rs:1367:8
[INFO] [stdout]      |
[INFO] [stdout] 1367 |     fn write_u64<T: ByteOrder>(&mut self, n: u64) -> Result<()> {
[INFO] [stdout]      |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 18 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0432, E0433, E0599, E0605.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `emerald-hwkey` (lib) due to 19 previous errors
[INFO] running `Command { std: "docker" "inspect" "eef94296d9b9f2f146a7a13ab5b502bba7f5cd0fa125973281e0cbbbd744e885", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eef94296d9b9f2f146a7a13ab5b502bba7f5cd0fa125973281e0cbbbd744e885", kill_on_drop: false }`
[INFO] [stdout] eef94296d9b9f2f146a7a13ab5b502bba7f5cd0fa125973281e0cbbbd744e885
