[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] building 687c/practical1/ee4598e750f8f99279d8fe8bc97c50244ba0a87c against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F687c%2Fpractical1" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-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-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/687c/practical1 on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "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" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thiserror v1.0.34 [INFO] [stderr] Downloaded cpufeatures v0.2.4 [INFO] [stderr] Downloaded base64ct v1.5.2 [INFO] [stderr] Downloaded sha2 v0.10.3 [INFO] [stderr] Downloaded bitcoin_hashes v0.11.0 [INFO] [stderr] Downloaded thiserror-impl v1.0.34 [INFO] [stderr] Downloaded anyhow v1.0.63 [INFO] [stderr] Downloaded secp256k1 v0.24.0 [INFO] [stderr] Downloaded libc v0.2.132 [INFO] [stderr] Downloaded secp256k1-sys v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c593638246137c6f9b2eb5eb80c00db58e62abaab3c11072d8a592b38486a75 [INFO] running `Command { std: "docker" "start" "-a" "4c593638246137c6f9b2eb5eb80c00db58e62abaab3c11072d8a592b38486a75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c593638246137c6f9b2eb5eb80c00db58e62abaab3c11072d8a592b38486a75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c593638246137c6f9b2eb5eb80c00db58e62abaab3c11072d8a592b38486a75", kill_on_drop: false }` [INFO] [stdout] 4c593638246137c6f9b2eb5eb80c00db58e62abaab3c11072d8a592b38486a75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] d7cfa30a69816b8204ecfb7a7d50caba9609ff8f697dba6704acc4f85ee81c7a [INFO] running `Command { std: "docker" "start" "-a" "d7cfa30a69816b8204ecfb7a7d50caba9609ff8f697dba6704acc4f85ee81c7a", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling wasi v0.11.0+wasi-snapshot-preview1 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling anyhow v1.0.63 [INFO] [stderr] Compiling bitcoin_hashes v0.11.0 [INFO] [stderr] Compiling base64ct v1.5.2 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling secp256k1-sys v0.6.0 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling sha2 v0.10.3 [INFO] [stderr] Compiling thiserror-impl v1.0.34 [INFO] [stderr] Compiling thiserror v1.0.34 [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)]` (part of `#[warn(unused)]`) 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] [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] [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] [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] [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] [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 3.25s [INFO] running `Command { std: "docker" "inspect" "d7cfa30a69816b8204ecfb7a7d50caba9609ff8f697dba6704acc4f85ee81c7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7cfa30a69816b8204ecfb7a7d50caba9609ff8f697dba6704acc4f85ee81c7a", kill_on_drop: false }` [INFO] [stdout] d7cfa30a69816b8204ecfb7a7d50caba9609ff8f697dba6704acc4f85ee81c7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 785f6abc556e1b94c1fdd7d31a400fbf033d4d506d876773eea7c642c563f297 [INFO] running `Command { std: "docker" "start" "-a" "785f6abc556e1b94c1fdd7d31a400fbf033d4d506d876773eea7c642c563f297", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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.34s [INFO] running `Command { std: "docker" "inspect" "785f6abc556e1b94c1fdd7d31a400fbf033d4d506d876773eea7c642c563f297", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "785f6abc556e1b94c1fdd7d31a400fbf033d4d506d876773eea7c642c563f297", kill_on_drop: false }` [INFO] [stdout] 785f6abc556e1b94c1fdd7d31a400fbf033d4d506d876773eea7c642c563f297