[INFO] cloning repository https://github.com/chinaxxren/rust-btc
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chinaxxren/rust-btc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchinaxxren%2Frust-btc", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchinaxxren%2Frust-btc'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d145b872b7ece2405c71ab2792a0aad40d1408d4
[INFO] checking chinaxxren/rust-btc against try#4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7 for pr-158816
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchinaxxren%2Frust-btc" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/chinaxxren/rust-btc
[INFO] finished tweaking git repo https://github.com/chinaxxren/rust-btc
[INFO] tweaked toml for git repo https://github.com/chinaxxren/rust-btc written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/chinaxxren/rust-btc on toolchain 4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/chinaxxren/rust-btc 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" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "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 secp256k1 v0.27.0
[INFO] [stderr]   Downloaded lru v0.11.1
[INFO] [stderr]   Downloaded allocator-api2 v0.2.20
[INFO] [stderr]   Downloaded rustix v0.38.41
[INFO] [stderr]   Downloaded secp256k1-sys v0.8.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 1da9f17d85dc2d82c4e2a8562215634fcca54ba33159616bfb976c566078a78f
[INFO] running `Command { std: "docker" "start" "1da9f17d85dc2d82c4e2a8562215634fcca54ba33159616bfb976c566078a78f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1da9f17d85dc2d82c4e2a8562215634fcca54ba33159616bfb976c566078a78f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1da9f17d85dc2d82c4e2a8562215634fcca54ba33159616bfb976c566078a78f" "/opt/rustwide/cargo-home/bin/cargo" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1da9f17d85dc2d82c4e2a8562215634fcca54ba33159616bfb976c566078a78f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1da9f17d85dc2d82c4e2a8562215634fcca54ba33159616bfb976c566078a78f" "/opt/rustwide/cargo-home/bin/cargo" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling typenum v1.17.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.20
[INFO] [stderr]    Compiling ahash v0.8.11
[INFO] [stderr]     Checking tracing-core v0.1.33
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling secp256k1-sys v0.8.1
[INFO] [stderr]     Checking allocator-api2 v0.2.20
[INFO] [stderr]    Compiling rustix v0.38.41
[INFO] [stderr]    Compiling ring v0.17.8
[INFO] [stderr]    Compiling syn v2.0.89
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]     Checking parking_lot_core v0.8.6
[INFO] [stderr]     Checking time v0.3.36
[INFO] [stderr]     Checking fs2 v0.4.3
[INFO] [stderr]     Checking thread_local v1.1.8
[INFO] [stderr]     Checking either v1.13.0
[INFO] [stderr]     Checking cpufeatures v0.2.16
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking fastrand v2.2.0
[INFO] [stderr]     Checking bs58 v0.5.1
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]     Checking crossbeam-deque v0.8.5
[INFO] [stderr]     Checking sled v0.34.7
[INFO] [stderr]     Checking chrono v0.4.38
[INFO] [stderr]     Checking rayon-core v1.12.1
[INFO] [stderr]     Checking generic-array v0.14.7
[INFO] [stderr]     Checking tracing-subscriber v0.3.18
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking rayon v1.10.0
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking sha2 v0.10.8
[INFO] [stderr]     Checking ripemd v0.1.3
[INFO] [stderr]     Checking tempfile v3.14.0
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling serde_derive v1.0.215
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.28
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking tokio v1.41.1
[INFO] [stderr]     Checking zerocopy v0.7.35
[INFO] [stderr]     Checking tracing v0.1.40
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking ppv-lite86 v0.2.20
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking lru v0.11.1
[INFO] [stderr]     Checking dashmap v5.5.3
[INFO] [stderr]     Checking secp256k1 v0.27.0
[INFO] [stderr]     Checking serde v1.0.215
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking serde_json v1.0.133
[INFO] [stderr]     Checking rust-btc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find type `Wallet` in this scope
[INFO] [stdout]    --> src/utxo.rs:293:39
[INFO] [stdout]     |
[INFO] [stdout] 293 |     fn create_test_wallet() -> Result<Wallet> {
[INFO] [stdout]     |                                       ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct through its public re-export
[INFO] [stdout]     |
[INFO] [stdout] 291 +     use crate::Wallet;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Wallet` in this scope
[INFO] [stdout]    --> src/utxo.rs:294:9
[INFO] [stdout]     |
[INFO] [stdout] 294 |         Wallet::new()
[INFO] [stdout]     |         ^^^^^^ use of undeclared type `Wallet`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct through its public re-export
[INFO] [stdout]     |
[INFO] [stdout] 291 +     use crate::Wallet;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]   --> src/db.rs:90:9
[INFO] [stdout]    |
[INFO] [stdout] 90 |     use std::fs;
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing fields `hash` and `height` in initializer of `block::Block`
[INFO] [stdout]    --> src/storage.rs:116:21
[INFO] [stdout]     |
[INFO] [stdout] 116 |         let block = Block {
[INFO] [stdout]     |                     ^^^^^ missing `hash` and `height`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `coinbase`
[INFO] [stdout]    --> src/block.rs:264:61
[INFO] [stdout]     |
[INFO] [stdout] 254 |         let coinbase = Transaction::new_coinbase(&address, "Test Block")?;
[INFO] [stdout]     |             -------- move occurs because `coinbase` has type `transaction::Transaction`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 262 |             transactions: vec![coinbase],
[INFO] [stdout]     |                                -------- value moved here
[INFO] [stdout] 263 |             prev_block_hash: prev_hash.to_string(),
[INFO] [stdout] 264 |             merkle_root: Block::calculate_merkle_root(&vec![coinbase])?,
[INFO] [stdout]     |                                                             ^^^^^^^^ value used here after move
[INFO] [stdout]     |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]     |
[INFO] [stdout] 262 |             transactions: vec![coinbase.clone()],
[INFO] [stdout]     |                                        ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `storage`, `message_receiver`, and `message_sender` are never read
[INFO] [stdout]   --> src/network/p2p.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct P2PNetwork {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] 17 |     peers: Arc<RwLock<HashMap<SocketAddr, Peer>>>,
[INFO] [stdout] 18 |     storage: Arc<Storage>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 19 |     listen_addr: SocketAddr,
[INFO] [stdout] 20 |     message_receiver: Arc<Mutex<mpsc::Receiver<Message>>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 21 |     message_sender: mpsc::Sender<Message>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `maintain_peers` is never used
[INFO] [stdout]   --> src/network/p2p.rs:77:14
[INFO] [stdout]    |
[INFO] [stdout] 24 | impl P2PNetwork {
[INFO] [stdout]    | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 77 |     async fn maintain_peers(&self) {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0063, E0382, E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0063`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-btc` (lib test) due to 4 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: function `test_p2p_network` is never used
[INFO] [stdout]   --> src/main.rs:26:10
[INFO] [stdout]    |
[INFO] [stdout] 26 | async fn test_p2p_network() -> Result<()> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_p2p_network` is never used
[INFO] [stdout]   --> src/main.rs:26:10
[INFO] [stdout]    |
[INFO] [stdout] 26 | async fn test_p2p_network() -> Result<()> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "1da9f17d85dc2d82c4e2a8562215634fcca54ba33159616bfb976c566078a78f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1da9f17d85dc2d82c4e2a8562215634fcca54ba33159616bfb976c566078a78f", kill_on_drop: false }`
[INFO] [stdout] 1da9f17d85dc2d82c4e2a8562215634fcca54ba33159616bfb976c566078a78f
