[INFO] fetching crate sn_dbc 20.0.0... [INFO] testing sn_dbc-20.0.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate sn_dbc 20.0.0 into /workspace/builds/worker-2-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-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sn_dbc 20.0.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded str_stack v0.1.0 [INFO] [stderr] Downloaded custom_debug v0.5.1 [INFO] [stderr] Downloaded custom_debug_derive v0.5.1 [INFO] [stderr] Downloaded symbolic-common v10.2.1 [INFO] [stderr] Downloaded ff v0.12.1 [INFO] [stderr] Downloaded group v0.12.1 [INFO] [stderr] Downloaded pprof v0.11.1 [INFO] [stderr] Downloaded blstrs v0.6.2 [INFO] [stderr] Downloaded blsttc v8.0.2 [INFO] [stderr] Downloaded cpp_demangle v0.4.5 [INFO] [stderr] Downloaded criterion v0.4.0 [INFO] [stderr] Downloaded quick-xml v0.26.0 [INFO] [stderr] Downloaded inferno v0.11.21 [INFO] [stderr] Downloaded pairing v0.22.0 [INFO] [stderr] Downloaded findshlibs v0.10.2 [INFO] [stderr] Downloaded symbolic-demangle v10.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d3acb9c80037fdb47ee4c73a368146271ca4f00d457222fe9862f15d067488b4 [INFO] running `Command { std: "docker" "start" "-a" "d3acb9c80037fdb47ee4c73a368146271ca4f00d457222fe9862f15d067488b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d3acb9c80037fdb47ee4c73a368146271ca4f00d457222fe9862f15d067488b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3acb9c80037fdb47ee4c73a368146271ca4f00d457222fe9862f15d067488b4", kill_on_drop: false }` [INFO] [stdout] d3acb9c80037fdb47ee4c73a368146271ca4f00d457222fe9862f15d067488b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] feb19d7a2e8b8bd8380c9526588ae439849a78dff37ee128c519bafed8f5fdaf [INFO] running `Command { std: "docker" "start" "-a" "feb19d7a2e8b8bd8380c9526588ae439849a78dff37ee128c519bafed8f5fdaf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling byte-slice-cast v1.2.3 [INFO] [stderr] Compiling hex_fmt v0.3.0 [INFO] [stderr] Compiling blst v0.3.16 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ff v0.12.1 [INFO] [stderr] Compiling rand_xorshift v0.3.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling custom_debug_derive v0.5.1 [INFO] [stderr] Compiling custom_debug v0.5.1 [INFO] [stderr] Compiling group v0.12.1 [INFO] [stderr] Compiling pairing v0.22.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling thiserror v1.0.69 [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 16.86s [INFO] running `Command { std: "docker" "inspect" "feb19d7a2e8b8bd8380c9526588ae439849a78dff37ee128c519bafed8f5fdaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "feb19d7a2e8b8bd8380c9526588ae439849a78dff37ee128c519bafed8f5fdaf", kill_on_drop: false }` [INFO] [stdout] feb19d7a2e8b8bd8380c9526588ae439849a78dff37ee128c519bafed8f5fdaf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ec6fec28711ca99ffe667d96a4234491b4d406b0b6f905ce9c492cb53c601e0 [INFO] running `Command { std: "docker" "start" "-a" "9ec6fec28711ca99ffe667d96a4234491b4d406b0b6f905ce9c492cb53c601e0", kill_on_drop: false }` [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling cpp_demangle v0.4.5 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling memmap2 v0.5.10 [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 os_str_bytes v6.6.1 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling num-format v0.4.4 [INFO] [stderr] Compiling rgb v0.8.52 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling debugid v0.8.0 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling symbolic-common v10.2.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling quick-xml v0.26.0 [INFO] [stderr] Compiling textwrap v0.16.2 [INFO] [stderr] Compiling str_stack v0.1.0 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling pprof v0.11.1 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling tinytemplate v1.2.1 [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 criterion-plot v0.5.0 [INFO] [stderr] Compiling inferno v0.11.21 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling oorandom v11.1.5 [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 regex-automata v0.4.11 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling backtrace v0.3.76 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling criterion v0.4.0 [INFO] [stderr] Compiling quickcheck v1.0.3 [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" "9ec6fec28711ca99ffe667d96a4234491b4d406b0b6f905ce9c492cb53c601e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ec6fec28711ca99ffe667d96a4234491b4d406b0b6f905ce9c492cb53c601e0", kill_on_drop: false }` [INFO] [stdout] 9ec6fec28711ca99ffe667d96a4234491b4d406b0b6f905ce9c492cb53c601e0