[INFO] fetching crate lightning-invoice 0.3.0... [INFO] checking lightning-invoice-0.3.0 against try#1b5ce95284bc3170a1f4a55c6ec8a06b3e85ff73 for pr-78461 [INFO] extracting crate lightning-invoice 0.3.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate lightning-invoice 0.3.0 on toolchain 1b5ce95284bc3170a1f4a55c6ec8a06b3e85ff73 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1b5ce95284bc3170a1f4a55c6ec8a06b3e85ff73" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate lightning-invoice 0.3.0 [INFO] finished tweaking crates.io crate lightning-invoice 0.3.0 [INFO] tweaked toml for crates.io crate lightning-invoice 0.3.0 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1b5ce95284bc3170a1f4a55c6ec8a06b3e85ff73" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1b5ce95284bc3170a1f4a55c6ec8a06b3e85ff73" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded secp256k1-sys v0.1.2 [INFO] [stderr] Downloaded secp256k1 v0.17.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+1b5ce95284bc3170a1f4a55c6ec8a06b3e85ff73" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 080e6afd3b88f704263fbfcef6de6df18f0a08592d1546a502f7e84af964693e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "080e6afd3b88f704263fbfcef6de6df18f0a08592d1546a502f7e84af964693e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "080e6afd3b88f704263fbfcef6de6df18f0a08592d1546a502f7e84af964693e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "080e6afd3b88f704263fbfcef6de6df18f0a08592d1546a502f7e84af964693e", kill_on_drop: false }` [INFO] [stdout] 080e6afd3b88f704263fbfcef6de6df18f0a08592d1546a502f7e84af964693e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+1b5ce95284bc3170a1f4a55c6ec8a06b3e85ff73" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60931e339be631102a363102a2383288292b32d5d8b08f691de433993912baec [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "60931e339be631102a363102a2383288292b32d5d8b08f691de433993912baec", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.41 [INFO] [stderr] Checking bitcoin_hashes v0.7.6 [INFO] [stderr] Compiling secp256k1-sys v0.1.2 [INFO] [stderr] Checking secp256k1 v0.17.2 [INFO] [stderr] Checking lightning-invoice v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error: unmatched angle bracket [INFO] [stdout] --> src/lib.rs:773:81 [INFO] [stdout] | [INFO] [stdout] 773 | -> FilterMap, fn(&RawTaggedField) -> Option<&TaggedField>> [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 774 | | { [INFO] [stdout] | |____^ help: remove extra angle bracket [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `,` or `>`, found `{` [INFO] [stdout] --> src/lib.rs:774:2 [INFO] [stdout] | [INFO] [stdout] 716 | impl RawInvoice { [INFO] [stdout] | - while parsing this item list starting here [INFO] [stdout] ... [INFO] [stdout] 773 | -> FilterMap, fn(&RawTaggedField) -> Option<&TaggedField>> [INFO] [stdout] | - expected one of `,` or `>` [INFO] [stdout] 774 | { [INFO] [stdout] | ^ unexpected token [INFO] [stdout] ... [INFO] [stdout] 835 | } [INFO] [stdout] | - the item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unmatched angle bracket [INFO] [stdout] --> src/lib.rs:970:81 [INFO] [stdout] | [INFO] [stdout] 970 | -> FilterMap, fn(&RawTaggedField) -> Option<&TaggedField>> { [INFO] [stdout] | ^^ help: remove extra angle bracket [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `,` or `>`, found `{` [INFO] [stdout] --> src/lib.rs:970:83 [INFO] [stdout] | [INFO] [stdout] 891 | impl Invoice { [INFO] [stdout] | - while parsing this item list starting here [INFO] [stdout] ... [INFO] [stdout] 970 | -> FilterMap, fn(&RawTaggedField) -> Option<&TaggedField>> { [INFO] [stdout] | ^ expected one of `,` or `>` [INFO] [stdout] ... [INFO] [stdout] 1030 | } [INFO] [stdout] | - the item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unmatched angle bracket [INFO] [stdout] --> src/lib.rs:773:81 [INFO] [stdout] | [INFO] [stdout] 773 | -> FilterMap, fn(&RawTaggedField) -> Option<&TaggedField>> [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 774 | | { [INFO] [stdout] | |____^ help: remove extra angle bracket [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `,` or `>`, found `{` [INFO] [stdout] --> src/lib.rs:774:2 [INFO] [stdout] | [INFO] [stdout] 716 | impl RawInvoice { [INFO] [stdout] | - while parsing this item list starting here [INFO] [stdout] ... [INFO] [stdout] 773 | -> FilterMap, fn(&RawTaggedField) -> Option<&TaggedField>> [INFO] [stdout] | - expected one of `,` or `>` [INFO] [stdout] 774 | { [INFO] [stdout] | ^ unexpected token [INFO] [stdout] ... [INFO] [stdout] 835 | } [INFO] [stdout] | - the item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unmatched angle bracket [INFO] [stdout] --> src/lib.rs:970:81 [INFO] [stdout] | [INFO] [stdout] 970 | -> FilterMap, fn(&RawTaggedField) -> Option<&TaggedField>> { [INFO] [stdout] | ^^ help: remove extra angle bracket [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `,` or `>`, found `{` [INFO] [stdout] --> src/lib.rs:970:83 [INFO] [stdout] | [INFO] [stdout] 891 | impl Invoice { [INFO] [stdout] | - while parsing this item list starting here [INFO] [stdout] ... [INFO] [stdout] 970 | -> FilterMap, fn(&RawTaggedField) -> Option<&TaggedField>> { [INFO] [stdout] | ^ expected one of `,` or `>` [INFO] [stdout] ... [INFO] [stdout] 1030 | } [INFO] [stdout] | - the item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FilterMap` [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use std::iter::FilterMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/de.rs:519:5 [INFO] [stdout] | [INFO] [stdout] 519 | 0...16 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:706:1 [INFO] [stdout] | [INFO] [stdout] 706 | / macro_rules! find_extract { [INFO] [stdout] 707 | | ($iter:expr, $enm:pat, $enm_var:ident) => { [INFO] [stdout] 708 | | $iter.filter_map(|tf| match *tf { [INFO] [stdout] 709 | | $enm => Some($enm_var), [INFO] [stdout] ... | [INFO] [stdout] 712 | | }; [INFO] [stdout] 713 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FilterMap` [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use std::iter::FilterMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/de.rs:519:5 [INFO] [stdout] | [INFO] [stdout] 519 | 0...16 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:706:1 [INFO] [stdout] | [INFO] [stdout] 706 | / macro_rules! find_extract { [INFO] [stdout] 707 | | ($iter:expr, $enm:pat, $enm_var:ident) => { [INFO] [stdout] 708 | | $iter.filter_map(|tf| match *tf { [INFO] [stdout] 709 | | $enm => Some($enm_var), [INFO] [stdout] ... | [INFO] [stdout] 712 | | }; [INFO] [stdout] 713 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `payee_pub_key` found for struct `RawInvoice` in the current scope [INFO] [stdout] --> src/lib.rs:659:43 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct RawInvoice { [INFO] [stdout] | --------------------- method `payee_pub_key` not found for this [INFO] [stdout] ... [INFO] [stdout] 659 | let included_pub_key = self.raw_invoice.payee_pub_key(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RawInvoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `payee_pub_key` found for struct `RawInvoice` in the current scope [INFO] [stdout] --> src/lib.rs:659:43 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct RawInvoice { [INFO] [stdout] | --------------------- method `payee_pub_key` not found for this [INFO] [stdout] ... [INFO] [stdout] 659 | let included_pub_key = self.raw_invoice.payee_pub_key(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RawInvoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `tagged_fields` found for reference `&Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:900:31 [INFO] [stdout] | [INFO] [stdout] 900 | let payment_hash_cnt = self.tagged_fields().filter(|&tf| match *tf { [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `tagged_fields` found for reference `&Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:911:30 [INFO] [stdout] | [INFO] [stdout] 911 | let description_cnt = self.tagged_fields().filter(|&tf| match *tf { [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `tagged_fields` found for reference `&Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:900:31 [INFO] [stdout] | [INFO] [stdout] 900 | let payment_hash_cnt = self.tagged_fields().filter(|&tf| match *tf { [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `tagged_fields` found for reference `&Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:911:30 [INFO] [stdout] | [INFO] [stdout] 911 | let description_cnt = self.tagged_fields().filter(|&tf| match *tf { [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `tagged_fields` found for struct `Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:1500:22 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct Invoice { [INFO] [stdout] | ------------------ method `tagged_fields` not found for this [INFO] [stdout] ... [INFO] [stdout] 1500 | assert_eq!(invoice.tagged_fields().count(), 9); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `amount_pico_btc` found for struct `Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:1502:22 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct Invoice { [INFO] [stdout] | ------------------ method `amount_pico_btc` not found for this [INFO] [stdout] ... [INFO] [stdout] 1502 | assert_eq!(invoice.amount_pico_btc(), Some(123)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `currency` found for struct `Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:1503:22 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct Invoice { [INFO] [stdout] | ------------------ method `currency` not found for this [INFO] [stdout] ... [INFO] [stdout] 1503 | assert_eq!(invoice.currency(), Currency::BitcoinTestnet); [INFO] [stdout] | ^^^^^^^^ method not found in `Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:634:31 [INFO] [stdout] | [INFO] [stdout] 634 | write!(f, "{} ({})", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:637:31 [INFO] [stdout] | [INFO] [stdout] 637 | write!(f, "{} ({})", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:640:31 [INFO] [stdout] | [INFO] [stdout] 640 | write!(f, "{} ({})", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `payee_pub_key` found for struct `Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:1508:22 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct Invoice { [INFO] [stdout] | ------------------ method `payee_pub_key` not found for this [INFO] [stdout] ... [INFO] [stdout] 1508 | assert_eq!(invoice.payee_pub_key(), Some(&public_key)); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:643:31 [INFO] [stdout] | [INFO] [stdout] 643 | write!(f, "{} ({})", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:646:43 [INFO] [stdout] | [INFO] [stdout] 646 | write!(f, "{} (in function {})", self.description(), function) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expiry_time` found for struct `Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:1509:22 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct Invoice { [INFO] [stdout] | ------------------ method `expiry_time` not found for this [INFO] [stdout] ... [INFO] [stdout] 1509 | assert_eq!(invoice.expiry_time(), Duration::from_secs(54321)); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:649:26 [INFO] [stdout] | [INFO] [stdout] 649 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `min_final_cltv_expiry` found for struct `Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:1510:22 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct Invoice { [INFO] [stdout] | ------------------ method `min_final_cltv_expiry` not found for this [INFO] [stdout] ... [INFO] [stdout] 1510 | assert_eq!(invoice.min_final_cltv_expiry(), Some(&144)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ method not found in `Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `fallbacks` found for struct `Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:1511:22 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct Invoice { [INFO] [stdout] | ------------------ method `fallbacks` not found for this [INFO] [stdout] ... [INFO] [stdout] 1511 | assert_eq!(invoice.fallbacks(), vec![&Fallback::PubKeyHash([0;20])]); [INFO] [stdout] | ^^^^^^^^^ method not found in `Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `routes` found for struct `Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:1512:22 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct Invoice { [INFO] [stdout] | ------------------ method `routes` not found for this [INFO] [stdout] ... [INFO] [stdout] 1512 | assert_eq!(invoice.routes(), vec![&Route(route_1), &Route(route_2)]); [INFO] [stdout] | ^^^^^^ method not found in `Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `description` found for struct `Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:1514:12 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct Invoice { [INFO] [stdout] | ------------------ method `description` not found for this [INFO] [stdout] ... [INFO] [stdout] 1514 | invoice.description(), [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Invoice` [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 `description`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `payment_hash` found for struct `Invoice` in the current scope [INFO] [stdout] --> src/lib.rs:1517:22 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct Invoice { [INFO] [stdout] | ------------------ method `payment_hash` not found for this [INFO] [stdout] ... [INFO] [stdout] 1517 | assert_eq!(invoice.payment_hash(), &sha256::Hash::from_slice(&[21;32][..]).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Invoice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lightning-invoice` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:634:31 [INFO] [stdout] | [INFO] [stdout] 634 | write!(f, "{} ({})", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:637:31 [INFO] [stdout] | [INFO] [stdout] 637 | write!(f, "{} ({})", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:640:31 [INFO] [stdout] | [INFO] [stdout] 640 | write!(f, "{} ({})", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:643:31 [INFO] [stdout] | [INFO] [stdout] 643 | write!(f, "{} ({})", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:646:43 [INFO] [stdout] | [INFO] [stdout] 646 | write!(f, "{} (in function {})", self.description(), function) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/de.rs:649:26 [INFO] [stdout] | [INFO] [stdout] 649 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hash` [INFO] [stdout] --> src/lib.rs:1237:23 [INFO] [stdout] | [INFO] [stdout] 1237 | use bitcoin_hashes::{Hash, sha256}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "60931e339be631102a363102a2383288292b32d5d8b08f691de433993912baec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60931e339be631102a363102a2383288292b32d5d8b08f691de433993912baec", kill_on_drop: false }` [INFO] [stdout] 60931e339be631102a363102a2383288292b32d5d8b08f691de433993912baec