[INFO] cloning repository https://github.com/teddy-commits/WEYRA [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/teddy-commits/WEYRA" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteddy-commits%2FWEYRA", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteddy-commits%2FWEYRA'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 14642ad5931dbe520741c838f380f3d01dc7a9e5 [INFO] testing teddy-commits/WEYRA against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteddy-commits%2FWEYRA" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/teddy-commits/WEYRA [INFO] finished tweaking git repo https://github.com/teddy-commits/WEYRA [INFO] tweaked toml for git repo https://github.com/teddy-commits/WEYRA written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/teddy-commits/WEYRA on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/teddy-commits/WEYRA 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc389afd0af335d4ed33c674ab388db3087bf0acab263888b15cfab5d7951427 [INFO] running `Command { std: "docker" "start" "-a" "fc389afd0af335d4ed33c674ab388db3087bf0acab263888b15cfab5d7951427", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc389afd0af335d4ed33c674ab388db3087bf0acab263888b15cfab5d7951427", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc389afd0af335d4ed33c674ab388db3087bf0acab263888b15cfab5d7951427", kill_on_drop: false }` [INFO] [stdout] fc389afd0af335d4ed33c674ab388db3087bf0acab263888b15cfab5d7951427 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ba1335bc6d1ab487c0fd030c11c1e559eb7819d1c599fc8a472a41b31e0994e [INFO] running `Command { std: "docker" "start" "-a" "1ba1335bc6d1ab487c0fd030c11c1e559eb7819d1c599fc8a472a41b31e0994e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling data-encoding v2.10.0 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling unsigned-varint v0.8.0 [INFO] [stderr] Compiling const-str v0.4.3 [INFO] [stderr] Compiling quick-protobuf v0.8.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling base-x v0.2.11 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling unsigned-varint v0.7.2 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling web-time v1.1.0 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling libm v0.2.16 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling base64ct v1.8.3 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling pest v2.8.6 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling snow v0.9.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling openssl-probe v0.2.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling socket2 v0.6.2 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling rand_core v0.9.5 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling num-bigint-dig v0.8.6 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling regex-syntax v0.8.9 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling is-terminal v0.4.17 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling humantime v2.3.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling pest_meta v2.8.6 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling pest_generator v2.8.6 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zeroize_derive v1.4.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling match-lookup v0.1.2 [INFO] [stderr] Compiling data-encoding-macro-internal v0.1.17 [INFO] [stderr] Compiling libp2p-swarm-derive v0.34.2 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling netlink-packet-utils v0.5.2 [INFO] [stderr] Compiling data-encoding-macro v0.1.19 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling base256emoji v1.0.2 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling multibase v0.9.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling netlink-packet-core v0.7.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling netlink-packet-route v0.17.1 [INFO] [stderr] Compiling axum-core v0.5.6 [INFO] [stderr] Compiling pest_derive v2.8.6 [INFO] [stderr] Compiling ed25519-dalek v2.2.0 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling axum-macros v0.5.0 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling multihash v0.19.3 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling cbor4ii v0.3.3 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling libp2p-identity v0.2.13 [INFO] [stderr] Compiling rsa v0.9.10 [INFO] [stderr] Compiling handlebars v4.5.0 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling futures-bounded v0.2.4 [INFO] [stderr] Compiling asynchronous-codec v0.7.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling multistream-select v0.13.0 [INFO] [stderr] Compiling rw-stream-sink v0.4.0 [INFO] [stderr] Compiling yamux v0.12.1 [INFO] [stderr] Compiling yamux v0.13.8 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling netlink-sys v0.8.8 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling netlink-proto v0.11.5 [INFO] [stderr] Compiling multiaddr v0.18.2 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling rtnetlink v0.13.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling libp2p-core v0.41.3 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling axum v0.8.8 [INFO] [stderr] Compiling if-watch v3.2.1 [INFO] [stderr] Compiling libp2p-swarm v0.44.2 [INFO] [stderr] Compiling libp2p-noise v0.44.0 [INFO] [stderr] Compiling libp2p-yamux v0.45.2 [INFO] [stderr] Compiling libp2p-tcp v0.41.0 [INFO] [stderr] Compiling libp2p-connection-limits v0.3.1 [INFO] [stderr] Compiling libp2p-allow-block-list v0.3.0 [INFO] [stderr] Compiling libp2p-request-response v0.26.3 [INFO] [stderr] Compiling libp2p-mdns v0.45.1 [INFO] [stderr] Compiling libp2p v0.53.2 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling warp v0.3.7 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling weyra v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/wallet.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | base64::encode(signature) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/wallet.rs:91:39 [INFO] [stdout] | [INFO] [stdout] 91 | let signature = match base64::decode(signature_str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut node = BlockchainNode::new(4, 100.0); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_transaction` is never used [INFO] [stdout] --> src/block.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Block { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn verify_transaction(&self, tx_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_chain_valid` and `verify_transaction_in_block` are never used [INFO] [stdout] --> src/blockchain.rs:283:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn is_chain_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | pub fn verify_transaction_in_block(&self, block_index: usize, tx_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate_proof`, `find_proof`, and `verify_proof` are never used [INFO] [stdout] --> src/merkle_tree.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MerkleTree { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn generate_proof(&self, leaf_hash: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn find_proof( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn verify_proof(leaf_hash: &str, proof: Vec<(String, bool)>, root_hash: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id` and `event_sender` are never read [INFO] [stdout] --> src/network.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct P2PNetwork { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 66 | pub swarm: Swarm, [INFO] [stdout] 67 | pub peer_id: PeerId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub event_sender: mpsc::UnboundedSender, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NewPeer`, `PeerDisconnected`, `NewBlock`, `NewTransaction`, and `SyncRequest` are never constructed [INFO] [stdout] --> src/network.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub enum NetworkEvent { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 75 | NewPeer(PeerId), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 76 | PeerDisconnected(PeerId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 77 | NewBlock(Block), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 78 | NewTransaction(UTXOTransaction), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 79 | SyncRequest(PeerId, u64, u64), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `process_events` is never used [INFO] [stdout] --> src/node.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl BlockchainNode { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | pub async fn process_events(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `target_peg`, `source`, and `last_update` are never read [INFO] [stdout] --> src/oracle.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PriceOracle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | pub current_price: Arc>, [INFO] [stdout] 9 | pub target_peg: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | pub source: OracleSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub last_update: Arc>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceOracle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Chainlink`, `Manual`, and `Aggregated` are never constructed [INFO] [stdout] --> src/oracle.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum OracleSource { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 16 | CoinGecko, [INFO] [stdout] 17 | Chainlink, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | Manual(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | Aggregated, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OracleSource` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/oracle.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl PriceOracle { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn with_source(target_peg: f64, source: OracleSource) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub async fn start_price_feed(oracle: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub async fn fetch_price(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | async fn fetch_from_coingecko(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | async fn fetch_from_chainlink(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | async fn fetch_aggregated_price( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn get_price_deviation(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn needs_stabilization(&self, threshold: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn get_stabilization_direction(&self) -> StabilizationDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn calculate_mint_amount(&self, total_supply: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn calculate_burn_amount(&self, total_supply: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StabilizationDirection` is never used [INFO] [stdout] --> src/oracle.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 164 | pub enum StabilizationDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StabilityPool` is never constructed [INFO] [stdout] --> src/oracle.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct StabilityPool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `can_mint`, `mint`, and `burn` are never used [INFO] [stdout] --> src/oracle.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 176 | impl StabilityPool { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 177 | pub fn new(initial_weyra: f64, initial_collateral: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn can_mint(&self, amount: f64, collateral_value: f64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn mint(&mut self, amount: f64, collateral_added: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn burn(&mut self, amount: f64) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate_chain` is never used [INFO] [stdout] --> src/proof_of_work.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ProofOfWork { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn validate_chain(&self, blocks: &[Block]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_merkle_root` is never used [INFO] [stdout] --> src/utils.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn calculate_merkle_root(hashes: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sha256_hash` is never used [INFO] [stdout] --> src/utils.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn sha256_hash(data: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_balance` is never used [INFO] [stdout] --> src/wallet.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 180 | impl UTXOPool { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 206 | pub fn get_balance(&self, address: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 06s [INFO] running `Command { std: "docker" "inspect" "1ba1335bc6d1ab487c0fd030c11c1e559eb7819d1c599fc8a472a41b31e0994e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ba1335bc6d1ab487c0fd030c11c1e559eb7819d1c599fc8a472a41b31e0994e", kill_on_drop: false }` [INFO] [stdout] 1ba1335bc6d1ab487c0fd030c11c1e559eb7819d1c599fc8a472a41b31e0994e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7f315bf1bd905b4f5cf8cb7fd5f5043ce3a3606a5d1cd6d4e5c59df43e7927a3 [INFO] running `Command { std: "docker" "start" "-a" "7f315bf1bd905b4f5cf8cb7fd5f5043ce3a3606a5d1cd6d4e5c59df43e7927a3", kill_on_drop: false }` [INFO] [stderr] Compiling weyra v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/wallet.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | base64::encode(signature) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/wallet.rs:91:39 [INFO] [stdout] | [INFO] [stdout] 91 | let signature = match base64::decode(signature_str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut node = BlockchainNode::new(4, 100.0); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_transaction` is never used [INFO] [stdout] --> src/block.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Block { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn verify_transaction(&self, tx_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_chain_valid` and `verify_transaction_in_block` are never used [INFO] [stdout] --> src/blockchain.rs:283:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn is_chain_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | pub fn verify_transaction_in_block(&self, block_index: usize, tx_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate_proof`, `find_proof`, and `verify_proof` are never used [INFO] [stdout] --> src/merkle_tree.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MerkleTree { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn generate_proof(&self, leaf_hash: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn find_proof( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn verify_proof(leaf_hash: &str, proof: Vec<(String, bool)>, root_hash: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id` and `event_sender` are never read [INFO] [stdout] --> src/network.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct P2PNetwork { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 66 | pub swarm: Swarm, [INFO] [stdout] 67 | pub peer_id: PeerId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub event_sender: mpsc::UnboundedSender, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NewPeer`, `PeerDisconnected`, `NewBlock`, `NewTransaction`, and `SyncRequest` are never constructed [INFO] [stdout] --> src/network.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub enum NetworkEvent { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 75 | NewPeer(PeerId), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 76 | PeerDisconnected(PeerId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 77 | NewBlock(Block), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 78 | NewTransaction(UTXOTransaction), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 79 | SyncRequest(PeerId, u64, u64), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `process_events` is never used [INFO] [stdout] --> src/node.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl BlockchainNode { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | pub async fn process_events(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `source` and `last_update` are never read [INFO] [stdout] --> src/oracle.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PriceOracle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub source: OracleSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub last_update: Arc>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceOracle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Chainlink`, `Manual`, and `Aggregated` are never constructed [INFO] [stdout] --> src/oracle.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum OracleSource { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 16 | CoinGecko, [INFO] [stdout] 17 | Chainlink, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | Manual(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | Aggregated, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OracleSource` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/oracle.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl PriceOracle { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn with_source(target_peg: f64, source: OracleSource) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub async fn start_price_feed(oracle: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub async fn fetch_price(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | async fn fetch_from_coingecko(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | async fn fetch_from_chainlink(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | async fn fetch_aggregated_price( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn calculate_mint_amount(&self, total_supply: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn calculate_burn_amount(&self, total_supply: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate_chain` is never used [INFO] [stdout] --> src/proof_of_work.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ProofOfWork { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn validate_chain(&self, blocks: &[Block]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_merkle_root` is never used [INFO] [stdout] --> src/utils.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn calculate_merkle_root(hashes: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sha256_hash` is never used [INFO] [stdout] --> src/utils.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn sha256_hash(data: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_balance` is never used [INFO] [stdout] --> src/wallet.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 180 | impl UTXOPool { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 206 | pub fn get_balance(&self, address: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.95s [INFO] running `Command { std: "docker" "inspect" "7f315bf1bd905b4f5cf8cb7fd5f5043ce3a3606a5d1cd6d4e5c59df43e7927a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f315bf1bd905b4f5cf8cb7fd5f5043ce3a3606a5d1cd6d4e5c59df43e7927a3", kill_on_drop: false }` [INFO] [stdout] 7f315bf1bd905b4f5cf8cb7fd5f5043ce3a3606a5d1cd6d4e5c59df43e7927a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8749bb3708276bef538f3abf850458ceca25788b10f7391787ac5d4df405c319 [INFO] running `Command { std: "docker" "start" "-a" "8749bb3708276bef538f3abf850458ceca25788b10f7391787ac5d4df405c319", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stderr] --> src/wallet.rs:82:17 [INFO] [stderr] | [INFO] [stderr] 82 | base64::encode(signature) [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stderr] --> src/wallet.rs:91:39 [INFO] [stderr] | [INFO] [stderr] 91 | let signature = match base64::decode(signature_str) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:29:13 [INFO] [stderr] | [INFO] [stderr] 29 | let mut node = BlockchainNode::new(4, 100.0); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `verify_transaction` is never used [INFO] [stderr] --> src/block.rs:74:12 [INFO] [stderr] | [INFO] [stderr] 19 | impl Block { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 74 | pub fn verify_transaction(&self, tx_id: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `is_chain_valid` and `verify_transaction_in_block` are never used [INFO] [stderr] --> src/blockchain.rs:283:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl Blockchain { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 283 | pub fn is_chain_valid(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 310 | pub fn verify_transaction_in_block(&self, block_index: usize, tx_id: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `generate_proof`, `find_proof`, and `verify_proof` are never used [INFO] [stderr] --> src/merkle_tree.rs:93:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl MerkleTree { [INFO] [stderr] | --------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 93 | pub fn generate_proof(&self, leaf_hash: &str) -> Option> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 106 | fn find_proof( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 137 | pub fn verify_proof(leaf_hash: &str, proof: Vec<(String, bool)>, root_hash: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `peer_id` and `event_sender` are never read [INFO] [stderr] --> src/network.rs:67:9 [INFO] [stderr] | [INFO] [stderr] 65 | pub struct P2PNetwork { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] 66 | pub swarm: Swarm, [INFO] [stderr] 67 | pub peer_id: PeerId, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 70 | pub event_sender: mpsc::UnboundedSender, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `NewPeer`, `PeerDisconnected`, `NewBlock`, `NewTransaction`, and `SyncRequest` are never constructed [INFO] [stderr] --> src/network.rs:75:5 [INFO] [stderr] | [INFO] [stderr] 74 | pub enum NetworkEvent { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] 75 | NewPeer(PeerId), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 76 | PeerDisconnected(PeerId), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 77 | NewBlock(Block), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 78 | NewTransaction(UTXOTransaction), [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 79 | SyncRequest(PeerId, u64, u64), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `NetworkEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `process_events` is never used [INFO] [stderr] --> src/node.rs:145:18 [INFO] [stderr] | [INFO] [stderr] 17 | impl BlockchainNode { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 145 | pub async fn process_events(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `source` and `last_update` are never read [INFO] [stderr] --> src/oracle.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct PriceOracle { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 10 | pub source: OracleSource, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 11 | pub last_update: Arc>, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PriceOracle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `Chainlink`, `Manual`, and `Aggregated` are never constructed [INFO] [stderr] --> src/oracle.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 15 | pub enum OracleSource { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] 16 | CoinGecko, [INFO] [stderr] 17 | Chainlink, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 18 | Manual(f64), [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 19 | Aggregated, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OracleSource` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/oracle.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 22 | impl PriceOracle { [INFO] [stderr] | ---------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn with_source(target_peg: f64, source: OracleSource) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 46 | pub async fn start_price_feed(oracle: Arc) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 73 | pub async fn fetch_price(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 82 | async fn fetch_from_coingecko(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | async fn fetch_from_chainlink(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | async fn fetch_aggregated_price( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 142 | pub fn calculate_mint_amount(&self, total_supply: f64) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 152 | pub fn calculate_burn_amount(&self, total_supply: f64) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `validate_chain` is never used [INFO] [stderr] --> src/proof_of_work.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 8 | impl ProofOfWork { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 18 | pub fn validate_chain(&self, blocks: &[Block]) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `calculate_merkle_root` is never used [INFO] [stderr] --> src/utils.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn calculate_merkle_root(hashes: Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `sha256_hash` is never used [INFO] [stderr] --> src/utils.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn sha256_hash(data: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_balance` is never used [INFO] [stderr] --> src/wallet.rs:206:12 [INFO] [stderr] | [INFO] [stderr] 180 | impl UTXOPool { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 206 | pub fn get_balance(&self, address: &str) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `weyra` (bin "weyra" test) generated 16 warnings (run `cargo fix --bin "weyra" -p weyra --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.53s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/weyra-e21eef655fb1df6f) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test oracle::tests::test_stabilization_direction ... ok [INFO] [stdout] test oracle::tests::test_stability_pool ... ok [INFO] [stdout] test oracle::tests::test_price_oracle ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8749bb3708276bef538f3abf850458ceca25788b10f7391787ac5d4df405c319", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8749bb3708276bef538f3abf850458ceca25788b10f7391787ac5d4df405c319", kill_on_drop: false }` [INFO] [stdout] 8749bb3708276bef538f3abf850458ceca25788b10f7391787ac5d4df405c319