[INFO] fetching crate merkle-heapless 0.0.7... [INFO] testing merkle-heapless-0.0.7 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate merkle-heapless 0.0.7 into /workspace/builds/worker-3-tc2/source [INFO] removed /workspace/builds/worker-3-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate merkle-heapless 0.0.7 [INFO] finished tweaking crates.io crate merkle-heapless 0.0.7 [INFO] tweaked toml for crates.io crate merkle-heapless 0.0.7 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate merkle-heapless 0.0.7 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 7 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d7bde6fd770390f51a5cd94cb86a85d034b6aa7c9fc9083b5a9fa0067b197d86 [INFO] running `Command { std: "docker" "start" "-a" "d7bde6fd770390f51a5cd94cb86a85d034b6aa7c9fc9083b5a9fa0067b197d86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d7bde6fd770390f51a5cd94cb86a85d034b6aa7c9fc9083b5a9fa0067b197d86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7bde6fd770390f51a5cd94cb86a85d034b6aa7c9fc9083b5a9fa0067b197d86", kill_on_drop: false }` [INFO] [stdout] d7bde6fd770390f51a5cd94cb86a85d034b6aa7c9fc9083b5a9fa0067b197d86 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91dedbc6660630cba518f055a713b6a8b8a1f7faf065d49cc10b5d3a4286de7f [INFO] running `Command { std: "docker" "start" "-a" "91dedbc6660630cba518f055a713b6a8b8a1f7faf065d49cc10b5d3a4286de7f", kill_on_drop: false }` [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling mmr-macro v0.0.7 [INFO] [stderr] Compiling merkle-heapless v0.0.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/compactable.rs:104:35 [INFO] [stdout] | [INFO] [stdout] 104 | .filter(|&(_, h)| (h != &default_hash)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 104 - .filter(|&(_, h)| (h != &default_hash)) [INFO] [stdout] 104 + .filter(|&(_, h)| h != &default_hash) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.75s [INFO] running `Command { std: "docker" "inspect" "91dedbc6660630cba518f055a713b6a8b8a1f7faf065d49cc10b5d3a4286de7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91dedbc6660630cba518f055a713b6a8b8a1f7faf065d49cc10b5d3a4286de7f", kill_on_drop: false }` [INFO] [stdout] 91dedbc6660630cba518f055a713b6a8b8a1f7faf065d49cc10b5d3a4286de7f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 132bfaf53943c6ca694476d4e5872394295e9f4cd093584370eb5a59a80d1fbe [INFO] running `Command { std: "docker" "start" "-a" "132bfaf53943c6ca694476d4e5872394295e9f4cd093584370eb5a59a80d1fbe", kill_on_drop: false }` [INFO] [stderr] Compiling merkle-heapless v0.0.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/compactable.rs:104:35 [INFO] [stdout] | [INFO] [stdout] 104 | .filter(|&(_, h)| (h != &default_hash)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 104 - .filter(|&(_, h)| (h != &default_hash)) [INFO] [stdout] 104 + .filter(|&(_, h)| h != &default_hash) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/compactable.rs:104:35 [INFO] [stdout] | [INFO] [stdout] 104 | .filter(|&(_, h)| (h != &default_hash)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 104 - .filter(|&(_, h)| (h != &default_hash)) [INFO] [stdout] 104 + .filter(|&(_, h)| h != &default_hash) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "132bfaf53943c6ca694476d4e5872394295e9f4cd093584370eb5a59a80d1fbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "132bfaf53943c6ca694476d4e5872394295e9f4cd093584370eb5a59a80d1fbe", kill_on_drop: false }` [INFO] [stdout] 132bfaf53943c6ca694476d4e5872394295e9f4cd093584370eb5a59a80d1fbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] aa0421a5ee3b03015e829d376fb118af79a0cf98e16eebc14c309d1fea7e4cd1 [INFO] running `Command { std: "docker" "start" "-a" "aa0421a5ee3b03015e829d376fb118af79a0cf98e16eebc14c309d1fea7e4cd1", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stderr] --> src/compactable.rs:104:35 [INFO] [stderr] | [INFO] [stderr] 104 | .filter(|&(_, h)| (h != &default_hash)) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 104 - .filter(|&(_, h)| (h != &default_hash)) [INFO] [stderr] 104 + .filter(|&(_, h)| h != &default_hash) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `merkle-heapless` (lib) generated 1 warning (run `cargo fix --lib -p merkle-heapless` to apply 1 suggestion) [INFO] [stderr] warning: `merkle-heapless` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/merkle_heapless-627c8df7418fede5) [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] Doc-tests merkle_heapless [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stderr] --> src/compactable.rs:104:35 [INFO] [stderr] | [INFO] [stderr] 104 | .filter(|&(_, h)| (h != &default_hash)) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 104 - .filter(|&(_, h)| (h != &default_hash)) [INFO] [stderr] 104 + .filter(|&(_, h)| h != &default_hash) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/lib.rs - (line 95) ... FAILED [INFO] [stdout] test src/lib.rs - (line 128) ... FAILED [INFO] [stdout] test src/lib.rs - (line 109) ... FAILED [INFO] [stdout] test src/lib.rs - compactable (line 148) ... FAILED [INFO] [stdout] test src/lib.rs - augmentable (line 166) ... FAILED [INFO] [stdout] test src/lib.rs - (line 63) ... FAILED [INFO] [stdout] test src/lib.rs - (line 31) ... FAILED [INFO] [stdout] test src/lib.rs - (line 80) ... FAILED [INFO] [stdout] test src/lib.rs - augmentable (line 146) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 95) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `MAX_HEIGHT` in this scope [INFO] [stdout] --> src/lib.rs:101:36 [INFO] [stdout] | [INFO] [stdout] 9 | let mut tree = StaticTree::::try_from::<&[u8]>( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_95_0() { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `YourHash` in this scope [INFO] [stdout] --> src/lib.rs:101:48 [INFO] [stdout] | [INFO] [stdout] 9 | let mut tree = StaticTree::::try_from::<&[u8]>( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_95_0() { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0747]: unresolved item provided when a constant was expected [INFO] [stdout] --> src/lib.rs:101:36 [INFO] [stdout] | [INFO] [stdout] 9 | let mut tree = StaticTree::::try_from::<&[u8]>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this generic argument was intended as a const parameter, surround it with braces [INFO] [stdout] | [INFO] [stdout] 9 | let mut tree = StaticTree::::try_from::<&[u8]>( [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 10 | &[b"apple", b"banana"] [INFO] [stdout] | ^^^^^^^^^ expected an array with a size of 5, found one with a size of 6 [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0747. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 128) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mmr` in this scope [INFO] [stdout] --> src/lib.rs:129:1 [INFO] [stdout] | [INFO] [stdout] 3 | mmr.try_append(b"apple").unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mmr` in this scope [INFO] [stdout] --> src/lib.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(mmr.peaks()[0].height(), 0); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mmr` in this scope [INFO] [stdout] --> src/lib.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(mmr.peaks()[0].num_of_leaves(), 1); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mmr` in this scope [INFO] [stdout] --> src/lib.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!(mmr.peaks()[1].num_of_leaves(), 0); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mmr` in this scope [INFO] [stdout] --> src/lib.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 8 | let proof = mmr.generate_proof(0); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 109) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `merkle_heapless::mmr_macro` [INFO] [stdout] --> src/lib.rs:117:23 [INFO] [stdout] | [INFO] [stdout] 11 | use merkle_heapless::{mmr_macro}; [INFO] [stdout] | ^^^^^^^^^ no `mmr_macro` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 157 | #[cfg(feature = "mmr_macro")] [INFO] [stdout] | --------------------- the item is gated behind the `mmr_macro` feature [INFO] [stdout] 158 | pub use mmr_macro; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `super` [INFO] [stdout] --> src/lib.rs:119:1 [INFO] [stdout] | [INFO] [stdout] 13 | mmr_macro::mmr!(Type = FooMMR, BranchFactor = 2, Peaks = 3, Hash = StdHash, MaxInputWordLength = 10); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `StdHash` in the root [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `mmr_macro::mmr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `super` [INFO] [stdout] --> src/lib.rs:122:1 [INFO] [stdout] | [INFO] [stdout] 16 | mmr_macro::mmr!(BranchFactor = 2, Peaks = 5, Hash = StdHash, MaxInputWordLength = 10); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `StdHash` in the root [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `mmr_macro::mmr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `height` found for enum `MerkleMountainRangePeak` in the current scope [INFO] [stdout] --> src/lib.rs:127:27 [INFO] [stdout] | [INFO] [stdout] 16 | mmr_macro::mmr!(BranchFactor = 2, Peaks = 5, Hash = StdHash, MaxInputWordLength = 10); [INFO] [stdout] | ------------------------------------------------------------------------------------- method `height` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 21 | assert_eq!(mmr.peaks()[0].height(), 5 - 3); [INFO] [stdout] | ^^^^^^ method not found in `MerkleMountainRangePeak` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | fn height(&self) -> usize; [INFO] [stdout] | ------ the method is available for `MerkleMountainRangePeak` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `StaticTreeTrait` which provides `height` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 8 + use crate::merkle_heapless::traits::StaticTreeTrait; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - compactable (line 148) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `StdHash` in this scope [INFO] [stdout] --> src/lib.rs:155:51 [INFO] [stdout] | [INFO] [stdout] 10 | let mut cmt = DefaultCompactable::::try_from::<&[u8]>(&[ [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_148_0() { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 4 generic arguments but 3 generic arguments were supplied [INFO] [stdout] --> src/lib.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 10 | let mut cmt = DefaultCompactable::::try_from::<&[u8]>(&[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ----- ------ ------- supplied 3 generic arguments [INFO] [stdout] | | [INFO] [stdout] | expected 4 generic arguments [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 4 generic parameters: `ARITY`, `HEIGHT`, `H`, `MAX_INPUT_LEN` [INFO] [stdout] --> /opt/rustwide/workdir/src/compactable.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub type DefaultCompactable< [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | const ARITY: usize, [INFO] [stdout] | ------------------ [INFO] [stdout] 21 | const HEIGHT: usize, [INFO] [stdout] | ------------------- [INFO] [stdout] 22 | H, [INFO] [stdout] | - [INFO] [stdout] 23 | const MAX_INPUT_LEN: usize, [INFO] [stdout] | -------------------------- [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 10 | let mut cmt = DefaultCompactable::::try_from::<&[u8]>(&[ [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - augmentable (line 166) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DefaultAugmentable` [INFO] [stdout] --> src/lib.rs:168:11 [INFO] [stdout] | [INFO] [stdout] 4 | let mt2 = DefaultAugmentable::::try_from::<&[u8]>(&[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `DefaultAugmentable` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use merkle_heapless::augmentable::DefaultAugmentable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ARITY` in this scope [INFO] [stdout] --> src/lib.rs:168:32 [INFO] [stdout] | [INFO] [stdout] 4 | let mt2 = DefaultAugmentable::::try_from::<&[u8]>(&[ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HEIGHT_2` in this scope [INFO] [stdout] --> src/lib.rs:168:39 [INFO] [stdout] | [INFO] [stdout] 4 | let mt2 = DefaultAugmentable::::try_from::<&[u8]>(&[ [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StdHash` in this scope [INFO] [stdout] --> src/lib.rs:168:49 [INFO] [stdout] | [INFO] [stdout] 4 | let mt2 = DefaultAugmentable::::try_from::<&[u8]>(&[ [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MAX_WORD_LEN` in this scope [INFO] [stdout] --> src/lib.rs:168:58 [INFO] [stdout] | [INFO] [stdout] 4 | let mt2 = DefaultAugmentable::::try_from::<&[u8]>(&[ [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mt` in this scope [INFO] [stdout] --> src/lib.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 8 | mt.try_merge(mt2).unwrap(); [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `mt2` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 63) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `YourHash` in this scope [INFO] [stdout] --> src/lib.rs:72:47 [INFO] [stdout] | [INFO] [stdout] 12 | let mut tree = StaticBinaryTree::::try_from::<&[u8]>( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_63_0() { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 13 | &[b"apple", b"banana"] [INFO] [stdout] | ^^^^^^^^^ expected an array with a size of 5, found one with a size of 6 [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 31) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `[u8; 32]: From` is not satisfied [INFO] [stdout] --> src/lib.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 14 | type Output = [u8; 32]; [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `[u8; 32]` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `[T; 10]` implements `From<(T, T, T, T, T, T, T, T, T, T)>` [INFO] [stdout] `[T; 11]` implements `From<(T, T, T, T, T, T, T, T, T, T, T)>` [INFO] [stdout] `[T; 12]` implements `From<(T, T, T, T, T, T, T, T, T, T, T, T)>` [INFO] [stdout] `[T; 1]` implements `From<(T,)>` [INFO] [stdout] `[T; 2]` implements `From<(T, T)>` [INFO] [stdout] `[T; 3]` implements `From<(T, T, T)>` [INFO] [stdout] `[T; 4]` implements `From<(T, T, T, T)>` [INFO] [stdout] `[T; 5]` implements `From<(T, T, T, T, T)>` [INFO] [stdout] and 6 others [INFO] [stdout] note: required by a bound in `merkle_heapless::traits::HashT::Output` [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:15:63 [INFO] [stdout] | [INFO] [stdout] 15 | type Output: Hash + Default + Copy + PartialEq + Debug + From; [INFO] [stdout] | ^^^^^^^^ required by this bound in `HashT::Output` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 8]: From` is not satisfied [INFO] [stdout] --> src/lib.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 25 | type Output = [u8; 8]; [INFO] [stdout] | ^^^^^^^ the trait `From` is not implemented for `[u8; 8]` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `[T; 10]` implements `From<(T, T, T, T, T, T, T, T, T, T)>` [INFO] [stdout] `[T; 11]` implements `From<(T, T, T, T, T, T, T, T, T, T, T)>` [INFO] [stdout] `[T; 12]` implements `From<(T, T, T, T, T, T, T, T, T, T, T, T)>` [INFO] [stdout] `[T; 1]` implements `From<(T,)>` [INFO] [stdout] `[T; 2]` implements `From<(T, T)>` [INFO] [stdout] `[T; 3]` implements `From<(T, T, T)>` [INFO] [stdout] `[T; 4]` implements `From<(T, T, T, T)>` [INFO] [stdout] `[T; 5]` implements `From<(T, T, T, T, T)>` [INFO] [stdout] and 6 others [INFO] [stdout] note: required by a bound in `merkle_heapless::traits::HashT::Output` [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:15:63 [INFO] [stdout] | [INFO] [stdout] 15 | type Output: Hash + Default + Copy + PartialEq + Debug + From; [INFO] [stdout] | ^^^^^^^^ required by this bound in `HashT::Output` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sp_core` [INFO] [stdout] --> src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 18 | sp_core::blake2_256(input) [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `sp_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `sp_core`, use `cargo add sp_core` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 80) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `tree` in this scope [INFO] [stdout] --> src/lib.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 5 | tree.replace(5, b"cherry"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tree` in this scope [INFO] [stdout] --> src/lib.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 6 | let proof = tree.generate_proof(5); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tree` in this scope [INFO] [stdout] --> src/lib.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 9 | tree.replace(1, &[]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tree` in this scope [INFO] [stdout] --> src/lib.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 10 | let proof = tree.generate_proof(1); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tree` in this scope [INFO] [stdout] --> src/lib.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 12 | let proof = tree.generate_proof(1); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - augmentable (line 146) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `HEIGHT` in this scope [INFO] [stdout] --> src/lib.rs:155:39 [INFO] [stdout] | [INFO] [stdout] 12 | let mt1 = DefaultAugmentable::::try_from::<&[u8]>(&[ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_146_0() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StdHash` in this scope [INFO] [stdout] --> src/lib.rs:155:47 [INFO] [stdout] | [INFO] [stdout] 12 | let mt1 = DefaultAugmentable::::try_from::<&[u8]>(&[ [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_146_0() { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0747]: unresolved item provided when a constant was expected [INFO] [stdout] --> src/lib.rs:155:39 [INFO] [stdout] | [INFO] [stdout] 12 | let mt1 = DefaultAugmentable::::try_from::<&[u8]>(&[ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this generic argument was intended as a const parameter, surround it with braces [INFO] [stdout] | [INFO] [stdout] 12 | let mt1 = DefaultAugmentable::::try_from::<&[u8]>(&[ [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0747. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 109) [INFO] [stdout] src/lib.rs - (line 128) [INFO] [stdout] src/lib.rs - (line 31) [INFO] [stdout] src/lib.rs - (line 63) [INFO] [stdout] src/lib.rs - (line 80) [INFO] [stdout] src/lib.rs - (line 95) [INFO] [stdout] src/lib.rs - augmentable (line 146) [INFO] [stdout] src/lib.rs - augmentable (line 166) [INFO] [stdout] src/lib.rs - compactable (line 148) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.72s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "aa0421a5ee3b03015e829d376fb118af79a0cf98e16eebc14c309d1fea7e4cd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa0421a5ee3b03015e829d376fb118af79a0cf98e16eebc14c309d1fea7e4cd1", kill_on_drop: false }` [INFO] [stdout] aa0421a5ee3b03015e829d376fb118af79a0cf98e16eebc14c309d1fea7e4cd1