[INFO] cloning repository https://github.com/robertolima-dev/rust_blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/robertolima-dev/rust_blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobertolima-dev%2Frust_blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobertolima-dev%2Frust_blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f4da873087e658c406ee7943c4293e526e1b5a2 [INFO] testing robertolima-dev/rust_blockchain against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobertolima-dev%2Frust_blockchain" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/robertolima-dev/rust_blockchain [INFO] finished tweaking git repo https://github.com/robertolima-dev/rust_blockchain [INFO] tweaked toml for git repo https://github.com/robertolima-dev/rust_blockchain written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/robertolima-dev/rust_blockchain on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/robertolima-dev/rust_blockchain 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uuid v1.18.0 [INFO] [stderr] Downloaded env_logger v0.11.8 [INFO] [stderr] Downloaded cc v1.2.32 [INFO] [stderr] Downloaded secp256k1 v0.28.2 [INFO] [stderr] Downloaded actix-http v3.11.0 [INFO] [stderr] Downloaded secp256k1-sys v0.9.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d70fa3e66f48dced503bbd23ab11d14011f29020ae895130a736d8f2c5b785c0 [INFO] running `Command { std: "docker" "start" "-a" "d70fa3e66f48dced503bbd23ab11d14011f29020ae895130a736d8f2c5b785c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d70fa3e66f48dced503bbd23ab11d14011f29020ae895130a736d8f2c5b785c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d70fa3e66f48dced503bbd23ab11d14011f29020ae895130a736d8f2c5b785c0", kill_on_drop: false }` [INFO] [stdout] d70fa3e66f48dced503bbd23ab11d14011f29020ae895130a736d8f2c5b785c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f4acc24aaddb2e0ea1b23a08d0df0da22d08d17439134bc74cc50de58c7d884d [INFO] running `Command { std: "docker" "start" "-a" "f4acc24aaddb2e0ea1b23a08d0df0da22d08d17439134bc74cc50de58c7d884d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling brotli v8.0.1 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling jiff v0.2.15 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling secp256k1-sys v0.9.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling secp256k1 v0.28.2 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling actix-http v3.11.0 [INFO] [stderr] Compiling actix-web v4.11.0 [INFO] [stderr] Compiling rust_blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Blockchain` and `DEFAULT_DIFFICULTY` [INFO] [stdout] --> src/api/chain.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | BASE_REWARD, Blockchain, DEFAULT_DIFFICULTY, MAX_BLOCK_BYTES, MAX_TXS_PER_BLOCK, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/api/chain.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OutPoint` and `TxInput` [INFO] [stdout] --> src/api/chain.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/api/tx.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TxInput` [INFO] [stdout] --> src/api/tx.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/wallet/mod.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use secp256k1::{Message, PublicKey, Secp256k1, SecretKey, ecdsa::Signature}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `secp256k1::Message::from_slice`: use from_digest_slice instead [INFO] [stdout] --> src/wallet/mod.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | let msg = Message::from_slice(&msg32).map_err(|_| "invalid message length")?; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/api/tx.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 168 | for (_i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BLOCK_BYTES` [INFO] [stdout] | [INFO] [stdout] 168 - for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] 168 + for (blockchain::MAX_BLOCK_BYTES, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Blockchain` and `DEFAULT_DIFFICULTY` [INFO] [stdout] --> src/api/chain.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | BASE_REWARD, Blockchain, DEFAULT_DIFFICULTY, MAX_BLOCK_BYTES, MAX_TXS_PER_BLOCK, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/api/chain.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OutPoint` and `TxInput` [INFO] [stdout] --> src/api/chain.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/api/tx.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TxInput` [INFO] [stdout] --> src/api/tx.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/wallet/mod.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use secp256k1::{Message, PublicKey, Secp256k1, SecretKey, ecdsa::Signature}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `secp256k1::Message::from_slice`: use from_digest_slice instead [INFO] [stdout] --> src/wallet/mod.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | let msg = Message::from_slice(&msg32).map_err(|_| "invalid message length")?; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/api/tx.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 168 | for (_i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BLOCK_BYTES` [INFO] [stdout] | [INFO] [stdout] 168 - for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] 168 + for (blockchain::MAX_BLOCK_BYTES, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `difficulty` and `miner_address` are never read [INFO] [stdout] --> src/api/models.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MiningTemplate { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub difficulty: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | pub miner_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MiningTemplate` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `contains` and `is_empty` are never used [INFO] [stdout] --> src/transaction/utxo.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl UtxoSet { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn contains(&self, outpoint: &OutPoint) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.45s [INFO] running `Command { std: "docker" "inspect" "f4acc24aaddb2e0ea1b23a08d0df0da22d08d17439134bc74cc50de58c7d884d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4acc24aaddb2e0ea1b23a08d0df0da22d08d17439134bc74cc50de58c7d884d", kill_on_drop: false }` [INFO] [stdout] f4acc24aaddb2e0ea1b23a08d0df0da22d08d17439134bc74cc50de58c7d884d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2cc187cc44f88ef1843f3cf2a33146d398ad481fd3b5b9a1f15bdb21fdf55c2e [INFO] running `Command { std: "docker" "start" "-a" "2cc187cc44f88ef1843f3cf2a33146d398ad481fd3b5b9a1f15bdb21fdf55c2e", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `Blockchain` and `DEFAULT_DIFFICULTY` [INFO] [stdout] --> src/api/chain.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | BASE_REWARD, Blockchain, DEFAULT_DIFFICULTY, MAX_BLOCK_BYTES, MAX_TXS_PER_BLOCK, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/api/chain.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OutPoint` and `TxInput` [INFO] [stdout] --> src/api/chain.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/api/tx.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TxInput` [INFO] [stdout] --> src/api/tx.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/wallet/mod.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use secp256k1::{Message, PublicKey, Secp256k1, SecretKey, ecdsa::Signature}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust_blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `secp256k1::Message::from_slice`: use from_digest_slice instead [INFO] [stdout] --> src/wallet/mod.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | let msg = Message::from_slice(&msg32).map_err(|_| "invalid message length")?; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/api/tx.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 168 | for (_i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BLOCK_BYTES` [INFO] [stdout] | [INFO] [stdout] 168 - for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] 168 + for (blockchain::MAX_BLOCK_BYTES, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Blockchain` and `DEFAULT_DIFFICULTY` [INFO] [stdout] --> src/api/chain.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | BASE_REWARD, Blockchain, DEFAULT_DIFFICULTY, MAX_BLOCK_BYTES, MAX_TXS_PER_BLOCK, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/api/chain.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OutPoint` and `TxInput` [INFO] [stdout] --> src/api/chain.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/api/tx.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TxInput` [INFO] [stdout] --> src/api/tx.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/wallet/mod.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use secp256k1::{Message, PublicKey, Secp256k1, SecretKey, ecdsa::Signature}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Blockchain` and `DEFAULT_DIFFICULTY` [INFO] [stdout] --> src/api/chain.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | BASE_REWARD, Blockchain, DEFAULT_DIFFICULTY, MAX_BLOCK_BYTES, MAX_TXS_PER_BLOCK, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/api/chain.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OutPoint` and `TxInput` [INFO] [stdout] --> src/api/chain.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/api/tx.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TxInput` [INFO] [stdout] --> src/api/tx.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/wallet/mod.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use secp256k1::{Message, PublicKey, Secp256k1, SecretKey, ecdsa::Signature}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `secp256k1::Message::from_slice`: use from_digest_slice instead [INFO] [stdout] --> src/wallet/mod.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | let msg = Message::from_slice(&msg32).map_err(|_| "invalid message length")?; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/api/tx.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 168 | for (_i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BLOCK_BYTES` [INFO] [stdout] | [INFO] [stdout] 168 - for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] 168 + for (blockchain::MAX_BLOCK_BYTES, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `secp256k1::Message::from_slice`: use from_digest_slice instead [INFO] [stdout] --> src/wallet/mod.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | let msg = Message::from_slice(&msg32).map_err(|_| "invalid message length")?; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/api/tx.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 168 | for (_i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BLOCK_BYTES` [INFO] [stdout] | [INFO] [stdout] 168 - for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] 168 + for (blockchain::MAX_BLOCK_BYTES, input) in tx.inputs.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `difficulty` and `miner_address` are never read [INFO] [stdout] --> src/api/models.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MiningTemplate { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub difficulty: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | pub miner_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MiningTemplate` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `contains` and `is_empty` are never used [INFO] [stdout] --> src/transaction/utxo.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl UtxoSet { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn contains(&self, outpoint: &OutPoint) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.52s [INFO] running `Command { std: "docker" "inspect" "2cc187cc44f88ef1843f3cf2a33146d398ad481fd3b5b9a1f15bdb21fdf55c2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cc187cc44f88ef1843f3cf2a33146d398ad481fd3b5b9a1f15bdb21fdf55c2e", kill_on_drop: false }` [INFO] [stdout] 2cc187cc44f88ef1843f3cf2a33146d398ad481fd3b5b9a1f15bdb21fdf55c2e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 16ee4875fc3b1db1e56d84e4b6579defe1ce2dcdb338cb71e4cfb5760baf53ed [INFO] running `Command { std: "docker" "start" "-a" "16ee4875fc3b1db1e56d84e4b6579defe1ce2dcdb338cb71e4cfb5760baf53ed", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Blockchain` and `DEFAULT_DIFFICULTY` [INFO] [stderr] --> src/api/chain.rs:2:18 [INFO] [stderr] | [INFO] [stderr] 2 | BASE_REWARD, Blockchain, DEFAULT_DIFFICULTY, MAX_BLOCK_BYTES, MAX_TXS_PER_BLOCK, [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `warn` [INFO] [stderr] --> src/api/chain.rs:5:24 [INFO] [stderr] | [INFO] [stderr] 5 | use log::{debug, info, warn}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `OutPoint` and `TxInput` [INFO] [stderr] --> src/api/chain.rs:12:26 [INFO] [stderr] | [INFO] [stderr] 12 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashSet` [INFO] [stderr] --> src/api/tx.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::collections::HashSet; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `TxInput` [INFO] [stderr] --> src/api/tx.rs:10:49 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `SecretKey` [INFO] [stderr] --> src/wallet/mod.rs:2:48 [INFO] [stderr] | [INFO] [stderr] 2 | use secp256k1::{Message, PublicKey, Secp256k1, SecretKey, ecdsa::Signature}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `secp256k1::Message::from_slice`: use from_digest_slice instead [INFO] [stderr] --> src/wallet/mod.rs:38:24 [INFO] [stderr] | [INFO] [stderr] 38 | let msg = Message::from_slice(&msg32).map_err(|_| "invalid message length")?; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/api/tx.rs:168:10 [INFO] [stderr] | [INFO] [stderr] 168 | for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 168 | for (_i, input) in tx.inputs.iter().enumerate() { [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `MAX_BLOCK_BYTES` [INFO] [stderr] | [INFO] [stderr] 168 - for (i, input) in tx.inputs.iter().enumerate() { [INFO] [stderr] 168 + for (blockchain::MAX_BLOCK_BYTES, input) in tx.inputs.iter().enumerate() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `rust_blockchain` (lib) generated 8 warnings (run `cargo fix --lib -p rust_blockchain` to apply 7 suggestions) [INFO] [stderr] warning: `rust_blockchain` (lib test) generated 8 warnings (8 duplicates) [INFO] [stderr] warning: fields `difficulty` and `miner_address` are never read [INFO] [stderr] --> src/api/models.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct MiningTemplate { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 13 | pub difficulty: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 14 | pub miner_address: String, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MiningTemplate` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `contains` and `is_empty` are never used [INFO] [stderr] --> src/transaction/utxo.rs:55:12 [INFO] [stderr] | [INFO] [stderr] 34 | impl UtxoSet { [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 55 | pub fn contains(&self, outpoint: &OutPoint) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | pub fn is_empty(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust_blockchain` (bin "rust_blockchain" test) generated 10 warnings (8 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_blockchain-2d8a46cd72fc283a) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test blockchain::block::tests::genesis_has_valid_hash ... ok [INFO] [stdout] test blockchain::block::tests::mining_produces_leading_zeros ... ok [INFO] [stdout] test blockchain::block::tests::invalid_when_mutated ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_blockchain-2013764e39d0faf9) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test blockchain::block::tests::genesis_has_valid_hash ... ok [INFO] [stdout] test blockchain::block::tests::mining_produces_leading_zeros ... ok [INFO] [stdout] test blockchain::block::tests::invalid_when_mutated ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] Doc-tests rust_blockchain [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "16ee4875fc3b1db1e56d84e4b6579defe1ce2dcdb338cb71e4cfb5760baf53ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16ee4875fc3b1db1e56d84e4b6579defe1ce2dcdb338cb71e4cfb5760baf53ed", kill_on_drop: false }` [INFO] [stdout] 16ee4875fc3b1db1e56d84e4b6579defe1ce2dcdb338cb71e4cfb5760baf53ed