[INFO] cloning repository https://github.com/rvst312/rust-btc-wallet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rvst312/rust-btc-wallet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frvst312%2Frust-btc-wallet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frvst312%2Frust-btc-wallet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9ab72bba6ddff12f72a504b0113e57fabf3876b1 [INFO] testing rvst312/rust-btc-wallet against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frvst312%2Frust-btc-wallet" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rvst312/rust-btc-wallet [INFO] finished tweaking git repo https://github.com/rvst312/rust-btc-wallet [INFO] tweaked toml for git repo https://github.com/rvst312/rust-btc-wallet written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rvst312/rust-btc-wallet on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rvst312/rust-btc-wallet 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing rvst312/rust-btc-wallet against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frvst312%2Frust-btc-wallet" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rvst312/rust-btc-wallet [INFO] finished tweaking git repo https://github.com/rvst312/rust-btc-wallet [INFO] tweaked toml for git repo https://github.com/rvst312/rust-btc-wallet written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rvst312/rust-btc-wallet on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rvst312/rust-btc-wallet 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded litemap v0.7.3 [INFO] [stderr] Downloaded zerofrom v0.1.4 [INFO] [stderr] Downloaded zerofrom-derive v0.1.4 [INFO] [stderr] Downloaded yoke-derive v0.7.4 [INFO] [stderr] Downloaded yoke v0.7.4 [INFO] [stderr] Downloaded bech32 v0.8.1 [INFO] [stderr] Downloaded secp256k1 v0.23.5 [INFO] [stderr] Downloaded bitcoin_hashes v0.10.0 [INFO] [stderr] Downloaded secp256k1 v0.20.3 [INFO] [stderr] Downloaded url v2.5.3 [INFO] [stderr] Downloaded rustix v0.38.39 [INFO] [stderr] Downloaded secp256k1-sys v0.4.2 [INFO] [stderr] Downloaded bitcoin v0.27.1 [INFO] [stderr] Downloaded secp256k1-sys v0.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c58bb2a98b26aa9f55134658f9a7a47740fd4ebdcf8284671b4738e360fe74e1 [INFO] running `Command { std: "docker" "start" "-a" "c58bb2a98b26aa9f55134658f9a7a47740fd4ebdcf8284671b4738e360fe74e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c58bb2a98b26aa9f55134658f9a7a47740fd4ebdcf8284671b4738e360fe74e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c58bb2a98b26aa9f55134658f9a7a47740fd4ebdcf8284671b4738e360fe74e1", kill_on_drop: false }` [INFO] [stdout] c58bb2a98b26aa9f55134658f9a7a47740fd4ebdcf8284671b4738e360fe74e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19d5ebfa4c50160f1cebd6ece4af620c48d34df0b9a489044083f7158c4df2d8 [INFO] running `Command { std: "docker" "start" "-a" "19d5ebfa4c50160f1cebd6ece4af620c48d34df0b9a489044083f7158c4df2d8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling litemap v0.7.3 [INFO] [stderr] Compiling bytes v1.8.0 [INFO] [stderr] Compiling cc v1.1.36 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling hashbrown v0.15.1 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling bitcoin_hashes v0.10.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling bech32 v0.8.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling tokio v1.41.0 [INFO] [stderr] Compiling secp256k1-sys v0.4.2 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling secp256k1 v0.20.3 [INFO] [stderr] Compiling bitcoin v0.27.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling zerofrom v0.1.4 [INFO] [stderr] Compiling yoke v0.7.4 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling secp256k1 v0.23.5 [INFO] [stderr] Compiling hyper v0.14.31 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.3 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling bitcoin_wallet v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::rngs::OsRng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/main.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 39 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `json` found for struct `reqwest::Response` in the current scope [INFO] [stdout] --> src/main.rs:32:46 [INFO] [stdout] | [INFO] [stdout] 32 | let response = reqwest::get(&url).await?.json::>().await?; [INFO] [stdout] | ^^^^ method not found in `reqwest::Response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `secp256k1::SecretKey` in the current scope [INFO] [stdout] --> src/main.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | let secret_key = SecretKey::new(&mut rng); [INFO] [stdout] | ^^^ function or associated item not found in `secp256k1::SecretKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `secp256k1::SecretKey` consider using one of the following associated functions: [INFO] [stdout] secp256k1::SecretKey::from_slice [INFO] [stdout] secp256k1::SecretKey::from_keypair [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/secp256k1-0.23.5/src/key.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn from_slice(data: &[u8])-> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn from_keypair(keypair: &KeyPair) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is a method `ne` with a similar name [INFO] [stdout] | [INFO] [stdout] 18 - let secret_key = SecretKey::new(&mut rng); [INFO] [stdout] 18 + let secret_key = SecretKey::ne(&mut rng); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | let pubkey = private_key.public_key(&secp); [INFO] [stdout] | ---------- ^^^^^ expected `&Secp256k1<_>`, found `&Secp256k1` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `secp256k1` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/secp256k1-0.23.5/src/lib.rs:396:1 [INFO] [stdout] | [INFO] [stdout] 396 | pub struct Secp256k1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `secp256k1::Secp256k1` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/secp256k1-0.20.3/src/lib.rs:564:1 [INFO] [stdout] | [INFO] [stdout] 564 | pub struct Secp256k1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `bitcoin::secp256k1::Secp256k1` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use secp256k1::{Secp256k1, SecretKey}; [INFO] [stdout] | --------- one version of crate `secp256k1` used here, as a direct dependency of the current crate [INFO] [stdout] 2 | use rand::rngs::OsRng; [INFO] [stdout] 3 | use bitcoin::util::key::PrivateKey; [INFO] [stdout] | ------- one version of crate `secp256k1` used here, as a dependency of crate `bitcoin` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bitcoin-0.27.1/src/util/ecdsa.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn public_key(&self, secp: &Secp256k1) -> PublicKey { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0599, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bitcoin_wallet` (bin "bitcoin_wallet") due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "19d5ebfa4c50160f1cebd6ece4af620c48d34df0b9a489044083f7158c4df2d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19d5ebfa4c50160f1cebd6ece4af620c48d34df0b9a489044083f7158c4df2d8", kill_on_drop: false }` [INFO] [stdout] 19d5ebfa4c50160f1cebd6ece4af620c48d34df0b9a489044083f7158c4df2d8