[INFO] fetching crate sn_dbc 20.0.0... [INFO] testing sn_dbc-20.0.0 against 1.90.0 for beta-1.91-3 [INFO] extracting crate sn_dbc 20.0.0 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate sn_dbc 20.0.0 [INFO] finished tweaking crates.io crate sn_dbc 20.0.0 [INFO] tweaked toml for crates.io crate sn_dbc 20.0.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sn_dbc 20.0.0 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "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" "+1.90.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 171 packages to latest compatible versions [INFO] [stderr] Adding bincode v1.3.3 (available: v2.0.1) [INFO] [stderr] Adding criterion v0.4.0 (available: v0.7.0) [INFO] [stderr] Adding custom_debug v0.5.1 (available: v0.6.2) [INFO] [stderr] Adding pprof v0.11.1 (available: v0.15.0) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.17) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded custom_debug v0.5.1 [INFO] [stderr] Downloaded symbolic-common v10.2.1 [INFO] [stderr] Downloaded custom_debug_derive v0.5.1 [INFO] [stderr] Downloaded findshlibs v0.10.2 [INFO] [stderr] Downloaded str_stack v0.1.0 [INFO] [stderr] Downloaded pairing v0.22.0 [INFO] [stderr] Downloaded pprof v0.11.1 [INFO] [stderr] Downloaded blstrs v0.6.2 [INFO] [stderr] Downloaded cpp_demangle v0.4.5 [INFO] [stderr] Downloaded blsttc v8.0.2 [INFO] [stderr] Downloaded quick-xml v0.26.0 [INFO] [stderr] Downloaded hex_fmt v0.3.0 [INFO] [stderr] Downloaded symbolic-demangle v10.2.1 [INFO] [stderr] Downloaded inferno v0.11.21 [INFO] [stderr] Downloaded blst v0.3.16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e18e97859873c0bcdf447fb8fdc39f088d2060c698c735fdfc7566d2e7091578 [INFO] running `Command { std: "docker" "start" "-a" "e18e97859873c0bcdf447fb8fdc39f088d2060c698c735fdfc7566d2e7091578", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e18e97859873c0bcdf447fb8fdc39f088d2060c698c735fdfc7566d2e7091578", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e18e97859873c0bcdf447fb8fdc39f088d2060c698c735fdfc7566d2e7091578", kill_on_drop: false }` [INFO] [stdout] e18e97859873c0bcdf447fb8fdc39f088d2060c698c735fdfc7566d2e7091578 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e00a4980f121ca763c8bf9a543669f04b5a4c169c0076a4fe3f8762af1de95a [INFO] running `Command { std: "docker" "start" "-a" "2e00a4980f121ca763c8bf9a543669f04b5a4c169c0076a4fe3f8762af1de95a", kill_on_drop: false }` [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling blst v0.3.16 [INFO] [stderr] Compiling byte-slice-cast v1.2.3 [INFO] [stderr] Compiling hex_fmt v0.3.0 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_xorshift v0.3.0 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling ff v0.12.1 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling group v0.12.1 [INFO] [stderr] Compiling pairing v0.22.0 [INFO] [stderr] Compiling custom_debug_derive v0.5.1 [INFO] [stderr] Compiling custom_debug v0.5.1 [INFO] [stderr] Compiling blstrs v0.6.2 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling blsttc v8.0.2 [INFO] [stderr] Compiling sn_dbc v20.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/transaction.rs:192:75 [INFO] [stdout] | [INFO] [stdout] 192 | let unique_dbc_ids: BTreeSet = self.outputs.iter().map(|o| (*o.dbc_id())).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 - let unique_dbc_ids: BTreeSet = self.outputs.iter().map(|o| (*o.dbc_id())).collect(); [INFO] [stdout] 192 + let unique_dbc_ids: BTreeSet = self.outputs.iter().map(|o| *o.dbc_id()).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/dbc.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(custom_debug::Debug, Clone, Eq, PartialEq)] [INFO] [stdout] | ^------------------ [INFO] [stdout] | | [INFO] [stdout] | `Debug` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Debug_FOR_Dbc` [INFO] [stdout] 59 | pub struct Dbc { [INFO] [stdout] | --- `Dbc` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `custom_debug::Debug` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `custom_debug::Debug` may come from an old version of the `custom_debug_derive` crate, try updating your dependency with `cargo update -p custom_debug_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `custom_debug::Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/signed_spend.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, Clone, PartialOrd, Ord)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Debug` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Debug_FOR_SignedSpend` [INFO] [stdout] 18 | pub struct SignedSpend { [INFO] [stdout] | ----------- `SignedSpend` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Debug` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Debug` may come from an old version of the `custom_debug_derive` crate, try updating your dependency with `cargo update -p custom_debug_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/signed_spend.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 108 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Debug` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Debug_FOR_Spend` [INFO] [stdout] 109 | pub struct Spend { [INFO] [stdout] | ----- `Spend` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Debug` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Debug` may come from an old version of the `custom_debug_derive` crate, try updating your dependency with `cargo update -p custom_debug_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.47s [INFO] running `Command { std: "docker" "inspect" "2e00a4980f121ca763c8bf9a543669f04b5a4c169c0076a4fe3f8762af1de95a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e00a4980f121ca763c8bf9a543669f04b5a4c169c0076a4fe3f8762af1de95a", kill_on_drop: false }` [INFO] [stdout] 2e00a4980f121ca763c8bf9a543669f04b5a4c169c0076a4fe3f8762af1de95a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14ddbc61a8ad9dd1a945fa1e9277f0038b713b940be790ed317966c6627b6d33 [INFO] running `Command { std: "docker" "start" "-a" "14ddbc61a8ad9dd1a945fa1e9277f0038b713b940be790ed317966c6627b6d33", kill_on_drop: false }` [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling cpp_demangle v0.4.5 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling findshlibs v0.10.2 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling symbolic-demangle v10.2.1 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling os_str_bytes v6.6.1 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling quick-xml v0.26.0 [INFO] [stderr] Compiling str_stack v0.1.0 [INFO] [stderr] Compiling textwrap v0.16.2 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling pprof v0.11.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling num-format v0.4.4 [INFO] [stderr] Compiling rgb v0.8.52 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling debugid v0.8.0 [INFO] [stderr] Compiling symbolic-common v10.2.1 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling clap v3.2.25 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling quickcheck v1.0.3 [INFO] [stderr] Compiling quickcheck_macros v1.1.0 [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/transaction.rs:192:75 [INFO] [stdout] | [INFO] [stdout] 192 | let unique_dbc_ids: BTreeSet = self.outputs.iter().map(|o| (*o.dbc_id())).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 - let unique_dbc_ids: BTreeSet = self.outputs.iter().map(|o| (*o.dbc_id())).collect(); [INFO] [stdout] 192 + let unique_dbc_ids: BTreeSet = self.outputs.iter().map(|o| *o.dbc_id()).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/dbc.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(custom_debug::Debug, Clone, Eq, PartialEq)] [INFO] [stdout] | ^------------------ [INFO] [stdout] | | [INFO] [stdout] | `Debug` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Debug_FOR_Dbc` [INFO] [stdout] 59 | pub struct Dbc { [INFO] [stdout] | --- `Dbc` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `custom_debug::Debug` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `custom_debug::Debug` may come from an old version of the `custom_debug_derive` crate, try updating your dependency with `cargo update -p custom_debug_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `custom_debug::Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/signed_spend.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, Clone, PartialOrd, Ord)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Debug` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Debug_FOR_SignedSpend` [INFO] [stdout] 18 | pub struct SignedSpend { [INFO] [stdout] | ----------- `SignedSpend` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Debug` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Debug` may come from an old version of the `custom_debug_derive` crate, try updating your dependency with `cargo update -p custom_debug_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/signed_spend.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 108 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | `Debug` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_core_fmt_Debug_FOR_Spend` [INFO] [stdout] 109 | pub struct Spend { [INFO] [stdout] | ----- `Spend` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Debug` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Debug` may come from an old version of the `custom_debug_derive` crate, try updating your dependency with `cargo update -p custom_debug_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling inferno v0.11.21 [INFO] [stderr] Compiling criterion v0.4.0 [INFO] [stderr] Compiling sn_dbc v20.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `crate::mock` [INFO] [stdout] --> src/dbc.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | mock, [INFO] [stdout] | ^^^^ no `mock` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this module instead: [INFO] [stdout] crate::rand::rngs::mock [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(feature = "mock")] [INFO] [stdout] | ---------------- the item is gated behind the `mock` feature [INFO] [stdout] 23 | pub mod mock; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::mock` [INFO] [stdout] --> src/spentbook.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | mock, random_derivation_index, [INFO] [stdout] | ^^^^ no `mock` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this module instead: [INFO] [stdout] crate::rand::rngs::mock [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(feature = "mock")] [INFO] [stdout] | ---------------- the item is gated behind the `mock` feature [INFO] [stdout] 23 | pub mod mock; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/transaction.rs:192:75 [INFO] [stdout] | [INFO] [stdout] 192 | let unique_dbc_ids: BTreeSet = self.outputs.iter().map(|o| (*o.dbc_id())).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 - let unique_dbc_ids: BTreeSet = self.outputs.iter().map(|o| (*o.dbc_id())).collect(); [INFO] [stdout] 192 + let unique_dbc_ids: BTreeSet = self.outputs.iter().map(|o| *o.dbc_id()).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_hex` found for struct `dbc::Dbc` in the current scope [INFO] [stdout] --> src/dbc.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Dbc { [INFO] [stdout] | -------------- method `to_hex` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 227 | let hex = dbc.to_hex()?; [INFO] [stdout] | ^^^^^^ method not found in `dbc::Dbc` [INFO] [stdout] | [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 227 | let hex = dbc.secrets.public_address.0.to_hex()?; [INFO] [stdout] | +++++++++++++++++++++++++ [INFO] [stdout] 227 | let hex = dbc.src_tx.fee.id.to_hex()?; [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_hex` found for struct `dbc::Dbc` in the current scope [INFO] [stdout] --> src/dbc.rs:229:24 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Dbc { [INFO] [stdout] | -------------- function or associated item `from_hex` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 229 | let dbc = Dbc::from_hex(&hex)?; [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `dbc::Dbc` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_hex`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromHex` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 229 - let dbc = Dbc::from_hex(&hex)?; [INFO] [stdout] 229 + let dbc = Dbc::from(&hex)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_hex` found for struct `dbc::Dbc` in the current scope [INFO] [stdout] --> src/dbc.rs:258:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Dbc { [INFO] [stdout] | -------------- method `to_hex` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 258 | let hex = dbc.to_hex()?; [INFO] [stdout] | ^^^^^^ method not found in `dbc::Dbc` [INFO] [stdout] | [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 258 | let hex = dbc.secrets.public_address.0.to_hex()?; [INFO] [stdout] | +++++++++++++++++++++++++ [INFO] [stdout] 258 | let hex = dbc.src_tx.fee.id.to_hex()?; [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_hex` found for struct `dbc::Dbc` in the current scope [INFO] [stdout] --> src/dbc.rs:259:33 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Dbc { [INFO] [stdout] | -------------- function or associated item `from_hex` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 259 | let dbc_from_hex = Dbc::from_hex(&hex)?; [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `dbc::Dbc` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_hex`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromHex` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 259 - let dbc_from_hex = Dbc::from_hex(&hex)?; [INFO] [stdout] 259 + let dbc_from_hex = Dbc::from(&hex)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sn_dbc` (lib test) due to 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "14ddbc61a8ad9dd1a945fa1e9277f0038b713b940be790ed317966c6627b6d33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14ddbc61a8ad9dd1a945fa1e9277f0038b713b940be790ed317966c6627b6d33", kill_on_drop: false }` [INFO] [stdout] 14ddbc61a8ad9dd1a945fa1e9277f0038b713b940be790ed317966c6627b6d33