[INFO] fetching crate sn_dbc 20.0.0... [INFO] checking sn_dbc-20.0.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-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] Locking 177 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.16) [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] Downloading crates ... [INFO] [stderr] Downloaded pprof v0.11.1 [INFO] [stderr] Downloaded custom_debug_derive v0.5.1 [INFO] [stderr] Downloaded custom_debug v0.5.1 [INFO] [stderr] Downloaded symbolic-common v10.2.1 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b0fb0a58a0f768be5e943333ed865b195c24f44d21fcd929285d879d0d73418 [INFO] running `Command { std: "docker" "start" "-a" "1b0fb0a58a0f768be5e943333ed865b195c24f44d21fcd929285d879d0d73418", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b0fb0a58a0f768be5e943333ed865b195c24f44d21fcd929285d879d0d73418", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b0fb0a58a0f768be5e943333ed865b195c24f44d21fcd929285d879d0d73418", kill_on_drop: false }` [INFO] [stdout] 1b0fb0a58a0f768be5e943333ed865b195c24f44d21fcd929285d879d0d73418 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb67b5b87bd094936be6336c36100ceb93dbaae8caa3df324da020c6eb3c6b4a [INFO] running `Command { std: "docker" "start" "-a" "fb67b5b87bd094936be6336c36100ceb93dbaae8caa3df324da020c6eb3c6b4a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Checking uuid v1.18.0 [INFO] [stderr] Compiling cpp_demangle v0.4.4 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking gimli v0.31.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking rustc-demangle v0.1.26 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking debugid v0.8.0 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking os_str_bytes v6.6.1 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking byte-slice-cast v1.2.3 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking bitflags v2.9.3 [INFO] [stderr] Compiling symbolic-demangle v10.2.1 [INFO] [stderr] Checking bytemuck v1.23.2 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking num-format v0.4.4 [INFO] [stderr] Checking rgb v0.8.52 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking indexmap v2.11.0 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking symbolic-common v10.2.1 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking quick-xml v0.26.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking str_stack v0.1.0 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking textwrap v0.16.2 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling blst v0.3.15 [INFO] [stderr] Compiling findshlibs v0.10.2 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling pprof v0.11.1 [INFO] [stderr] Checking hex_fmt v0.3.0 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking addr2line v0.24.2 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking tempfile v3.21.0 [INFO] [stderr] Checking inferno v0.11.21 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking ff v0.12.1 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling custom_debug_derive v0.5.1 [INFO] [stderr] Checking group v0.12.1 [INFO] [stderr] Checking custom_debug v0.5.1 [INFO] [stderr] Checking pairing v0.22.0 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Checking backtrace v0.3.75 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling quickcheck_macros v1.1.0 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking blstrs v0.6.2 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking blsttc v8.0.2 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking sn_dbc v20.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking criterion v0.4.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] [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[E0432]: unresolved import `sn_dbc::mock` [INFO] [stdout] --> benches/reissue.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | mock, [INFO] [stdout] | ^^^^ no `mock` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/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] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sn_dbc` (bench "reissue") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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" "fb67b5b87bd094936be6336c36100ceb93dbaae8caa3df324da020c6eb3c6b4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb67b5b87bd094936be6336c36100ceb93dbaae8caa3df324da020c6eb3c6b4a", kill_on_drop: false }` [INFO] [stdout] fb67b5b87bd094936be6336c36100ceb93dbaae8caa3df324da020c6eb3c6b4a