[INFO] cloning repository https://github.com/687c/practical1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/687c/practical1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F687c%2Fpractical1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F687c%2Fpractical1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ee4598e750f8f99279d8fe8bc97c50244ba0a87c [INFO] testing 687c/practical1 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F687c%2Fpractical1" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/687c/practical1 [INFO] finished tweaking git repo https://github.com/687c/practical1 [INFO] tweaked toml for git repo https://github.com/687c/practical1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/687c/practical1 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/687c/practical1 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitcoin_hashes v0.11.0 [INFO] [stderr] Downloaded thiserror-impl v1.0.34 [INFO] [stderr] Downloaded base64ct v1.5.2 [INFO] [stderr] Downloaded thiserror v1.0.34 [INFO] [stderr] Downloaded anyhow v1.0.63 [INFO] [stderr] Downloaded secp256k1 v0.24.0 [INFO] [stderr] Downloaded secp256k1-sys v0.6.0 [INFO] [stderr] Downloaded sha2 v0.10.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 70dd6aed5e371e4173ee6ab4bd23001da7b95257a7cd814d4aeea4c9a7d8806d [INFO] running `Command { std: "docker" "start" "-a" "70dd6aed5e371e4173ee6ab4bd23001da7b95257a7cd814d4aeea4c9a7d8806d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "70dd6aed5e371e4173ee6ab4bd23001da7b95257a7cd814d4aeea4c9a7d8806d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70dd6aed5e371e4173ee6ab4bd23001da7b95257a7cd814d4aeea4c9a7d8806d", kill_on_drop: false }` [INFO] [stdout] 70dd6aed5e371e4173ee6ab4bd23001da7b95257a7cd814d4aeea4c9a7d8806d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] edc0999406f1c699ead47b4491829b663e90b7698952dba3ae778639dab41a0c [INFO] running `Command { std: "docker" "start" "-a" "edc0999406f1c699ead47b4491829b663e90b7698952dba3ae778639dab41a0c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling anyhow v1.0.63 [INFO] [stderr] Compiling bitcoin_hashes v0.11.0 [INFO] [stderr] Compiling cpufeatures v0.2.4 [INFO] [stderr] Compiling base64ct v1.5.2 [INFO] [stderr] Compiling thiserror-impl v1.0.34 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling secp256k1-sys v0.6.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling thiserror v1.0.34 [INFO] [stderr] Compiling sha2 v0.10.3 [INFO] [stderr] Compiling secp256k1 v0.24.0 [INFO] [stderr] Compiling practical1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/account.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Account { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 15 | pub fn gen_account() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn add_key_pair_to_wallet(&mut self, key_pair: KeyPair) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn airdrop_coins(&mut self, input: u128) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn create_payment_op( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn get_balance(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn print_balance(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn sign_data(&self, msg: String, index: usize) -> Signature { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/block.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` 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: associated functions `create_block` and `create_hash` are never used [INFO] [stdout] --> src/block.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Block { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 15 | pub fn create_block(set_of_tx: Vec, prev_hash: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn create_hash(t: &T) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blockchain` is never constructed [INFO] [stdout] --> src/blockchain.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Blockchain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blockchain` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init_blockchain`, `get_faucet_tokens`, `validate_block`, and `show_coin_db` are never used [INFO] [stdout] --> src/blockchain.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Blockchain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 16 | pub fn init_blockchain() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_faucet_tokens(&mut self, acc: &mut Account, amt: u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn validate_block(&mut self, block: &mut Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn show_coin_db(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hash` is never constructed [INFO] [stdout] --> src/hash.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Hash {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_sha256` is never used [INFO] [stdout] --> src/hash.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Hash { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 7 | fn to_sha256(message: String) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_key_pair`, `print_key_pair`, `save_key_to_file`, and `read_from_file` are never used [INFO] [stdout] --> src/keypair.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl KeyPair { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 16 | pub fn new_key_pair() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn print_key_pair(key_pair: &Self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn save_key_to_file(key_pair: &Self /* path: Path */) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn read_from_file(/* path: Path */) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Operation` is never constructed [INFO] [stdout] --> src/operation.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Operation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` 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: associated items `create_operation` and `verify_operation` are never used [INFO] [stdout] --> src/operation.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Operation { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 14 | pub fn create_operation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn verify_operation(self /*, operation: Operation */) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Signature` is never constructed [INFO] [stdout] --> src/signature.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Signature { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Signature` 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: associated functions `sign_data`, `verify_sig`, and `print_sig` are never used [INFO] [stdout] --> src/signature.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Signature { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 12 | pub fn sign_data(private_key: &SecretKey, message: String) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn verify_sig(sig: Signature, public_key: PublicKey, message: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn print_sig(sig: &Self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/tx.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` 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: associated functions `create_tx`, `calculate_hash`, and `gen_nonce` are never used [INFO] [stdout] --> src/tx.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Transaction { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 15 | pub fn create_tx(set_of_ops: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn calculate_hash(t: &T) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn gen_nonce() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.91s [INFO] running `Command { std: "docker" "inspect" "edc0999406f1c699ead47b4491829b663e90b7698952dba3ae778639dab41a0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edc0999406f1c699ead47b4491829b663e90b7698952dba3ae778639dab41a0c", kill_on_drop: false }` [INFO] [stdout] edc0999406f1c699ead47b4491829b663e90b7698952dba3ae778639dab41a0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 2d97f41fd50c076fe599966a7d1a5916b82e2be54595ba507d1d6f3628476bc2 [INFO] running `Command { std: "docker" "start" "-a" "2d97f41fd50c076fe599966a7d1a5916b82e2be54595ba507d1d6f3628476bc2", kill_on_drop: false }` [INFO] [stderr] Compiling practical1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `sig` [INFO] [stdout] --> src/operation.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | let sig = acc1.sign_data(comment.to_string(), 0); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sig` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_balance` is never used [INFO] [stdout] --> src/account.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Account { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn print_balance(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `print_key_pair`, `save_key_to_file`, and `read_from_file` are never used [INFO] [stdout] --> src/keypair.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl KeyPair { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn print_key_pair(key_pair: &Self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn save_key_to_file(key_pair: &Self /* path: Path */) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn read_from_file(/* path: Path */) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `print_sig` is never used [INFO] [stdout] --> src/signature.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Signature { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn print_sig(sig: &Self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/blockchain.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | init.show_coin_db(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 265 | let _ = init.show_coin_db(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.80s [INFO] running `Command { std: "docker" "inspect" "2d97f41fd50c076fe599966a7d1a5916b82e2be54595ba507d1d6f3628476bc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d97f41fd50c076fe599966a7d1a5916b82e2be54595ba507d1d6f3628476bc2", kill_on_drop: false }` [INFO] [stdout] 2d97f41fd50c076fe599966a7d1a5916b82e2be54595ba507d1d6f3628476bc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 156332844a8b8e00e34191ac52220c07cbadaf25001ecc3be0db61e813464bfa [INFO] running `Command { std: "docker" "start" "-a" "156332844a8b8e00e34191ac52220c07cbadaf25001ecc3be0db61e813464bfa", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `sig` [INFO] [stderr] --> src/operation.rs:95:13 [INFO] [stderr] | [INFO] [stderr] 95 | let sig = acc1.sign_data(comment.to_string(), 0); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_sig` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `print_balance` is never used [INFO] [stderr] --> src/account.rs:114:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl Account { [INFO] [stderr] | ------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 114 | pub fn print_balance(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated functions `print_key_pair`, `save_key_to_file`, and `read_from_file` are never used [INFO] [stderr] --> src/keypair.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl KeyPair { [INFO] [stderr] | ------------ associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 30 | pub fn print_key_pair(key_pair: &Self) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | pub fn save_key_to_file(key_pair: &Self /* path: Path */) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 53 | pub fn read_from_file(/* path: Path */) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `print_sig` is never used [INFO] [stderr] --> src/signature.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl Signature { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 38 | pub fn print_sig(sig: &Self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/blockchain.rs:265:9 [INFO] [stderr] | [INFO] [stderr] 265 | init.show_coin_db(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 265 | let _ = init.show_coin_db(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `practical1` (bin "practical1" test) generated 5 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/practical1-22ec2f1b915715c5) [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test account::tests::test_sign_data ... ignored, Test when generated keys are saved permanently [INFO] [stdout] test account::tests::add_keys_to_wallet ... ok [INFO] [stdout] test block::tests::test_block_creation ... ok [INFO] [stdout] test blockchain::tests::test_genesis_hash ... ok [INFO] [stdout] test blockchain::tests::coin_from_faucet ... ok [INFO] [stdout] test hash::test::test_hashing ... ok [INFO] [stdout] test operation::tests::test_funds_transfer ... ok [INFO] [stdout] test account::tests::account_init ... ok [INFO] [stdout] test account::tests::test_transfer_funds ... ok [INFO] [stdout] test blockchain::tests::init_block ... ok [INFO] [stdout] test blockchain::tests::dummy_test ... ok [INFO] [stdout] test blockchain::tests::test_block_addition ... ok [INFO] [stdout] test blockchain::tests::test_prev_hash_add ... ok [INFO] [stdout] test account::tests::test_airdrop_coins ... ok [INFO] [stdout] test tx::test::test_nonce_gen ... ok [INFO] [stdout] test tx::test::test_hash_fn ... ok [INFO] [stdout] test tx::test::test_tx ... ok [INFO] [stdout] test account::tests::test_transfer_insufficient_funds - should panic ... ok [INFO] [stdout] test blockchain::tests::test_absent_prev_hash - should panic ... ok [INFO] [stdout] test operation::tests::test_insufficient_funds - should panic ... ok [INFO] [stdout] test blockchain::tests::test_fake_genesis - should panic ... ok [INFO] [stdout] test operation::tests::test_signature_fail - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 21 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "156332844a8b8e00e34191ac52220c07cbadaf25001ecc3be0db61e813464bfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "156332844a8b8e00e34191ac52220c07cbadaf25001ecc3be0db61e813464bfa", kill_on_drop: false }` [INFO] [stdout] 156332844a8b8e00e34191ac52220c07cbadaf25001ecc3be0db61e813464bfa