[INFO] cloning repository https://github.com/vickky06/BlockChain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vickky06/BlockChain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvickky06%2FBlockChain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvickky06%2FBlockChain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 062b6f806d183fe44c4f5227363325c53dd03f42 [INFO] testing vickky06/BlockChain against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvickky06%2FBlockChain" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vickky06/BlockChain [INFO] finished tweaking git repo https://github.com/vickky06/BlockChain [INFO] tweaked toml for git repo https://github.com/vickky06/BlockChain written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vickky06/BlockChain on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vickky06/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f299c4440831d010dba98cc484ba16552fd91d927fdf6d2eaa24888650eb6437 [INFO] running `Command { std: "docker" "start" "-a" "f299c4440831d010dba98cc484ba16552fd91d927fdf6d2eaa24888650eb6437", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f299c4440831d010dba98cc484ba16552fd91d927fdf6d2eaa24888650eb6437", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f299c4440831d010dba98cc484ba16552fd91d927fdf6d2eaa24888650eb6437", kill_on_drop: false }` [INFO] [stdout] f299c4440831d010dba98cc484ba16552fd91d927fdf6d2eaa24888650eb6437 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a8dfb0d6213f8c8a4030066852362bd5c313524a77590bdcd78a8d84d086db4 [INFO] running `Command { std: "docker" "start" "-a" "6a8dfb0d6213f8c8a4030066852362bd5c313524a77590bdcd78a8d84d086db4", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling iana-time-zone v0.1.62 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling sha256 v1.6.0 [INFO] [stderr] Compiling rust_block_chain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `seq::SliceRandom` [INFO] [stdout] --> src/utils/generator.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::{seq::SliceRandom, Rng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `utils` should have an upper camel case name [INFO] [stdout] --> src/utils/generator.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct utils{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Utils` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_block` [INFO] [stdout] --> src/models/blockchain.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | Some(last_block) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/models/block.rs:63:48 [INFO] [stdout] | [INFO] [stdout] 63 | "{}{}{}{}{}", id, previous_hash.clone(), data.clone(),timestamp, nonce [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/models/block.rs:63:62 [INFO] [stdout] | [INFO] [stdout] 63 | "{}{}{}{}{}", id, previous_hash.clone(), data.clone(),timestamp, nonce [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.16s [INFO] running `Command { std: "docker" "inspect" "6a8dfb0d6213f8c8a4030066852362bd5c313524a77590bdcd78a8d84d086db4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a8dfb0d6213f8c8a4030066852362bd5c313524a77590bdcd78a8d84d086db4", kill_on_drop: false }` [INFO] [stdout] 6a8dfb0d6213f8c8a4030066852362bd5c313524a77590bdcd78a8d84d086db4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f843956ccb1aed950565fcbc23df25c649bd22c8aaaed93057ba8e4df3e0c63d [INFO] running `Command { std: "docker" "start" "-a" "f843956ccb1aed950565fcbc23df25c649bd22c8aaaed93057ba8e4df3e0c63d", kill_on_drop: false }` [INFO] [stderr] Compiling rust_block_chain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `seq::SliceRandom` [INFO] [stdout] --> src/utils/generator.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::{seq::SliceRandom, Rng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `utils` should have an upper camel case name [INFO] [stdout] --> src/utils/generator.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct utils{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Utils` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_block` [INFO] [stdout] --> src/models/blockchain.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | Some(last_block) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/models/block.rs:63:48 [INFO] [stdout] | [INFO] [stdout] 63 | "{}{}{}{}{}", id, previous_hash.clone(), data.clone(),timestamp, nonce [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/models/block.rs:63:62 [INFO] [stdout] | [INFO] [stdout] 63 | "{}{}{}{}{}", id, previous_hash.clone(), data.clone(),timestamp, nonce [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "f843956ccb1aed950565fcbc23df25c649bd22c8aaaed93057ba8e4df3e0c63d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f843956ccb1aed950565fcbc23df25c649bd22c8aaaed93057ba8e4df3e0c63d", kill_on_drop: false }` [INFO] [stdout] f843956ccb1aed950565fcbc23df25c649bd22c8aaaed93057ba8e4df3e0c63d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 73f14e93e5070680fbb40287eab1303ce9e35011b1b8e6d7b13c3f507ca969f3 [INFO] running `Command { std: "docker" "start" "-a" "73f14e93e5070680fbb40287eab1303ce9e35011b1b8e6d7b13c3f507ca969f3", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `seq::SliceRandom` [INFO] [stderr] --> src/utils/generator.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | use rand::{seq::SliceRandom, Rng}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: type `utils` should have an upper camel case name [INFO] [stderr] --> src/utils/generator.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct utils{ [INFO] [stderr] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Utils` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `last_block` [INFO] [stderr] --> src/models/blockchain.rs:60:18 [INFO] [stderr] | [INFO] [stderr] 60 | Some(last_block) => { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_block` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/models/block.rs:63:48 [INFO] [stderr] | [INFO] [stderr] 63 | "{}{}{}{}{}", id, previous_hash.clone(), data.clone(),timestamp, nonce [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/models/block.rs:63:62 [INFO] [stderr] | [INFO] [stderr] 63 | "{}{}{}{}{}", id, previous_hash.clone(), data.clone(),timestamp, nonce [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: `rust_block_chain` (bin "rust_block_chain" test) generated 5 warnings (run `cargo fix --bin "rust_block_chain" -p rust_block_chain --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_block_chain-052e2201b1756d97) [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" "73f14e93e5070680fbb40287eab1303ce9e35011b1b8e6d7b13c3f507ca969f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73f14e93e5070680fbb40287eab1303ce9e35011b1b8e6d7b13c3f507ca969f3", kill_on_drop: false }` [INFO] [stdout] 73f14e93e5070680fbb40287eab1303ce9e35011b1b8e6d7b13c3f507ca969f3