[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#a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 for pr-145770 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchinaxxren%2Frust-btc" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-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-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chinaxxren/rust-btc on toolchain a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "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" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aa1a2c4e1fce36543689d8240e078248700e45f80aa4a025c42e16e14e038430 [INFO] running `Command { std: "docker" "start" "-a" "aa1a2c4e1fce36543689d8240e078248700e45f80aa4a025c42e16e14e038430", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aa1a2c4e1fce36543689d8240e078248700e45f80aa4a025c42e16e14e038430", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa1a2c4e1fce36543689d8240e078248700e45f80aa4a025c42e16e14e038430", kill_on_drop: false }` [INFO] [stdout] aa1a2c4e1fce36543689d8240e078248700e45f80aa4a025c42e16e14e038430 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] add3e6d28a126b416a3d05f6f9d101343e7ff76ac2b636de336eeaf5fc00435c [INFO] running `Command { std: "docker" "start" "-a" "add3e6d28a126b416a3d05f6f9d101343e7ff76ac2b636de336eeaf5fc00435c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.165 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling cc v1.2.1 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking allocator-api2 v0.2.20 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking cpufeatures v0.2.16 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking bytes v1.8.0 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking fastrand v2.2.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling secp256k1-sys v0.8.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Checking tempfile v3.14.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking ripemd v0.1.3 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking tokio v1.41.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking tracing v0.1.40 [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 dashmap v5.5.3 [INFO] [stderr] Checking lru v0.11.1 [INFO] [stderr] Checking secp256k1 v0.27.0 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking rust-btc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `Wallet` in this scope [INFO] [stdout] --> src/utxo.rs:293:39 [INFO] [stdout] | [INFO] [stdout] 293 | fn create_test_wallet() -> Result { [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]: failed to resolve: use of undeclared type `Wallet` [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)]` 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] 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>>, [INFO] [stdout] 18 | storage: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | listen_addr: SocketAddr, [INFO] [stdout] 20 | message_receiver: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | message_sender: mpsc::Sender, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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] 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] Some errors have detailed explanations: E0063, E0382, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [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)]` on by default [INFO] [stdout] [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "add3e6d28a126b416a3d05f6f9d101343e7ff76ac2b636de336eeaf5fc00435c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "add3e6d28a126b416a3d05f6f9d101343e7ff76ac2b636de336eeaf5fc00435c", kill_on_drop: false }` [INFO] [stdout] add3e6d28a126b416a3d05f6f9d101343e7ff76ac2b636de336eeaf5fc00435c