[INFO] cloning repository https://github.com/mashix83/rustchain-newbie [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mashix83/rustchain-newbie" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmashix83%2Frustchain-newbie", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmashix83%2Frustchain-newbie'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 085e1fecf37591acc4b7489428a5f155999ae4b2 [INFO] testing mashix83/rustchain-newbie against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmashix83%2Frustchain-newbie" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mashix83/rustchain-newbie on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mashix83/rustchain-newbie [INFO] finished tweaking git repo https://github.com/mashix83/rustchain-newbie [INFO] tweaked toml for git repo https://github.com/mashix83/rustchain-newbie written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/mashix83/rustchain-newbie already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sha2 v0.10.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fcb8a2542449c0938b9e2755429337d9e9f45750377524f1cc5f2be0fbc1bb2e [INFO] running `Command { std: "docker" "start" "-a" "fcb8a2542449c0938b9e2755429337d9e9f45750377524f1cc5f2be0fbc1bb2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fcb8a2542449c0938b9e2755429337d9e9f45750377524f1cc5f2be0fbc1bb2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcb8a2542449c0938b9e2755429337d9e9f45750377524f1cc5f2be0fbc1bb2e", kill_on_drop: false }` [INFO] [stdout] fcb8a2542449c0938b9e2755429337d9e9f45750377524f1cc5f2be0fbc1bb2e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff7de34dfab84765399b7ca71891037cd5a10f1685b4849cc398c940c986192d [INFO] running `Command { std: "docker" "start" "-a" "ff7de34dfab84765399b7ca71891037cd5a10f1685b4849cc398c940c986192d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.85 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling futures-sink v0.3.19 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling futures-io v0.3.19 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling serde_derive v1.0.133 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling serde v1.0.133 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling serde_json v1.0.75 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-common v0.1.1 [INFO] [stderr] Compiling block-buffer v0.10.0 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling digest v0.10.1 [INFO] [stderr] Compiling sha2 v0.10.1 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling futures-macro v0.3.19 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling futures v0.3.19 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling trust-dns-proto v0.19.7 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling trust-dns-resolver v0.19.7 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling actix-http v2.2.1 [INFO] [stderr] Compiling awc v2.0.3 [INFO] [stderr] Compiling actix-web v3.3.3 [INFO] [stderr] Compiling rustchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct is never constructed: `Blockchain` [INFO] [stdout] --> src/blockchain/blockchain.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Blockchain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/blockchain/blockchain.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Blockchain { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `last_block` [INFO] [stdout] --> src/blockchain/blockchain.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn last_block(&self) -> &Block { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_new_block` [INFO] [stdout] --> src/blockchain/blockchain.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn add_new_block(&mut self, data: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/blockchain/blockchain.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn is_valid(blocks: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `replace_chain` [INFO] [stdout] --> src/blockchain/blockchain.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn replace_chain(&mut self, new_chain: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_equal` [INFO] [stdout] --> src/blockchain/blockchain.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn is_equal(&self, bc: &Blockchain) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/blockchain/block.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(timestamp: u64, last_hash: &str, hash: &str, data: &str) -> Block { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/blockchain/block.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `genesis` [INFO] [stdout] --> src/blockchain/block.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn genesis() -> Block { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mine` [INFO] [stdout] --> src/blockchain/block.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn mine(last_block: &Block, data: &str) -> Block { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hash` [INFO] [stdout] --> src/blockchain/block.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn hash(timestamp: &u64, last_hash: &str, data: &str) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_equal` [INFO] [stdout] --> src/blockchain/block.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn is_equal(&self, other_block: &Block) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `block_hash` [INFO] [stdout] --> src/blockchain/block.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn block_hash(block: &Block) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 40.25s [INFO] running `Command { std: "docker" "inspect" "ff7de34dfab84765399b7ca71891037cd5a10f1685b4849cc398c940c986192d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff7de34dfab84765399b7ca71891037cd5a10f1685b4849cc398c940c986192d", kill_on_drop: false }` [INFO] [stdout] ff7de34dfab84765399b7ca71891037cd5a10f1685b4849cc398c940c986192d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3001e144d13b181ba92d07af168f51232d8559062a05eecb027cef88bd72cdc2 [INFO] running `Command { std: "docker" "start" "-a" "3001e144d13b181ba92d07af168f51232d8559062a05eecb027cef88bd72cdc2", kill_on_drop: false }` [INFO] [stderr] Compiling rustchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct is never constructed: `Blockchain` [INFO] [stdout] --> src/blockchain/blockchain.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Blockchain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/blockchain/blockchain.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Blockchain { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `last_block` [INFO] [stdout] --> src/blockchain/blockchain.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn last_block(&self) -> &Block { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_new_block` [INFO] [stdout] --> src/blockchain/blockchain.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn add_new_block(&mut self, data: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/blockchain/blockchain.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn is_valid(blocks: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `replace_chain` [INFO] [stdout] --> src/blockchain/blockchain.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn replace_chain(&mut self, new_chain: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_equal` [INFO] [stdout] --> src/blockchain/blockchain.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn is_equal(&self, bc: &Blockchain) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/blockchain/block.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(timestamp: u64, last_hash: &str, hash: &str, data: &str) -> Block { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/blockchain/block.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `genesis` [INFO] [stdout] --> src/blockchain/block.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn genesis() -> Block { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mine` [INFO] [stdout] --> src/blockchain/block.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn mine(last_block: &Block, data: &str) -> Block { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hash` [INFO] [stdout] --> src/blockchain/block.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn hash(timestamp: &u64, last_hash: &str, data: &str) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_equal` [INFO] [stdout] --> src/blockchain/block.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn is_equal(&self, other_block: &Block) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `block_hash` [INFO] [stdout] --> src/blockchain/block.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn block_hash(block: &Block) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bc` [INFO] [stdout] --> tests/blockchain-test.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let bc = init(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Blockchain` [INFO] [stdout] --> src/blockchain/blockchain.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Blockchain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/blockchain/blockchain.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Blockchain { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `last_block` [INFO] [stdout] --> src/blockchain/blockchain.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn last_block(&self) -> &Block { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_new_block` [INFO] [stdout] --> src/blockchain/blockchain.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn add_new_block(&mut self, data: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/blockchain/blockchain.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn is_valid(blocks: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `replace_chain` [INFO] [stdout] --> src/blockchain/blockchain.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn replace_chain(&mut self, new_chain: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_equal` [INFO] [stdout] --> src/blockchain/blockchain.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn is_equal(&self, bc: &Blockchain) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/blockchain/block.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(timestamp: u64, last_hash: &str, hash: &str, data: &str) -> Block { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/blockchain/block.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `genesis` [INFO] [stdout] --> src/blockchain/block.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn genesis() -> Block { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mine` [INFO] [stdout] --> src/blockchain/block.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn mine(last_block: &Block, data: &str) -> Block { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hash` [INFO] [stdout] --> src/blockchain/block.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn hash(timestamp: &u64, last_hash: &str, data: &str) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_equal` [INFO] [stdout] --> src/blockchain/block.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn is_equal(&self, other_block: &Block) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `block_hash` [INFO] [stdout] --> src/blockchain/block.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn block_hash(block: &Block) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.94s [INFO] running `Command { std: "docker" "inspect" "3001e144d13b181ba92d07af168f51232d8559062a05eecb027cef88bd72cdc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3001e144d13b181ba92d07af168f51232d8559062a05eecb027cef88bd72cdc2", kill_on_drop: false }` [INFO] [stdout] 3001e144d13b181ba92d07af168f51232d8559062a05eecb027cef88bd72cdc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e75991a4a090378e9236539782d0c093b43bdf1d2c1e57748c79eeea4a225331 [INFO] running `Command { std: "docker" "start" "-a" "e75991a4a090378e9236539782d0c093b43bdf1d2c1e57748c79eeea4a225331", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `bc` [INFO] [stderr] --> tests/blockchain-test.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | let bc = init(); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Blockchain` [INFO] [stderr] --> src/blockchain/blockchain.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct Blockchain { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/blockchain/blockchain.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn new() -> Blockchain { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `last_block` [INFO] [stderr] --> src/blockchain/blockchain.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn last_block(&self) -> &Block { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_new_block` [INFO] [stderr] --> src/blockchain/blockchain.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn add_new_block(&mut self, data: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_valid` [INFO] [stderr] --> src/blockchain/blockchain.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn is_valid(blocks: &Vec) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `replace_chain` [INFO] [stderr] --> src/blockchain/blockchain.rs:43:12 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn replace_chain(&mut self, new_chain: &Vec) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_equal` [INFO] [stderr] --> src/blockchain/blockchain.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn is_equal(&self, bc: &Blockchain) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/blockchain/block.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn new(timestamp: u64, last_hash: &str, hash: &str, data: &str) -> Block { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_string` [INFO] [stderr] --> src/blockchain/block.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn to_string(&self) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `genesis` [INFO] [stderr] --> src/blockchain/block.rs:36:12 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn genesis() -> Block { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `mine` [INFO] [stderr] --> src/blockchain/block.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn mine(last_block: &Block, data: &str) -> Block { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `hash` [INFO] [stderr] --> src/blockchain/block.rs:55:12 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn hash(timestamp: &u64, last_hash: &str, data: &str) -> String { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_equal` [INFO] [stderr] --> src/blockchain/block.rs:63:12 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn is_equal(&self, other_block: &Block) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `block_hash` [INFO] [stderr] --> src/blockchain/block.rs:70:12 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn block_hash(block: &Block) -> String { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rustchain` (test "blockchain-test") generated 1 warning [INFO] [stderr] warning: `rustchain` (bin "rustchain") generated 14 warnings [INFO] [stderr] warning: `rustchain` (bin "rustchain" test) generated 14 warnings (14 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rustchain-4883247044471dc2) [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] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rustchain-91d9bbf29eff2a2c) [INFO] [stderr] Running tests/block-test.rs (/opt/rustwide/target/debug/deps/block_test-32c80ff9a45a6c37) [INFO] [stdout] [INFO] [stderr] Running tests/blockchain-test.rs (/opt/rustwide/target/debug/deps/blockchain_test-03222a4fb075fc42) [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] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test block_tests::set_data_match_the_input ... ok [INFO] [stdout] test block_tests::set_last_hash_match_last_block ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test blockchain_tests::start_with_genesis_block ... ok [INFO] [stdout] test blockchain_tests::invalidate_corrupted_chain ... ok [INFO] [stdout] test blockchain_tests::add_new_block_successfully ... ok [INFO] [stdout] test blockchain_tests::does_not_replace_with_shorter_chain ... ok [INFO] [stdout] test blockchain_tests::validate_a_valid_chain ... ok [INFO] [stderr] Doc-tests rustchain [INFO] [stdout] test blockchain_tests::replace_chain_with_valid_chain ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [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" "e75991a4a090378e9236539782d0c093b43bdf1d2c1e57748c79eeea4a225331", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e75991a4a090378e9236539782d0c093b43bdf1d2c1e57748c79eeea4a225331", kill_on_drop: false }` [INFO] [stdout] e75991a4a090378e9236539782d0c093b43bdf1d2c1e57748c79eeea4a225331