[INFO] cloning repository https://github.com/Sladuca/berkletree [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sladuca/berkletree" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSladuca%2Fberkletree", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSladuca%2Fberkletree'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 95125d7b875ad04ada8d105b1397b3bb77a3aea3 [INFO] testing Sladuca/berkletree/95125d7b875ad04ada8d105b1397b3bb77a3aea3 against 1.81.0 for beta-1.82-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSladuca%2Fberkletree" "/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/Sladuca/berkletree on toolchain 1.81.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.81.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Sladuca/berkletree [INFO] finished tweaking git repo https://github.com/Sladuca/berkletree [INFO] tweaked toml for git repo https://github.com/Sladuca/berkletree written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Sladuca/berkletree 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" "+1.81.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wyz v0.4.0 [INFO] [stderr] Downloaded pairing v0.21.0 [INFO] [stderr] Downloaded bitvec v0.22.3 [INFO] [stderr] Downloaded bls12_381 v0.6.0 [INFO] [stderr] Downloaded kzg v0.2.1 [INFO] [stderr] Downloaded blake3 v1.0.0 [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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5771f6c485e3da022cc34984617335340a05a23583cfa6f0586e342596148952 [INFO] running `Command { std: "docker" "start" "-a" "5771f6c485e3da022cc34984617335340a05a23583cfa6f0586e342596148952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5771f6c485e3da022cc34984617335340a05a23583cfa6f0586e342596148952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5771f6c485e3da022cc34984617335340a05a23583cfa6f0586e342596148952", kill_on_drop: false }` [INFO] [stdout] 5771f6c485e3da022cc34984617335340a05a23583cfa6f0586e342596148952 [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=warn" "-e" "RUSTDOCFLAGS=--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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 87330232ae8d68b3bb5d359b3a491b33a9a5ec86f24c8c5a92d2c3c908d91531 [INFO] running `Command { std: "docker" "start" "-a" "87330232ae8d68b3bb5d359b3a491b33a9a5ec86f24c8c5a92d2c3c908d91531", kill_on_drop: false }` [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling funty v1.2.0 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling wyz v0.4.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling arrayvec v0.7.1 [INFO] [stderr] Compiling bitvec v0.22.3 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling blake3 v1.0.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling ff v0.11.0 [INFO] [stderr] Compiling group v0.11.0 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling pairing v0.21.0 [INFO] [stderr] Compiling bls12_381 v0.6.0 [INFO] [stderr] Compiling thiserror v1.0.26 [INFO] [stderr] Compiling kzg v0.2.1 [INFO] [stderr] Compiling berkletree v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bitvec::vec::BitVec` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bitvec::vec::BitVec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `either::Either` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use either::Either; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryInto` and `process::Child` [INFO] [stdout] --> src/node.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | convert::{TryFrom, TryInto}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | process::Child, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ContainsResult` and `RangeResult` [INFO] [stdout] --> src/node.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | ContainsResult, GetResult, InnerNodeProof, KVProof, MembershipProof, NonMembershipProof, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | RangeResult, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scalar` [INFO] [stdout] --> src/proofs.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use bls12_381::{Bls12, Scalar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `either::Either` [INFO] [stdout] --> src/proofs.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use either::Either; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stdout] --> src/proofs.rs:161:23 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stdout] | ------- the late bound lifetime parameter is introduced here [INFO] [stdout] ... [INFO] [stdout] 161 | .verify::<'_, K, MAX_KEY_LEN>(key, value_hash, verifier) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #42868 [INFO] [stdout] = note: `#[warn(late_bound_lifetime_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stdout] --> src/proofs.rs:366:35 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stdout] | ------- the late bound lifetime parameter is introduced here [INFO] [stdout] ... [INFO] [stdout] 366 | left.verify::<'params, [u8; MAX_KEY_LEN], MAX_KEY_LEN>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #42868 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stdout] --> src/proofs.rs:370:41 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stdout] | ------- the late bound lifetime parameter is introduced here [INFO] [stdout] ... [INFO] [stdout] 370 | ) && right.verify::<'params, [u8; MAX_KEY_LEN], MAX_KEY_LEN>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #42868 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_ok` [INFO] [stdout] --> src/proofs.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | let (path_ok, prev_child_hash) = verify_path(None, &self.path, &self.commitments, verifier); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_ok` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_proof` [INFO] [stdout] --> src/proofs.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | leaf_proof, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `leaf_proof: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/proofs.rs:382:17 [INFO] [stdout] | [INFO] [stdout] 382 | key, [INFO] [stdout] | ^^^ help: try ignoring the field: `key: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/proofs.rs:383:17 [INFO] [stdout] | [INFO] [stdout] 383 | value, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 63 | impl KeyWithCounter { [INFO] [stdout] | ---------------------------------------------------------- associated function in this implementation [INFO] [stdout] 64 | pub(crate) fn new(key: [u8; MAX_KEY_LEN], count: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_batch_witness` and `get_by_path` are never used [INFO] [stdout] --> src/node.rs:172:19 [INFO] [stdout] | [INFO] [stdout] 111 | / impl<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] 112 | | Node<'params, Q, MAX_KEY_LEN, MAX_VAL_LEN> [INFO] [stdout] | |______________________________________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 172 | pub(crate) fn get_batch_witness(&self, idxs: Range) -> KZGBatchWitness { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 660 | pub(crate) fn get_by_path( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash` is never used [INFO] [stdout] --> src/node.rs:709:19 [INFO] [stdout] | [INFO] [stdout] 708 | impl KeyWithCounter { [INFO] [stdout] | ---------------------------------------------------------- method in this implementation [INFO] [stdout] 709 | pub(crate) fn hash(&self) -> Blake3Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `batch_witness` is never read [INFO] [stdout] --> src/node.rs:738:16 [INFO] [stdout] | [INFO] [stdout] 730 | pub struct InternalNode<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 738 | pub(crate) batch_witness: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InternalNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node.rs:758:19 [INFO] [stdout] | [INFO] [stdout] 755 | / impl<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] 756 | | InternalNode<'params, Q, MAX_KEY_LEN, MAX_VAL_LEN> [INFO] [stdout] | |______________________________________________________- associated function in this implementation [INFO] [stdout] 757 | { [INFO] [stdout] 758 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `batch_witness` is never read [INFO] [stdout] --> src/node.rs:1380:16 [INFO] [stdout] | [INFO] [stdout] 1373 | pub struct LeafNode<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1380 | pub(crate) batch_witness: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LeafNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/proofs.rs:481:15 [INFO] [stdout] | [INFO] [stdout] 481 | KeyExists(MembershipProof), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 481 | KeyExists(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left_path`, `right_path`, `witnesses`, `commitments`, and `bitvecs` are never read [INFO] [stdout] --> src/proofs.rs:487:16 [INFO] [stdout] | [INFO] [stdout] 486 | pub struct RangeProof { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 487 | pub(crate) left_path: RangePath, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 488 | pub(crate) right_path: RangePath, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 489 | pub(crate) witnesses: Vec>>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 490 | pub(crate) commitments: Vec>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 491 | pub(crate) bitvecs: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left` and `proof` are never read [INFO] [stdout] --> src/proofs.rs:511:16 [INFO] [stdout] | [INFO] [stdout] 509 | pub struct RangeResult<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 510 | { [INFO] [stdout] 511 | pub(crate) left: [u8; MAX_KEY_LEN], [INFO] [stdout] | ^^^^ [INFO] [stdout] 512 | pub(crate) right: [u8; MAX_KEY_LEN], [INFO] [stdout] 513 | pub(crate) proof: RangeProof, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.73s [INFO] running `Command { std: "docker" "inspect" "87330232ae8d68b3bb5d359b3a491b33a9a5ec86f24c8c5a92d2c3c908d91531", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87330232ae8d68b3bb5d359b3a491b33a9a5ec86f24c8c5a92d2c3c908d91531", kill_on_drop: false }` [INFO] [stdout] 87330232ae8d68b3bb5d359b3a491b33a9a5ec86f24c8c5a92d2c3c908d91531 [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=warn" "-e" "RUSTDOCFLAGS=--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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1d3106e1ae06b2cecd0c96ed1bf009598589cd36a164e3287e86bf8bbed6d05 [INFO] running `Command { std: "docker" "start" "-a" "e1d3106e1ae06b2cecd0c96ed1bf009598589cd36a164e3287e86bf8bbed6d05", kill_on_drop: false }` [INFO] [stderr] Compiling fastrand v1.5.0 [INFO] [stdout] warning: unused import: `bitvec::vec::BitVec` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bitvec::vec::BitVec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `either::Either` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use either::Either; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryInto` and `process::Child` [INFO] [stdout] --> src/node.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | convert::{TryFrom, TryInto}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | process::Child, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ContainsResult` and `RangeResult` [INFO] [stdout] --> src/node.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | ContainsResult, GetResult, InnerNodeProof, KVProof, MembershipProof, NonMembershipProof, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | RangeResult, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scalar` [INFO] [stdout] --> src/proofs.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use bls12_381::{Bls12, Scalar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `either::Either` [INFO] [stdout] --> src/proofs.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use either::Either; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stdout] --> src/proofs.rs:161:23 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stdout] | ------- the late bound lifetime parameter is introduced here [INFO] [stdout] ... [INFO] [stdout] 161 | .verify::<'_, K, MAX_KEY_LEN>(key, value_hash, verifier) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #42868 [INFO] [stdout] = note: `#[warn(late_bound_lifetime_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stdout] --> src/proofs.rs:366:35 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stdout] | ------- the late bound lifetime parameter is introduced here [INFO] [stdout] ... [INFO] [stdout] 366 | left.verify::<'params, [u8; MAX_KEY_LEN], MAX_KEY_LEN>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #42868 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stdout] --> src/proofs.rs:370:41 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stdout] | ------- the late bound lifetime parameter is introduced here [INFO] [stdout] ... [INFO] [stdout] 370 | ) && right.verify::<'params, [u8; MAX_KEY_LEN], MAX_KEY_LEN>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #42868 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_ok` [INFO] [stdout] --> src/proofs.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | let (path_ok, prev_child_hash) = verify_path(None, &self.path, &self.commitments, verifier); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_ok` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_proof` [INFO] [stdout] --> src/proofs.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | leaf_proof, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `leaf_proof: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/proofs.rs:382:17 [INFO] [stdout] | [INFO] [stdout] 382 | key, [INFO] [stdout] | ^^^ help: try ignoring the field: `key: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/proofs.rs:383:17 [INFO] [stdout] | [INFO] [stdout] 383 | value, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 63 | impl KeyWithCounter { [INFO] [stdout] | ---------------------------------------------------------- associated function in this implementation [INFO] [stdout] 64 | pub(crate) fn new(key: [u8; MAX_KEY_LEN], count: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_batch_witness` and `get_by_path` are never used [INFO] [stdout] --> src/node.rs:172:19 [INFO] [stdout] | [INFO] [stdout] 111 | / impl<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] 112 | | Node<'params, Q, MAX_KEY_LEN, MAX_VAL_LEN> [INFO] [stdout] | |______________________________________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 172 | pub(crate) fn get_batch_witness(&self, idxs: Range) -> KZGBatchWitness { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 660 | pub(crate) fn get_by_path( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash` is never used [INFO] [stdout] --> src/node.rs:709:19 [INFO] [stdout] | [INFO] [stdout] 708 | impl KeyWithCounter { [INFO] [stdout] | ---------------------------------------------------------- method in this implementation [INFO] [stdout] 709 | pub(crate) fn hash(&self) -> Blake3Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `batch_witness` is never read [INFO] [stdout] --> src/node.rs:738:16 [INFO] [stdout] | [INFO] [stdout] 730 | pub struct InternalNode<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 738 | pub(crate) batch_witness: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InternalNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node.rs:758:19 [INFO] [stdout] | [INFO] [stdout] 755 | / impl<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] 756 | | InternalNode<'params, Q, MAX_KEY_LEN, MAX_VAL_LEN> [INFO] [stdout] | |______________________________________________________- associated function in this implementation [INFO] [stdout] 757 | { [INFO] [stdout] 758 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `batch_witness` is never read [INFO] [stdout] --> src/node.rs:1380:16 [INFO] [stdout] | [INFO] [stdout] 1373 | pub struct LeafNode<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1380 | pub(crate) batch_witness: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LeafNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/proofs.rs:481:15 [INFO] [stdout] | [INFO] [stdout] 481 | KeyExists(MembershipProof), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 481 | KeyExists(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left_path`, `right_path`, `witnesses`, `commitments`, and `bitvecs` are never read [INFO] [stdout] --> src/proofs.rs:487:16 [INFO] [stdout] | [INFO] [stdout] 486 | pub struct RangeProof { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 487 | pub(crate) left_path: RangePath, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 488 | pub(crate) right_path: RangePath, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 489 | pub(crate) witnesses: Vec>>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 490 | pub(crate) commitments: Vec>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 491 | pub(crate) bitvecs: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left` and `proof` are never read [INFO] [stdout] --> src/proofs.rs:511:16 [INFO] [stdout] | [INFO] [stdout] 509 | pub struct RangeResult<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 510 | { [INFO] [stdout] 511 | pub(crate) left: [u8; MAX_KEY_LEN], [INFO] [stdout] | ^^^^ [INFO] [stdout] 512 | pub(crate) right: [u8; MAX_KEY_LEN], [INFO] [stdout] 513 | pub(crate) proof: RangeProof, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling berkletree v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bitvec::vec::BitVec` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bitvec::vec::BitVec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `either::Either` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use either::Either; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryInto` and `process::Child` [INFO] [stdout] --> src/node.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | convert::{TryFrom, TryInto}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | process::Child, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ContainsResult` and `RangeResult` [INFO] [stdout] --> src/node.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | ContainsResult, GetResult, InnerNodeProof, KVProof, MembershipProof, NonMembershipProof, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | RangeResult, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scalar` [INFO] [stdout] --> src/proofs.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use bls12_381::{Bls12, Scalar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `either::Either` [INFO] [stdout] --> src/proofs.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use either::Either; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/test_utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stdout] --> src/proofs.rs:161:23 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stdout] | ------- the late bound lifetime parameter is introduced here [INFO] [stdout] ... [INFO] [stdout] 161 | .verify::<'_, K, MAX_KEY_LEN>(key, value_hash, verifier) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #42868 [INFO] [stdout] = note: `#[warn(late_bound_lifetime_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stdout] --> src/proofs.rs:366:35 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stdout] | ------- the late bound lifetime parameter is introduced here [INFO] [stdout] ... [INFO] [stdout] 366 | left.verify::<'params, [u8; MAX_KEY_LEN], MAX_KEY_LEN>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #42868 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stdout] --> src/proofs.rs:370:41 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stdout] | ------- the late bound lifetime parameter is introduced here [INFO] [stdout] ... [INFO] [stdout] 370 | ) && right.verify::<'params, [u8; MAX_KEY_LEN], MAX_KEY_LEN>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #42868 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_ok` [INFO] [stdout] --> src/proofs.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | let (path_ok, prev_child_hash) = verify_path(None, &self.path, &self.commitments, verifier); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_ok` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_proof` [INFO] [stdout] --> src/proofs.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | leaf_proof, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `leaf_proof: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/proofs.rs:382:17 [INFO] [stdout] | [INFO] [stdout] 382 | key, [INFO] [stdout] | ^^^ help: try ignoring the field: `key: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/proofs.rs:383:17 [INFO] [stdout] | [INFO] [stdout] 383 | value, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verifier` [INFO] [stdout] --> src/lib.rs:561:13 [INFO] [stdout] | [INFO] [stdout] 561 | let verifier = KZGVerifier::new(¶ms); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/lib.rs:585:19 [INFO] [stdout] | [INFO] [stdout] 585 | for (key, value) in keys.iter().zip(values.iter()) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verifier` [INFO] [stdout] --> src/lib.rs:605:13 [INFO] [stdout] | [INFO] [stdout] 605 | let verifier = KZGVerifier::new(¶ms); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proof` [INFO] [stdout] --> src/lib.rs:727:17 [INFO] [stdout] | [INFO] [stdout] 727 | let proof = tree [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 63 | impl KeyWithCounter { [INFO] [stdout] | ---------------------------------------------------------- associated function in this implementation [INFO] [stdout] 64 | pub(crate) fn new(key: [u8; MAX_KEY_LEN], count: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_batch_witness` and `get_by_path` are never used [INFO] [stdout] --> src/node.rs:172:19 [INFO] [stdout] | [INFO] [stdout] 111 | / impl<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] 112 | | Node<'params, Q, MAX_KEY_LEN, MAX_VAL_LEN> [INFO] [stdout] | |______________________________________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 172 | pub(crate) fn get_batch_witness(&self, idxs: Range) -> KZGBatchWitness { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 660 | pub(crate) fn get_by_path( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash` is never used [INFO] [stdout] --> src/node.rs:709:19 [INFO] [stdout] | [INFO] [stdout] 708 | impl KeyWithCounter { [INFO] [stdout] | ---------------------------------------------------------- method in this implementation [INFO] [stdout] 709 | pub(crate) fn hash(&self) -> Blake3Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `batch_witness` is never read [INFO] [stdout] --> src/node.rs:738:16 [INFO] [stdout] | [INFO] [stdout] 730 | pub struct InternalNode<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 738 | pub(crate) batch_witness: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InternalNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node.rs:758:19 [INFO] [stdout] | [INFO] [stdout] 755 | / impl<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] 756 | | InternalNode<'params, Q, MAX_KEY_LEN, MAX_VAL_LEN> [INFO] [stdout] | |______________________________________________________- associated function in this implementation [INFO] [stdout] 757 | { [INFO] [stdout] 758 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `batch_witness` is never read [INFO] [stdout] --> src/node.rs:1380:16 [INFO] [stdout] | [INFO] [stdout] 1373 | pub struct LeafNode<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1380 | pub(crate) batch_witness: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LeafNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/proofs.rs:481:15 [INFO] [stdout] | [INFO] [stdout] 481 | KeyExists(MembershipProof), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 481 | KeyExists(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left_path`, `right_path`, `witnesses`, `commitments`, and `bitvecs` are never read [INFO] [stdout] --> src/proofs.rs:487:16 [INFO] [stdout] | [INFO] [stdout] 486 | pub struct RangeProof { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 487 | pub(crate) left_path: RangePath, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 488 | pub(crate) right_path: RangePath, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 489 | pub(crate) witnesses: Vec>>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 490 | pub(crate) commitments: Vec>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 491 | pub(crate) bitvecs: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left` and `proof` are never read [INFO] [stdout] --> src/proofs.rs:511:16 [INFO] [stdout] | [INFO] [stdout] 509 | pub struct RangeResult<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 510 | { [INFO] [stdout] 511 | pub(crate) left: [u8; MAX_KEY_LEN], [INFO] [stdout] | ^^^^ [INFO] [stdout] 512 | pub(crate) right: [u8; MAX_KEY_LEN], [INFO] [stdout] 513 | pub(crate) proof: RangeProof, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RAND_SEED` is never used [INFO] [stdout] --> src/lib.rs:445:11 [INFO] [stdout] | [INFO] [stdout] 445 | const RAND_SEED: u64 = 42; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.31s [INFO] running `Command { std: "docker" "inspect" "e1d3106e1ae06b2cecd0c96ed1bf009598589cd36a164e3287e86bf8bbed6d05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1d3106e1ae06b2cecd0c96ed1bf009598589cd36a164e3287e86bf8bbed6d05", kill_on_drop: false }` [INFO] [stdout] e1d3106e1ae06b2cecd0c96ed1bf009598589cd36a164e3287e86bf8bbed6d05 [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=warn" "-e" "RUSTDOCFLAGS=--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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0a23034b85e63f8611a4f96e6b5292b1e55328bc6e15b609bd31e2b71f113616 [INFO] running `Command { std: "docker" "start" "-a" "0a23034b85e63f8611a4f96e6b5292b1e55328bc6e15b609bd31e2b71f113616", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `bitvec::vec::BitVec` [INFO] [stderr] --> src/lib.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use bitvec::vec::BitVec; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `either::Either` [INFO] [stderr] --> src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use either::Either; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `TryInto` and `process::Child` [INFO] [stderr] --> src/node.rs:6:24 [INFO] [stderr] | [INFO] [stderr] 6 | convert::{TryFrom, TryInto}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 10 | process::Child, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ContainsResult` and `RangeResult` [INFO] [stderr] --> src/node.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | ContainsResult, GetResult, InnerNodeProof, KVProof, MembershipProof, NonMembershipProof, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 20 | RangeResult, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Scalar` [INFO] [stderr] --> src/proofs.rs:3:24 [INFO] [stderr] | [INFO] [stderr] 3 | use bls12_381::{Bls12, Scalar}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `either::Either` [INFO] [stderr] --> src/proofs.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use either::Either; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stderr] --> src/proofs.rs:161:23 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stderr] | ------- the late bound lifetime parameter is introduced here [INFO] [stderr] ... [INFO] [stderr] 161 | .verify::<'_, K, MAX_KEY_LEN>(key, value_hash, verifier) [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #42868 [INFO] [stderr] = note: `#[warn(late_bound_lifetime_arguments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stderr] --> src/proofs.rs:366:35 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stderr] | ------- the late bound lifetime parameter is introduced here [INFO] [stderr] ... [INFO] [stderr] 366 | left.verify::<'params, [u8; MAX_KEY_LEN], MAX_KEY_LEN>( [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #42868 [INFO] [stderr] [INFO] [stderr] warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stderr] --> src/proofs.rs:370:41 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn verify<'params, K: AsRef<[u8]>, const MAX_KEY_LEN: usize>( [INFO] [stderr] | ------- the late bound lifetime parameter is introduced here [INFO] [stderr] ... [INFO] [stderr] 370 | ) && right.verify::<'params, [u8; MAX_KEY_LEN], MAX_KEY_LEN>( [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #42868 [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path_ok` [INFO] [stderr] --> src/proofs.rs:144:14 [INFO] [stderr] | [INFO] [stderr] 144 | let (path_ok, prev_child_hash) = verify_path(None, &self.path, &self.commitments, verifier); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_ok` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `leaf_proof` [INFO] [stderr] --> src/proofs.rs:381:17 [INFO] [stderr] | [INFO] [stderr] 381 | leaf_proof, [INFO] [stderr] | ^^^^^^^^^^ help: try ignoring the field: `leaf_proof: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `key` [INFO] [stderr] --> src/proofs.rs:382:17 [INFO] [stderr] | [INFO] [stderr] 382 | key, [INFO] [stderr] | ^^^ help: try ignoring the field: `key: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> src/proofs.rs:383:17 [INFO] [stderr] | [INFO] [stderr] 383 | value, [INFO] [stderr] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/lib.rs:64:19 [INFO] [stderr] | [INFO] [stderr] 63 | impl KeyWithCounter { [INFO] [stderr] | ---------------------------------------------------------- associated function in this implementation [INFO] [stderr] 64 | pub(crate) fn new(key: [u8; MAX_KEY_LEN], count: usize) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: methods `get_batch_witness` and `get_by_path` are never used [INFO] [stderr] --> src/node.rs:172:19 [INFO] [stderr] | [INFO] [stderr] 111 | / impl<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stderr] 112 | | Node<'params, Q, MAX_KEY_LEN, MAX_VAL_LEN> [INFO] [stderr] | |______________________________________________- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 172 | pub(crate) fn get_batch_witness(&self, idxs: Range) -> KZGBatchWitness { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 660 | pub(crate) fn get_by_path( [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `hash` is never used [INFO] [stderr] --> src/node.rs:709:19 [INFO] [stderr] | [INFO] [stderr] 708 | impl KeyWithCounter { [INFO] [stderr] | ---------------------------------------------------------- method in this implementation [INFO] [stderr] 709 | pub(crate) fn hash(&self) -> Blake3Hash { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `batch_witness` is never read [INFO] [stderr] --> src/node.rs:738:16 [INFO] [stderr] | [INFO] [stderr] 730 | pub struct InternalNode<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 738 | pub(crate) batch_witness: Option>, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `InternalNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/node.rs:758:19 [INFO] [stderr] | [INFO] [stderr] 755 | / impl<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stderr] 756 | | InternalNode<'params, Q, MAX_KEY_LEN, MAX_VAL_LEN> [INFO] [stderr] | |______________________________________________________- associated function in this implementation [INFO] [stderr] 757 | { [INFO] [stderr] 758 | pub(crate) fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `batch_witness` is never read [INFO] [stderr] --> src/node.rs:1380:16 [INFO] [stderr] | [INFO] [stderr] 1373 | pub struct LeafNode<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 1380 | pub(crate) batch_witness: Option>, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LeafNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/proofs.rs:481:15 [INFO] [stderr] | [INFO] [stderr] 481 | KeyExists(MembershipProof), [INFO] [stderr] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 481 | KeyExists(()), [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] warning: fields `left_path`, `right_path`, `witnesses`, `commitments`, and `bitvecs` are never read [INFO] [stderr] --> src/proofs.rs:487:16 [INFO] [stderr] | [INFO] [stderr] 486 | pub struct RangeProof { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] 487 | pub(crate) left_path: RangePath, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 488 | pub(crate) right_path: RangePath, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 489 | pub(crate) witnesses: Vec>>, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 490 | pub(crate) commitments: Vec>>, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 491 | pub(crate) bitvecs: Vec, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `left` and `proof` are never read [INFO] [stderr] --> src/proofs.rs:511:16 [INFO] [stderr] | [INFO] [stderr] 509 | pub struct RangeResult<'params, const Q: usize, const MAX_KEY_LEN: usize, const MAX_VAL_LEN: usize> [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 510 | { [INFO] [stderr] 511 | pub(crate) left: [u8; MAX_KEY_LEN], [INFO] [stderr] | ^^^^ [INFO] [stderr] 512 | pub(crate) right: [u8; MAX_KEY_LEN], [INFO] [stderr] 513 | pub(crate) proof: RangeProof, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fmt::Debug` [INFO] [stderr] --> src/test_utils.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::fmt::Debug; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `verifier` [INFO] [stderr] --> src/lib.rs:561:13 [INFO] [stderr] | [INFO] [stderr] 561 | let verifier = KZGVerifier::new(¶ms); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verifier` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> src/lib.rs:585:19 [INFO] [stderr] | [INFO] [stderr] 585 | for (key, value) in keys.iter().zip(values.iter()) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `verifier` [INFO] [stderr] --> src/lib.rs:605:13 [INFO] [stderr] | [INFO] [stderr] 605 | let verifier = KZGVerifier::new(¶ms); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verifier` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `proof` [INFO] [stderr] --> src/lib.rs:727:17 [INFO] [stderr] | [INFO] [stderr] 727 | let proof = tree [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proof` [INFO] [stderr] [INFO] [stderr] warning: constant `RAND_SEED` is never used [INFO] [stderr] --> src/lib.rs:445:11 [INFO] [stderr] | [INFO] [stderr] 445 | const RAND_SEED: u64 = 42; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `berkletree` (lib) generated 22 warnings (run `cargo fix --lib -p berkletree` to apply 6 suggestions) [INFO] [stderr] warning: `berkletree` (lib test) generated 28 warnings (22 duplicates) (run `cargo fix --lib -p berkletree --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/berkletree-8f36f62cc8e668af) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test tests::test_insert_no_dupes ... ok [INFO] [stdout] test tests::test_insert_with_dupes ... ok [INFO] [stdout] test tests::test_delete ... ok [INFO] [stdout] test tests::test_get ... ok [INFO] [stdout] test tests::test_range ... ok [INFO] [stdout] test tests::test_all_bigish ... ok [INFO] [stderr] Doc-tests berkletree [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 19.78s [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" "0a23034b85e63f8611a4f96e6b5292b1e55328bc6e15b609bd31e2b71f113616", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a23034b85e63f8611a4f96e6b5292b1e55328bc6e15b609bd31e2b71f113616", kill_on_drop: false }` [INFO] [stdout] 0a23034b85e63f8611a4f96e6b5292b1e55328bc6e15b609bd31e2b71f113616