[INFO] cloning repository https://github.com/jamesWalker55/merkle [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jamesWalker55/merkle" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FjamesWalker55%2Fmerkle", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FjamesWalker55%2Fmerkle'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 86902e19271fabd5f99696ab6de671effece6ae8 [INFO] checking jamesWalker55/merkle against master#40daf23eeb711dadf140b2536e67e3ff4c999196 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FjamesWalker55%2Fmerkle" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jamesWalker55/merkle on toolchain 40daf23eeb711dadf140b2536e67e3ff4c999196 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jamesWalker55/merkle [INFO] finished tweaking git repo https://github.com/jamesWalker55/merkle [INFO] tweaked toml for git repo https://github.com/jamesWalker55/merkle written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jamesWalker55/merkle 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" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 50c3c6072e9fc2617066a2aacb32a62c6d82d9c38190160acc9fe06562fa88ba [INFO] running `Command { std: "docker" "start" "-a" "50c3c6072e9fc2617066a2aacb32a62c6d82d9c38190160acc9fe06562fa88ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "50c3c6072e9fc2617066a2aacb32a62c6d82d9c38190160acc9fe06562fa88ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50c3c6072e9fc2617066a2aacb32a62c6d82d9c38190160acc9fe06562fa88ba", kill_on_drop: false }` [INFO] [stdout] 50c3c6072e9fc2617066a2aacb32a62c6d82d9c38190160acc9fe06562fa88ba [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c215407de0b205def03a4f68ceb1f27f7c25abd5306f0c0ccc6dc50d0b7f5a7 [INFO] running `Command { std: "docker" "start" "-a" "8c215407de0b205def03a4f68ceb1f27f7c25abd5306f0c0ccc6dc50d0b7f5a7", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking assignment-crypto-com v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: enum `MerkleNext` is never used [INFO] [stdout] --> src/merkle.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum MerkleNext { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MerkleNext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MerkleTree` is never constructed [INFO] [stdout] --> src/merkle.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct MerkleTree { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MerkleTree` 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 `new_from_data`, `new_from_nodes`, `prove`, and `prove_sub` are never used [INFO] [stdout] --> src/merkle.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl MerkleTree { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | fn new_from_data(data: Data) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn new_from_nodes(a: Box, b: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn prove(&self, data: &Data) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn prove_sub<'a>(&'a self, buf: &mut Vec<(HashDirection, &'a Hash)>, data: &Data) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Data` is never used [INFO] [stdout] --> src/tree.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Data = Vec; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Left` and `Right` are never constructed [INFO] [stdout] --> src/tree.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum HashDirection { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 9 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HashDirection` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Tree` is never used [INFO] [stdout] --> src/tree.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_data` is never used [INFO] [stdout] --> src/tree.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) fn hash_data(data: &Data) -> Hash { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_concat` is never used [INFO] [stdout] --> src/tree.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) fn hash_concat(h1: &Hash, h2: &Hash) -> Hash { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/merkle.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | fn prove(&self, data: &Data) -> Option { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 32 | fn prove(&self, data: &Data) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/merkle.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | fn prove(&self, data: &Data) -> Option { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 121 | fn prove(&self, data: &Data) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h7` [INFO] [stdout] --> src/lib.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let h7 = hash_concat(&h5, &h6); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_h7` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h15` [INFO] [stdout] --> src/lib.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | let h15 = hash_concat(&h13, &h14); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_h15` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/merkle.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | fn prove(&self, data: &Data) -> Option { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 32 | fn prove(&self, data: &Data) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/merkle.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | fn prove(&self, data: &Data) -> Option { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 121 | fn prove(&self, data: &Data) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.44s [INFO] running `Command { std: "docker" "inspect" "8c215407de0b205def03a4f68ceb1f27f7c25abd5306f0c0ccc6dc50d0b7f5a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c215407de0b205def03a4f68ceb1f27f7c25abd5306f0c0ccc6dc50d0b7f5a7", kill_on_drop: false }` [INFO] [stdout] 8c215407de0b205def03a4f68ceb1f27f7c25abd5306f0c0ccc6dc50d0b7f5a7