[INFO] cloning repository https://github.com/payjoin/btsim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/payjoin/btsim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpayjoin%2Fbtsim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpayjoin%2Fbtsim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 631ffaa404f16e5fd485421a0c9f4941ae5f91d5 [INFO] testing payjoin/btsim against master#d933cf483edf1605142ac6899ff32536c0ad8b22 for pr-150933 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpayjoin%2Fbtsim" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/payjoin/btsim [INFO] finished tweaking git repo https://github.com/payjoin/btsim [INFO] tweaked toml for git repo https://github.com/payjoin/btsim written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/payjoin/btsim on toolchain d933cf483edf1605142ac6899ff32536c0ad8b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/payjoin/btsim already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_pcg v0.9.0 [INFO] [stderr] Downloaded rayon-cond v0.4.0 [INFO] [stderr] Downloaded nalgebra-macros v0.2.2 [INFO] [stderr] Downloaded derive_arbitrary v1.3.2 [INFO] [stderr] Downloaded dot-structures v0.1.2 [INFO] [stderr] Downloaded knaptime v0.0.4 [INFO] [stderr] Downloaded graphalgs v0.2.0 [INFO] [stderr] Downloaded graphviz-rust v0.9.6 [INFO] [stderr] Downloaded pest_derive v2.8.3 [INFO] [stderr] Downloaded pest_generator v2.8.3 [INFO] [stderr] Downloaded colorous v1.0.16 [INFO] [stderr] Downloaded simba v0.9.1 [INFO] [stderr] Downloaded jiff-static v0.2.16 [INFO] [stderr] Downloaded rand_distr v0.5.1 [INFO] [stderr] Downloaded safe_arch v0.7.4 [INFO] [stderr] Downloaded pest_meta v2.8.3 [INFO] [stderr] Downloaded priority-queue v2.7.0 [INFO] [stderr] Downloaded matrixmultiply v0.3.10 [INFO] [stderr] Downloaded rustworkx-core v0.17.1 [INFO] [stderr] Downloaded bdk_coin_select v0.3.0 [INFO] [stderr] Downloaded wide v0.7.33 [INFO] [stderr] Downloaded pest v2.8.3 [INFO] [stderr] Downloaded ndarray v0.16.1 [INFO] [stderr] Downloaded bitcoin v0.32.7 [INFO] [stderr] Downloaded nalgebra v0.33.2 [INFO] [stderr] Downloaded jiff v0.2.16 [INFO] [stderr] Downloaded petgraph v0.8.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 95788b301e773597f7333be3e9e6041431a06c339d135d35acf0fa0dbf146848 [INFO] running `Command { std: "docker" "start" "-a" "95788b301e773597f7333be3e9e6041431a06c339d135d35acf0fa0dbf146848", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "95788b301e773597f7333be3e9e6041431a06c339d135d35acf0fa0dbf146848", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95788b301e773597f7333be3e9e6041431a06c339d135d35acf0fa0dbf146848", kill_on_drop: false }` [INFO] [stdout] 95788b301e773597f7333be3e9e6041431a06c339d135d35acf0fa0dbf146848 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c069522c59508a0e42a73fd839c57a4a38062e726136c39518f49fae75163d3 [INFO] running `Command { std: "docker" "start" "-a" "1c069522c59508a0e42a73fd839c57a4a38062e726136c39518f49fae75163d3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling bytemuck v1.24.0 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling bitcoin-internals v0.3.0 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling hex-conservative v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling safe_arch v0.7.4 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling bitcoin-io v0.1.2 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling dot-structures v0.1.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling bitcoin_hashes v0.14.0 [INFO] [stderr] Compiling wide v0.7.33 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling pest v2.8.3 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling hex_lit v0.1.1 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Compiling dot-generator v0.2.0 [INFO] [stderr] Compiling into-attr v0.1.1 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling bitmaps v2.1.0 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling secp256k1-sys v0.10.0 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling pest_meta v2.8.3 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling simba v0.9.1 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling bitcoin v0.32.7 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling fixedbitset v0.5.7 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling clap_lex v0.7.6 [INFO] [stderr] Compiling sized-chunks v0.6.5 [INFO] [stderr] Compiling base58ck v0.1.0 [INFO] [stderr] Compiling clap_builder v4.5.51 [INFO] [stderr] Compiling rand_distr v0.5.1 [INFO] [stderr] Compiling bitcoin-units v0.1.1 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling rand_pcg v0.9.0 [INFO] [stderr] Compiling bech32 v0.11.0 [INFO] [stderr] Compiling jiff v0.2.16 [INFO] [stderr] Compiling bdk_coin_select v0.3.0 [INFO] [stderr] Compiling colorous v1.0.16 [INFO] [stderr] Compiling into-attr-derive v0.2.1 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling pest_generator v2.8.3 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling env_filter v0.1.4 [INFO] [stderr] Compiling rayon-cond v0.4.0 [INFO] [stderr] Compiling ndarray v0.16.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling derive_arbitrary v1.3.2 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Compiling pest_derive v2.8.3 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling graphviz-rust v0.9.6 [INFO] [stderr] Compiling secp256k1 v0.29.0 [INFO] [stderr] Compiling arbitrary v1.3.2 [INFO] [stderr] Compiling priority-queue v2.7.0 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling petgraph v0.8.3 [INFO] [stderr] Compiling knaptime v0.0.4 [INFO] [stderr] Compiling clap v4.5.51 [INFO] [stderr] Compiling nalgebra v0.33.2 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling rustworkx-core v0.17.1 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling graphalgs v0.2.0 [INFO] [stderr] Compiling btsim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `define_entity` [INFO] [stdout] --> src/blocks.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | define_entity, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimulationResult` [INFO] [stdout] --> src/graphviz.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{transaction::TxHandle, Simulation, SimulationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stdout] --> src/economic_graph.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | if self.rng.gen_bool(*self.graph.edge_weight(i).unwrap()) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stdout] --> src/economic_graph.rs:70:46 [INFO] [stdout] | [INFO] [stdout] 70 | let (from, to) = if self.rng.gen_bool(0.5) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/economic_graph.rs:35:52 [INFO] [stdout] | [INFO] [stdout] 35 | self.graph.add_edge(j, i, self.rng.gen_range(0.0..1.0)); // TODO 1.0 is too high [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/economic_graph.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | || self.rng.gen_range(0.0..1.0), // TODO 1.0 is too high [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/lib.rs:359:30 [INFO] [stdout] | [INFO] [stdout] 359 | for _ in 0..prng.gen_range(5..10) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/lib.rs:464:26 [INFO] [stdout] | [INFO] [stdout] 464 | ... prng.gen_range(current_timestep + 1..self.config.max_timestep.0 / 2); // Payments shouldnt be revealed too late. Aim to have ... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CoinSelectionStrategy` is never used [INFO] [stdout] --> src/lib.rs:67:6 [INFO] [stdout] | [INFO] [stdout] 67 | enum CoinSelectionStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib.rs:156:18 [INFO] [stdout] | [INFO] [stdout] 156 | struct PeerGraph(UnGraph); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `PeerGraph` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `num_wallets` is never read [INFO] [stdout] --> src/lib.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 309 | struct SimulationConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 310 | num_wallets: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimulationConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `peer_graph` is never read [INFO] [stdout] --> src/lib.rs:329:5 [INFO] [stdout] | [INFO] [stdout] 318 | pub struct Simulation { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 329 | peer_graph: PeerGraph, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Simulation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InitiateMultiPartyPayjoin` and `ParticipateMultiPartyPayjoin` are never constructed [INFO] [stdout] --> src/actions.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub(crate) enum PredictedOutcome { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 71 | InitiateMultiPartyPayjoin(InitiateMultiPartyPayjoinOutcome), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | ParticipateMultiPartyPayjoin(ParticipateMultiPartyPayjoinOutcome), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PredictedOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fee_savings` is never read [INFO] [stdout] --> src/actions.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub(crate) struct RespondToPayjoinOutcome { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 141 | fee_savings: Amount, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RespondToPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `time_left`, `balance_difference`, and `max_participants` are never read [INFO] [stdout] --> src/actions.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub(crate) struct InitiateMultiPartyPayjoinOutcome { [INFO] [stdout] | -------------------------------- fields in this struct [INFO] [stdout] 160 | /// Time left on the payment obligation [INFO] [stdout] 161 | time_left: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | balance_difference: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 166 | /// Upper bound on the number of participants in the multi-party payjoin [INFO] [stdout] 167 | max_participants: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InitiateMultiPartyPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time_left` is never read [INFO] [stdout] --> src/actions.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 180 | pub(crate) struct ParticipateMultiPartyPayjoinOutcome { [INFO] [stdout] | ----------------------------------- field in this struct [INFO] [stdout] 181 | /// Time left on the payment obligation [INFO] [stdout] 182 | time_left: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParticipateMultiPartyPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_block_weight` is never read [INFO] [stdout] --> src/blocks.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct ChainParams { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | max_block_weight: Weight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChainParams` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with` is never used [INFO] [stdout] --> src/macros.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> [<$base Id>] { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub(crate) fn with(&self, sim: &'a crate::Simulation) -> [<$base Handle>]<'a> [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/blocks.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / define_entity!( [INFO] [stdout] 61 | | BroadcastSet, [INFO] [stdout] 62 | | { [INFO] [stdout] 63 | | pub(crate) data: BroadcastSetType, [INFO] [stdout] ... | [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/macros.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 26 | impl<'a> [<$base Handle>]<'a> { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 27 | pub(crate) fn new(sim: &'a crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/blocks.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / define_entity!( [INFO] [stdout] 61 | | BroadcastSet, [INFO] [stdout] 62 | | { [INFO] [stdout] 63 | | pub(crate) data: BroadcastSetType, [INFO] [stdout] ... | [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `txs`, `parent`, and `coinbase_tx` are never used [INFO] [stdout] --> src/blocks.rs:459:19 [INFO] [stdout] | [INFO] [stdout] 453 | impl<'a> BlockHandle<'a> { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 459 | pub(crate) fn txs(&'a self) -> impl Iterator { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 467 | pub(crate) fn parent(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub(crate) fn coinbase_tx(&self) -> TxHandle { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BulletinBoardInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/bulletin_board.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / define_entity!( [INFO] [stdout] 7 | | BulletinBoard, [INFO] [stdout] 8 | | { [INFO] [stdout] 9 | | pub(crate) id: BulletinBoardId, [INFO] [stdout] ... | [INFO] [stdout] 14 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sim` is never read [INFO] [stdout] --> src/macros.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct [<$base Handle>]<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 13 | sim: &'a crate::Simulation, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `MessageHandle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with` is never used [INFO] [stdout] --> src/macros.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> [<$base Id>] { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub(crate) fn with(&self, sim: &'a crate::Simulation) -> [<$base Handle>]<'a> [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/macros.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 26 | impl<'a> [<$base Handle>]<'a> { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 27 | pub(crate) fn new(sim: &'a crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sim` is never read [INFO] [stdout] --> src/macros.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 95 | pub(crate) struct [<$base HandleMut>]<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 96 | pub(crate) sim: &'a mut crate::Simulation, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | define_entity_handle_mut!(Message); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `MessageHandleMut` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_mut` is never used [INFO] [stdout] --> src/macros.rs:101:31 [INFO] [stdout] | [INFO] [stdout] 100 | impl<'a> [<$base Id>] { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 101 | pub(crate) fn with_mut(&self, sim: &'a mut crate::Simulation) -> [<$base HandleMut>]<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | define_entity_handle_mut!(Message); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/macros.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 106 | impl<'a> [<$base HandleMut>]<'a> { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 107 | fn new(sim: &'a mut crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | define_entity_handle_mut!(Message); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `data` is never used [INFO] [stdout] --> src/message.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 31 | impl<'a> MessageHandle<'a> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 32 | pub(crate) fn data(&self) -> &'a MessageData { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `post` is never used [INFO] [stdout] --> src/message.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl<'a> MessageHandleMut<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 38 | pub(crate) fn post(&mut self, message: MessageData) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `wallet_mut` is never used [INFO] [stdout] --> src/transaction.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl Output { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | fn wallet_mut<'a>(&self, sim: &'a mut Simulation) -> WalletHandleMut<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `wallet_mut` is never used [INFO] [stdout] --> src/transaction.rs:166:19 [INFO] [stdout] | [INFO] [stdout] 145 | impl<'a> OutputHandle<'a> { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | pub(crate) fn wallet_mut<'b>(&self, sim: &'b mut Simulation) -> WalletHandleMut<'b> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_confirmed` and `is_acked` are never used [INFO] [stdout] --> src/transaction.rs:216:19 [INFO] [stdout] | [INFO] [stdout] 183 | impl<'a> TxHandle<'a> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 216 | pub(crate) fn is_confirmed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub(crate) fn is_acked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_txin_messages` is never used [INFO] [stdout] --> src/tx_contruction.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 73 | impl<'a> SentInputs<'a> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | fn read_txin_messages(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_txout_messages` is never used [INFO] [stdout] --> src/tx_contruction.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl<'a> SentOutputs<'a> { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | fn read_txout_messages(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `effective_balance` and `double_spendable_coins` are never used [INFO] [stdout] --> src/wallet.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 66 | impl<'a> WalletHandle<'a> { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub(crate) fn effective_balance(&self) -> Amount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn double_spendable_coins(&self) -> impl Iterator> + '_ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentObligationInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/wallet.rs:691:1 [INFO] [stdout] | [INFO] [stdout] 691 | / define_entity!( [INFO] [stdout] 692 | | PaymentObligation, [INFO] [stdout] 693 | | { [INFO] [stdout] 694 | | pub(crate) id: PaymentObligationId, [INFO] [stdout] ... | [INFO] [stdout] 705 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AddressInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/wallet.rs:713:1 [INFO] [stdout] | [INFO] [stdout] 713 | / define_entity!(Address, { [INFO] [stdout] 714 | | pub(crate) wallet_id: WalletId, [INFO] [stdout] 715 | | pub(crate) script_type: ScriptType, [INFO] [stdout] ... | [INFO] [stdout] 718 | | }, {}); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/blocks.rs:447:50 [INFO] [stdout] | [INFO] [stdout] 447 | fn txs<'a>(&'a self) -> impl Iterator { [INFO] [stdout] | -- the lifetime is named here ^^^^^ the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 447 | fn txs<'a>(&'a self) -> impl Iterator { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blocks.rs:471:31 [INFO] [stdout] | [INFO] [stdout] 471 | pub(crate) fn coinbase_tx(&self) -> TxHandle { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 471 | pub(crate) fn coinbase_tx(&self) -> TxHandle<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/wallet.rs:186:26 [INFO] [stdout] | [INFO] [stdout] 186 | pub(crate) fn handle(&self) -> WalletHandle { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 186 | pub(crate) fn handle(&self) -> WalletHandle<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/wallet.rs:664:29 [INFO] [stdout] | [INFO] [stdout] 664 | pub(crate) fn new_tx(&mut self, build: F) -> TxHandle [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 664 | pub(crate) fn new_tx(&mut self, build: F) -> TxHandle<'_> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 01s [INFO] running `Command { std: "docker" "inspect" "1c069522c59508a0e42a73fd839c57a4a38062e726136c39518f49fae75163d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c069522c59508a0e42a73fd839c57a4a38062e726136c39518f49fae75163d3", kill_on_drop: false }` [INFO] [stdout] 1c069522c59508a0e42a73fd839c57a4a38062e726136c39518f49fae75163d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b26e10485f8430a353faca37d74c376237a65f54d52aced7530e0428f5c604c6 [INFO] running `Command { std: "docker" "start" "-a" "b26e10485f8430a353faca37d74c376237a65f54d52aced7530e0428f5c604c6", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `define_entity` [INFO] [stdout] --> src/blocks.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | define_entity, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimulationResult` [INFO] [stdout] --> src/graphviz.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{transaction::TxHandle, Simulation, SimulationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stdout] --> src/economic_graph.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | if self.rng.gen_bool(*self.graph.edge_weight(i).unwrap()) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stdout] --> src/economic_graph.rs:70:46 [INFO] [stdout] | [INFO] [stdout] 70 | let (from, to) = if self.rng.gen_bool(0.5) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/economic_graph.rs:35:52 [INFO] [stdout] | [INFO] [stdout] 35 | self.graph.add_edge(j, i, self.rng.gen_range(0.0..1.0)); // TODO 1.0 is too high [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/economic_graph.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | || self.rng.gen_range(0.0..1.0), // TODO 1.0 is too high [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/lib.rs:359:30 [INFO] [stdout] | [INFO] [stdout] 359 | for _ in 0..prng.gen_range(5..10) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/lib.rs:464:26 [INFO] [stdout] | [INFO] [stdout] 464 | ... prng.gen_range(current_timestep + 1..self.config.max_timestep.0 / 2); // Payments shouldnt be revealed too late. Aim to have ... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CoinSelectionStrategy` is never used [INFO] [stdout] --> src/lib.rs:67:6 [INFO] [stdout] | [INFO] [stdout] 67 | enum CoinSelectionStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib.rs:156:18 [INFO] [stdout] | [INFO] [stdout] 156 | struct PeerGraph(UnGraph); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `PeerGraph` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `num_wallets` is never read [INFO] [stdout] --> src/lib.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 309 | struct SimulationConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 310 | num_wallets: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimulationConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `peer_graph` is never read [INFO] [stdout] --> src/lib.rs:329:5 [INFO] [stdout] | [INFO] [stdout] 318 | pub struct Simulation { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 329 | peer_graph: PeerGraph, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Simulation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InitiateMultiPartyPayjoin` and `ParticipateMultiPartyPayjoin` are never constructed [INFO] [stdout] --> src/actions.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub(crate) enum PredictedOutcome { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 71 | InitiateMultiPartyPayjoin(InitiateMultiPartyPayjoinOutcome), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | ParticipateMultiPartyPayjoin(ParticipateMultiPartyPayjoinOutcome), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PredictedOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fee_savings` is never read [INFO] [stdout] --> src/actions.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub(crate) struct RespondToPayjoinOutcome { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 141 | fee_savings: Amount, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RespondToPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `time_left`, `balance_difference`, and `max_participants` are never read [INFO] [stdout] --> src/actions.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub(crate) struct InitiateMultiPartyPayjoinOutcome { [INFO] [stdout] | -------------------------------- fields in this struct [INFO] [stdout] 160 | /// Time left on the payment obligation [INFO] [stdout] 161 | time_left: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | balance_difference: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 166 | /// Upper bound on the number of participants in the multi-party payjoin [INFO] [stdout] 167 | max_participants: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InitiateMultiPartyPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time_left` is never read [INFO] [stdout] --> src/actions.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 180 | pub(crate) struct ParticipateMultiPartyPayjoinOutcome { [INFO] [stdout] | ----------------------------------- field in this struct [INFO] [stdout] 181 | /// Time left on the payment obligation [INFO] [stdout] 182 | time_left: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParticipateMultiPartyPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_block_weight` is never read [INFO] [stdout] --> src/blocks.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct ChainParams { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | max_block_weight: Weight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChainParams` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with` is never used [INFO] [stdout] --> src/macros.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> [<$base Id>] { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub(crate) fn with(&self, sim: &'a crate::Simulation) -> [<$base Handle>]<'a> [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/blocks.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / define_entity!( [INFO] [stdout] 61 | | BroadcastSet, [INFO] [stdout] 62 | | { [INFO] [stdout] 63 | | pub(crate) data: BroadcastSetType, [INFO] [stdout] ... | [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/macros.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 26 | impl<'a> [<$base Handle>]<'a> { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 27 | pub(crate) fn new(sim: &'a crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/blocks.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / define_entity!( [INFO] [stdout] 61 | | BroadcastSet, [INFO] [stdout] 62 | | { [INFO] [stdout] 63 | | pub(crate) data: BroadcastSetType, [INFO] [stdout] ... | [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `txs`, `parent`, and `coinbase_tx` are never used [INFO] [stdout] --> src/blocks.rs:459:19 [INFO] [stdout] | [INFO] [stdout] 453 | impl<'a> BlockHandle<'a> { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 459 | pub(crate) fn txs(&'a self) -> impl Iterator { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 467 | pub(crate) fn parent(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub(crate) fn coinbase_tx(&self) -> TxHandle { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BulletinBoardInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/bulletin_board.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / define_entity!( [INFO] [stdout] 7 | | BulletinBoard, [INFO] [stdout] 8 | | { [INFO] [stdout] 9 | | pub(crate) id: BulletinBoardId, [INFO] [stdout] ... | [INFO] [stdout] 14 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sim` is never read [INFO] [stdout] --> src/macros.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct [<$base Handle>]<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 13 | sim: &'a crate::Simulation, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `MessageHandle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with` is never used [INFO] [stdout] --> src/macros.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> [<$base Id>] { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub(crate) fn with(&self, sim: &'a crate::Simulation) -> [<$base Handle>]<'a> [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/macros.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 26 | impl<'a> [<$base Handle>]<'a> { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 27 | pub(crate) fn new(sim: &'a crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sim` is never read [INFO] [stdout] --> src/macros.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 95 | pub(crate) struct [<$base HandleMut>]<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 96 | pub(crate) sim: &'a mut crate::Simulation, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | define_entity_handle_mut!(Message); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `MessageHandleMut` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_mut` is never used [INFO] [stdout] --> src/macros.rs:101:31 [INFO] [stdout] | [INFO] [stdout] 100 | impl<'a> [<$base Id>] { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 101 | pub(crate) fn with_mut(&self, sim: &'a mut crate::Simulation) -> [<$base HandleMut>]<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | define_entity_handle_mut!(Message); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/macros.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 106 | impl<'a> [<$base HandleMut>]<'a> { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 107 | fn new(sim: &'a mut crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | define_entity_handle_mut!(Message); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `data` is never used [INFO] [stdout] --> src/message.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 31 | impl<'a> MessageHandle<'a> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 32 | pub(crate) fn data(&self) -> &'a MessageData { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `post` is never used [INFO] [stdout] --> src/message.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl<'a> MessageHandleMut<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 38 | pub(crate) fn post(&mut self, message: MessageData) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `wallet_mut` is never used [INFO] [stdout] --> src/transaction.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl Output { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | fn wallet_mut<'a>(&self, sim: &'a mut Simulation) -> WalletHandleMut<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `wallet_mut` is never used [INFO] [stdout] --> src/transaction.rs:166:19 [INFO] [stdout] | [INFO] [stdout] 145 | impl<'a> OutputHandle<'a> { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | pub(crate) fn wallet_mut<'b>(&self, sim: &'b mut Simulation) -> WalletHandleMut<'b> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling btsim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `is_confirmed` and `is_acked` are never used [INFO] [stdout] --> src/transaction.rs:216:19 [INFO] [stdout] | [INFO] [stdout] 183 | impl<'a> TxHandle<'a> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 216 | pub(crate) fn is_confirmed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub(crate) fn is_acked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_txin_messages` is never used [INFO] [stdout] --> src/tx_contruction.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 73 | impl<'a> SentInputs<'a> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | fn read_txin_messages(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_txout_messages` is never used [INFO] [stdout] --> src/tx_contruction.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl<'a> SentOutputs<'a> { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | fn read_txout_messages(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `effective_balance` and `double_spendable_coins` are never used [INFO] [stdout] --> src/wallet.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 66 | impl<'a> WalletHandle<'a> { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub(crate) fn effective_balance(&self) -> Amount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn double_spendable_coins(&self) -> impl Iterator> + '_ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentObligationInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/wallet.rs:691:1 [INFO] [stdout] | [INFO] [stdout] 691 | / define_entity!( [INFO] [stdout] 692 | | PaymentObligation, [INFO] [stdout] 693 | | { [INFO] [stdout] 694 | | pub(crate) id: PaymentObligationId, [INFO] [stdout] ... | [INFO] [stdout] 705 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AddressInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/wallet.rs:713:1 [INFO] [stdout] | [INFO] [stdout] 713 | / define_entity!(Address, { [INFO] [stdout] 714 | | pub(crate) wallet_id: WalletId, [INFO] [stdout] 715 | | pub(crate) script_type: ScriptType, [INFO] [stdout] ... | [INFO] [stdout] 718 | | }, {}); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/blocks.rs:447:50 [INFO] [stdout] | [INFO] [stdout] 447 | fn txs<'a>(&'a self) -> impl Iterator { [INFO] [stdout] | -- the lifetime is named here ^^^^^ the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 447 | fn txs<'a>(&'a self) -> impl Iterator { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blocks.rs:471:31 [INFO] [stdout] | [INFO] [stdout] 471 | pub(crate) fn coinbase_tx(&self) -> TxHandle { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 471 | pub(crate) fn coinbase_tx(&self) -> TxHandle<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/wallet.rs:186:26 [INFO] [stdout] | [INFO] [stdout] 186 | pub(crate) fn handle(&self) -> WalletHandle { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 186 | pub(crate) fn handle(&self) -> WalletHandle<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/wallet.rs:664:29 [INFO] [stdout] | [INFO] [stdout] 664 | pub(crate) fn new_tx(&mut self, build: F) -> TxHandle [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 664 | pub(crate) fn new_tx(&mut self, build: F) -> TxHandle<'_> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `define_entity` [INFO] [stdout] --> src/blocks.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | define_entity, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimulationResult` [INFO] [stdout] --> src/graphviz.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{transaction::TxHandle, Simulation, SimulationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stdout] --> src/economic_graph.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | if self.rng.gen_bool(*self.graph.edge_weight(i).unwrap()) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stdout] --> src/economic_graph.rs:70:46 [INFO] [stdout] | [INFO] [stdout] 70 | let (from, to) = if self.rng.gen_bool(0.5) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/economic_graph.rs:35:52 [INFO] [stdout] | [INFO] [stdout] 35 | self.graph.add_edge(j, i, self.rng.gen_range(0.0..1.0)); // TODO 1.0 is too high [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/economic_graph.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | || self.rng.gen_range(0.0..1.0), // TODO 1.0 is too high [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/lib.rs:359:30 [INFO] [stdout] | [INFO] [stdout] 359 | for _ in 0..prng.gen_range(5..10) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/lib.rs:464:26 [INFO] [stdout] | [INFO] [stdout] 464 | ... prng.gen_range(current_timestep + 1..self.config.max_timestep.0 / 2); // Payments shouldnt be revealed too late. Aim to have ... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CoinSelectionStrategy` is never used [INFO] [stdout] --> src/lib.rs:67:6 [INFO] [stdout] | [INFO] [stdout] 67 | enum CoinSelectionStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib.rs:156:18 [INFO] [stdout] | [INFO] [stdout] 156 | struct PeerGraph(UnGraph); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `PeerGraph` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `num_wallets` is never read [INFO] [stdout] --> src/lib.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 309 | struct SimulationConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 310 | num_wallets: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimulationConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `peer_graph` is never read [INFO] [stdout] --> src/lib.rs:329:5 [INFO] [stdout] | [INFO] [stdout] 318 | pub struct Simulation { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 329 | peer_graph: PeerGraph, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Simulation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InitiateMultiPartyPayjoin` and `ParticipateMultiPartyPayjoin` are never constructed [INFO] [stdout] --> src/actions.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub(crate) enum PredictedOutcome { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 71 | InitiateMultiPartyPayjoin(InitiateMultiPartyPayjoinOutcome), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | ParticipateMultiPartyPayjoin(ParticipateMultiPartyPayjoinOutcome), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PredictedOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fee_savings` is never read [INFO] [stdout] --> src/actions.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub(crate) struct RespondToPayjoinOutcome { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 141 | fee_savings: Amount, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RespondToPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `time_left`, `balance_difference`, and `max_participants` are never read [INFO] [stdout] --> src/actions.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub(crate) struct InitiateMultiPartyPayjoinOutcome { [INFO] [stdout] | -------------------------------- fields in this struct [INFO] [stdout] 160 | /// Time left on the payment obligation [INFO] [stdout] 161 | time_left: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | balance_difference: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 166 | /// Upper bound on the number of participants in the multi-party payjoin [INFO] [stdout] 167 | max_participants: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InitiateMultiPartyPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time_left` is never read [INFO] [stdout] --> src/actions.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 180 | pub(crate) struct ParticipateMultiPartyPayjoinOutcome { [INFO] [stdout] | ----------------------------------- field in this struct [INFO] [stdout] 181 | /// Time left on the payment obligation [INFO] [stdout] 182 | time_left: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParticipateMultiPartyPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_block_weight` is never read [INFO] [stdout] --> src/blocks.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct ChainParams { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | max_block_weight: Weight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChainParams` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with` is never used [INFO] [stdout] --> src/macros.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> [<$base Id>] { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub(crate) fn with(&self, sim: &'a crate::Simulation) -> [<$base Handle>]<'a> [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/blocks.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / define_entity!( [INFO] [stdout] 61 | | BroadcastSet, [INFO] [stdout] 62 | | { [INFO] [stdout] 63 | | pub(crate) data: BroadcastSetType, [INFO] [stdout] ... | [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/macros.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 26 | impl<'a> [<$base Handle>]<'a> { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 27 | pub(crate) fn new(sim: &'a crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/blocks.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / define_entity!( [INFO] [stdout] 61 | | BroadcastSet, [INFO] [stdout] 62 | | { [INFO] [stdout] 63 | | pub(crate) data: BroadcastSetType, [INFO] [stdout] ... | [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `txs` and `parent` are never used [INFO] [stdout] --> src/blocks.rs:459:19 [INFO] [stdout] | [INFO] [stdout] 453 | impl<'a> BlockHandle<'a> { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 459 | pub(crate) fn txs(&'a self) -> impl Iterator { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 467 | pub(crate) fn parent(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BulletinBoardInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/bulletin_board.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / define_entity!( [INFO] [stdout] 7 | | BulletinBoard, [INFO] [stdout] 8 | | { [INFO] [stdout] 9 | | pub(crate) id: BulletinBoardId, [INFO] [stdout] ... | [INFO] [stdout] 14 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sim` is never read [INFO] [stdout] --> src/macros.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct [<$base Handle>]<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 13 | sim: &'a crate::Simulation, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `MessageHandle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with` is never used [INFO] [stdout] --> src/macros.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> [<$base Id>] { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub(crate) fn with(&self, sim: &'a crate::Simulation) -> [<$base Handle>]<'a> [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/macros.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 26 | impl<'a> [<$base Handle>]<'a> { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 27 | pub(crate) fn new(sim: &'a crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / define_entity!( [INFO] [stdout] 18 | | Message, [INFO] [stdout] 19 | | { [INFO] [stdout] 20 | | pub(crate) id: MessageId, [INFO] [stdout] ... | [INFO] [stdout] 28 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sim` is never read [INFO] [stdout] --> src/macros.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 95 | pub(crate) struct [<$base HandleMut>]<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 96 | pub(crate) sim: &'a mut crate::Simulation, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | define_entity_handle_mut!(Message); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `MessageHandleMut` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_mut` is never used [INFO] [stdout] --> src/macros.rs:101:31 [INFO] [stdout] | [INFO] [stdout] 100 | impl<'a> [<$base Id>] { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 101 | pub(crate) fn with_mut(&self, sim: &'a mut crate::Simulation) -> [<$base HandleMut>]<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | define_entity_handle_mut!(Message); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/macros.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 106 | impl<'a> [<$base HandleMut>]<'a> { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 107 | fn new(sim: &'a mut crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | define_entity_handle_mut!(Message); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `data` is never used [INFO] [stdout] --> src/message.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 31 | impl<'a> MessageHandle<'a> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 32 | pub(crate) fn data(&self) -> &'a MessageData { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `post` is never used [INFO] [stdout] --> src/message.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl<'a> MessageHandleMut<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 38 | pub(crate) fn post(&mut self, message: MessageData) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `wallet_mut` is never used [INFO] [stdout] --> src/transaction.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl Output { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | fn wallet_mut<'a>(&self, sim: &'a mut Simulation) -> WalletHandleMut<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `wallet_mut` is never used [INFO] [stdout] --> src/transaction.rs:166:19 [INFO] [stdout] | [INFO] [stdout] 145 | impl<'a> OutputHandle<'a> { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | pub(crate) fn wallet_mut<'b>(&self, sim: &'b mut Simulation) -> WalletHandleMut<'b> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_confirmed` and `is_acked` are never used [INFO] [stdout] --> src/transaction.rs:216:19 [INFO] [stdout] | [INFO] [stdout] 183 | impl<'a> TxHandle<'a> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 216 | pub(crate) fn is_confirmed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub(crate) fn is_acked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_txin_messages` is never used [INFO] [stdout] --> src/tx_contruction.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 73 | impl<'a> SentInputs<'a> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | fn read_txin_messages(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_txout_messages` is never used [INFO] [stdout] --> src/tx_contruction.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl<'a> SentOutputs<'a> { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | fn read_txout_messages(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `effective_balance` and `double_spendable_coins` are never used [INFO] [stdout] --> src/wallet.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 66 | impl<'a> WalletHandle<'a> { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub(crate) fn effective_balance(&self) -> Amount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn double_spendable_coins(&self) -> impl Iterator> + '_ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentObligationInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/wallet.rs:691:1 [INFO] [stdout] | [INFO] [stdout] 691 | / define_entity!( [INFO] [stdout] 692 | | PaymentObligation, [INFO] [stdout] 693 | | { [INFO] [stdout] 694 | | pub(crate) id: PaymentObligationId, [INFO] [stdout] ... | [INFO] [stdout] 705 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AddressInfo` is never constructed [INFO] [stdout] --> src/macros.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/wallet.rs:713:1 [INFO] [stdout] | [INFO] [stdout] 713 | / define_entity!(Address, { [INFO] [stdout] 714 | | pub(crate) wallet_id: WalletId, [INFO] [stdout] 715 | | pub(crate) script_type: ScriptType, [INFO] [stdout] ... | [INFO] [stdout] 718 | | }, {}); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/blocks.rs:447:50 [INFO] [stdout] | [INFO] [stdout] 447 | fn txs<'a>(&'a self) -> impl Iterator { [INFO] [stdout] | -- the lifetime is named here ^^^^^ the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 447 | fn txs<'a>(&'a self) -> impl Iterator { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blocks.rs:471:31 [INFO] [stdout] | [INFO] [stdout] 471 | pub(crate) fn coinbase_tx(&self) -> TxHandle { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 471 | pub(crate) fn coinbase_tx(&self) -> TxHandle<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/wallet.rs:186:26 [INFO] [stdout] | [INFO] [stdout] 186 | pub(crate) fn handle(&self) -> WalletHandle { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 186 | pub(crate) fn handle(&self) -> WalletHandle<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/wallet.rs:664:29 [INFO] [stdout] | [INFO] [stdout] 664 | pub(crate) fn new_tx(&mut self, build: F) -> TxHandle [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 664 | pub(crate) fn new_tx(&mut self, build: F) -> TxHandle<'_> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.42s [INFO] running `Command { std: "docker" "inspect" "b26e10485f8430a353faca37d74c376237a65f54d52aced7530e0428f5c604c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b26e10485f8430a353faca37d74c376237a65f54d52aced7530e0428f5c604c6", kill_on_drop: false }` [INFO] [stdout] b26e10485f8430a353faca37d74c376237a65f54d52aced7530e0428f5c604c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 36fc3314be0faf95b44c47820f5f8a4043fd2de191b1d2bf3b41e68178a7e1c5 [INFO] running `Command { std: "docker" "start" "-a" "36fc3314be0faf95b44c47820f5f8a4043fd2de191b1d2bf3b41e68178a7e1c5", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `define_entity` [INFO] [stderr] --> src/blocks.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | define_entity, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `SimulationResult` [INFO] [stderr] --> src/graphviz.rs:10:48 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::{transaction::TxHandle, Simulation, SimulationResult}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stderr] --> src/economic_graph.rs:67:25 [INFO] [stderr] | [INFO] [stderr] 67 | if self.rng.gen_bool(*self.graph.edge_weight(i).unwrap()) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stderr] --> src/economic_graph.rs:70:46 [INFO] [stderr] | [INFO] [stderr] 70 | let (from, to) = if self.rng.gen_bool(0.5) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> src/economic_graph.rs:35:52 [INFO] [stderr] | [INFO] [stderr] 35 | self.graph.add_edge(j, i, self.rng.gen_range(0.0..1.0)); // TODO 1.0 is too high [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> src/economic_graph.rs:54:29 [INFO] [stderr] | [INFO] [stderr] 54 | || self.rng.gen_range(0.0..1.0), // TODO 1.0 is too high [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> src/lib.rs:359:30 [INFO] [stderr] | [INFO] [stderr] 359 | for _ in 0..prng.gen_range(5..10) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> src/lib.rs:464:26 [INFO] [stderr] | [INFO] [stderr] 464 | ... prng.gen_range(current_timestep + 1..self.config.max_timestep.0 / 2); // Payments shouldnt be revealed too late. Aim to have ... [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `CoinSelectionStrategy` is never used [INFO] [stderr] --> src/lib.rs:67:6 [INFO] [stderr] | [INFO] [stderr] 67 | enum CoinSelectionStrategy { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/lib.rs:156:18 [INFO] [stderr] | [INFO] [stderr] 156 | struct PeerGraph(UnGraph); [INFO] [stderr] | --------- ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing this field [INFO] [stderr] = note: `PeerGraph` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `num_wallets` is never read [INFO] [stderr] --> src/lib.rs:310:5 [INFO] [stderr] | [INFO] [stderr] 309 | struct SimulationConfig { [INFO] [stderr] | ---------------- field in this struct [INFO] [stderr] 310 | num_wallets: usize, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SimulationConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `peer_graph` is never read [INFO] [stderr] --> src/lib.rs:329:5 [INFO] [stderr] | [INFO] [stderr] 318 | pub struct Simulation { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 329 | peer_graph: PeerGraph, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Simulation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `InitiateMultiPartyPayjoin` and `ParticipateMultiPartyPayjoin` are never constructed [INFO] [stderr] --> src/actions.rs:71:5 [INFO] [stderr] | [INFO] [stderr] 67 | pub(crate) enum PredictedOutcome { [INFO] [stderr] | ---------------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 71 | InitiateMultiPartyPayjoin(InitiateMultiPartyPayjoinOutcome), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 72 | ParticipateMultiPartyPayjoin(ParticipateMultiPartyPayjoinOutcome), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PredictedOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `fee_savings` is never read [INFO] [stderr] --> src/actions.rs:141:5 [INFO] [stderr] | [INFO] [stderr] 135 | pub(crate) struct RespondToPayjoinOutcome { [INFO] [stderr] | ----------------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 141 | fee_savings: Amount, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RespondToPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `time_left`, `balance_difference`, and `max_participants` are never read [INFO] [stderr] --> src/actions.rs:161:5 [INFO] [stderr] | [INFO] [stderr] 159 | pub(crate) struct InitiateMultiPartyPayjoinOutcome { [INFO] [stderr] | -------------------------------- fields in this struct [INFO] [stderr] 160 | /// Time left on the payment obligation [INFO] [stderr] 161 | time_left: i32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 165 | balance_difference: f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 166 | /// Upper bound on the number of participants in the multi-party payjoin [INFO] [stderr] 167 | max_participants: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `InitiateMultiPartyPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `time_left` is never read [INFO] [stderr] --> src/actions.rs:182:5 [INFO] [stderr] | [INFO] [stderr] 180 | pub(crate) struct ParticipateMultiPartyPayjoinOutcome { [INFO] [stderr] | ----------------------------------- field in this struct [INFO] [stderr] 181 | /// Time left on the payment obligation [INFO] [stderr] 182 | time_left: i32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ParticipateMultiPartyPayjoinOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `max_block_weight` is never read [INFO] [stderr] --> src/blocks.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 12 | pub(crate) struct ChainParams { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 15 | max_block_weight: Weight, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ChainParams` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `with` is never used [INFO] [stderr] --> src/macros.rs:20:31 [INFO] [stderr] | [INFO] [stderr] 17 | impl<'a> [<$base Id>] { [INFO] [stderr] | --------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 20 | pub(crate) fn with(&self, sim: &'a crate::Simulation) -> [<$base Handle>]<'a> [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/blocks.rs:60:1 [INFO] [stderr] | [INFO] [stderr] 60 | / define_entity!( [INFO] [stderr] 61 | | BroadcastSet, [INFO] [stderr] 62 | | { [INFO] [stderr] 63 | | pub(crate) data: BroadcastSetType, [INFO] [stderr] ... | [INFO] [stderr] 71 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/macros.rs:27:31 [INFO] [stderr] | [INFO] [stderr] 26 | impl<'a> [<$base Handle>]<'a> { [INFO] [stderr] | ----------------------------- associated function in this implementation [INFO] [stderr] 27 | pub(crate) fn new(sim: &'a crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/blocks.rs:60:1 [INFO] [stderr] | [INFO] [stderr] 60 | / define_entity!( [INFO] [stderr] 61 | | BroadcastSet, [INFO] [stderr] 62 | | { [INFO] [stderr] 63 | | pub(crate) data: BroadcastSetType, [INFO] [stderr] ... | [INFO] [stderr] 71 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: methods `txs`, `parent`, and `coinbase_tx` are never used [INFO] [stderr] --> src/blocks.rs:459:19 [INFO] [stderr] | [INFO] [stderr] 453 | impl<'a> BlockHandle<'a> { [INFO] [stderr] | ------------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 459 | pub(crate) fn txs(&'a self) -> impl Iterator { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 467 | pub(crate) fn parent(&self) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 471 | pub(crate) fn coinbase_tx(&self) -> TxHandle { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BulletinBoardInfo` is never constructed [INFO] [stderr] --> src/macros.rs:73:31 [INFO] [stderr] | [INFO] [stderr] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/bulletin_board.rs:6:1 [INFO] [stderr] | [INFO] [stderr] 6 | / define_entity!( [INFO] [stderr] 7 | | BulletinBoard, [INFO] [stderr] 8 | | { [INFO] [stderr] 9 | | pub(crate) id: BulletinBoardId, [INFO] [stderr] ... | [INFO] [stderr] 14 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field `sim` is never read [INFO] [stderr] --> src/macros.rs:13:17 [INFO] [stderr] | [INFO] [stderr] 12 | pub(crate) struct [<$base Handle>]<'a> { [INFO] [stderr] | ---------------- field in this struct [INFO] [stderr] 13 | sim: &'a crate::Simulation, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/message.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | / define_entity!( [INFO] [stderr] 18 | | Message, [INFO] [stderr] 19 | | { [INFO] [stderr] 20 | | pub(crate) id: MessageId, [INFO] [stderr] ... | [INFO] [stderr] 28 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `MessageHandle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: method `with` is never used [INFO] [stderr] --> src/macros.rs:20:31 [INFO] [stderr] | [INFO] [stderr] 17 | impl<'a> [<$base Id>] { [INFO] [stderr] | --------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 20 | pub(crate) fn with(&self, sim: &'a crate::Simulation) -> [<$base Handle>]<'a> [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/message.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | / define_entity!( [INFO] [stderr] 18 | | Message, [INFO] [stderr] 19 | | { [INFO] [stderr] 20 | | pub(crate) id: MessageId, [INFO] [stderr] ... | [INFO] [stderr] 28 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/macros.rs:27:31 [INFO] [stderr] | [INFO] [stderr] 26 | impl<'a> [<$base Handle>]<'a> { [INFO] [stderr] | ----------------------------- associated function in this implementation [INFO] [stderr] 27 | pub(crate) fn new(sim: &'a crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/message.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | / define_entity!( [INFO] [stderr] 18 | | Message, [INFO] [stderr] 19 | | { [INFO] [stderr] 20 | | pub(crate) id: MessageId, [INFO] [stderr] ... | [INFO] [stderr] 28 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `define_entity_id_and_handle` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: struct `MessageInfo` is never constructed [INFO] [stderr] --> src/macros.rs:73:31 [INFO] [stderr] | [INFO] [stderr] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/message.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | / define_entity!( [INFO] [stderr] 18 | | Message, [INFO] [stderr] 19 | | { [INFO] [stderr] 20 | | pub(crate) id: MessageId, [INFO] [stderr] ... | [INFO] [stderr] 28 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field `sim` is never read [INFO] [stderr] --> src/macros.rs:96:28 [INFO] [stderr] | [INFO] [stderr] 95 | pub(crate) struct [<$base HandleMut>]<'a> { [INFO] [stderr] | ------------------- field in this struct [INFO] [stderr] 96 | pub(crate) sim: &'a mut crate::Simulation, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/message.rs:29:1 [INFO] [stderr] | [INFO] [stderr] 29 | define_entity_handle_mut!(Message); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `MessageHandleMut` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: method `with_mut` is never used [INFO] [stderr] --> src/macros.rs:101:31 [INFO] [stderr] | [INFO] [stderr] 100 | impl<'a> [<$base Id>] { [INFO] [stderr] | --------------------- method in this implementation [INFO] [stderr] 101 | pub(crate) fn with_mut(&self, sim: &'a mut crate::Simulation) -> [<$base HandleMut>]<'a> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/message.rs:29:1 [INFO] [stderr] | [INFO] [stderr] 29 | define_entity_handle_mut!(Message); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/macros.rs:107:20 [INFO] [stderr] | [INFO] [stderr] 106 | impl<'a> [<$base HandleMut>]<'a> { [INFO] [stderr] | -------------------------------- associated function in this implementation [INFO] [stderr] 107 | fn new(sim: &'a mut crate::Simulation, id: [<$base Id>]) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/message.rs:29:1 [INFO] [stderr] | [INFO] [stderr] 29 | define_entity_handle_mut!(Message); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `define_entity_handle_mut` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: method `data` is never used [INFO] [stderr] --> src/message.rs:32:19 [INFO] [stderr] | [INFO] [stderr] 31 | impl<'a> MessageHandle<'a> { [INFO] [stderr] | -------------------------- method in this implementation [INFO] [stderr] 32 | pub(crate) fn data(&self) -> &'a MessageData { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `post` is never used [INFO] [stderr] --> src/message.rs:38:19 [INFO] [stderr] | [INFO] [stderr] 37 | impl<'a> MessageHandleMut<'a> { [INFO] [stderr] | ----------------------------- method in this implementation [INFO] [stderr] 38 | pub(crate) fn post(&mut self, message: MessageData) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `wallet_mut` is never used [INFO] [stderr] --> src/transaction.rs:127:8 [INFO] [stderr] | [INFO] [stderr] 114 | impl Output { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 127 | fn wallet_mut<'a>(&self, sim: &'a mut Simulation) -> WalletHandleMut<'a> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `wallet_mut` is never used [INFO] [stderr] --> src/transaction.rs:166:19 [INFO] [stderr] | [INFO] [stderr] 145 | impl<'a> OutputHandle<'a> { [INFO] [stderr] | ------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 166 | pub(crate) fn wallet_mut<'b>(&self, sim: &'b mut Simulation) -> WalletHandleMut<'b> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `is_confirmed` and `is_acked` are never used [INFO] [stderr] --> src/transaction.rs:216:19 [INFO] [stderr] | [INFO] [stderr] 183 | impl<'a> TxHandle<'a> { [INFO] [stderr] | --------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 216 | pub(crate) fn is_confirmed(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 225 | pub(crate) fn is_acked(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `read_txin_messages` is never used [INFO] [stderr] --> src/tx_contruction.rs:86:8 [INFO] [stderr] | [INFO] [stderr] 73 | impl<'a> SentInputs<'a> { [INFO] [stderr] | ----------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 86 | fn read_txin_messages(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `read_txout_messages` is never used [INFO] [stderr] --> src/tx_contruction.rs:136:8 [INFO] [stderr] | [INFO] [stderr] 123 | impl<'a> SentOutputs<'a> { [INFO] [stderr] | ------------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 136 | fn read_txout_messages(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `effective_balance` and `double_spendable_coins` are never used [INFO] [stderr] --> src/wallet.rs:77:19 [INFO] [stderr] | [INFO] [stderr] 66 | impl<'a> WalletHandle<'a> { [INFO] [stderr] | ------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 77 | pub(crate) fn effective_balance(&self) -> Amount { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 170 | fn double_spendable_coins(&self) -> impl Iterator> + '_ { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PaymentObligationInfo` is never constructed [INFO] [stderr] --> src/macros.rs:73:31 [INFO] [stderr] | [INFO] [stderr] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/wallet.rs:691:1 [INFO] [stderr] | [INFO] [stderr] 691 | / define_entity!( [INFO] [stderr] 692 | | PaymentObligation, [INFO] [stderr] 693 | | { [INFO] [stderr] 694 | | pub(crate) id: PaymentObligationId, [INFO] [stderr] ... | [INFO] [stderr] 705 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: struct `AddressInfo` is never constructed [INFO] [stderr] --> src/macros.rs:73:31 [INFO] [stderr] | [INFO] [stderr] 73 | pub(crate) struct [<$base Info>] $info_fields [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/wallet.rs:713:1 [INFO] [stderr] | [INFO] [stderr] 713 | / define_entity!(Address, { [INFO] [stderr] 714 | | pub(crate) wallet_id: WalletId, [INFO] [stderr] 715 | | pub(crate) script_type: ScriptType, [INFO] [stderr] ... | [INFO] [stderr] 718 | | }, {}); [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `define_entity_info` which comes from the expansion of the macro `define_entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/blocks.rs:447:50 [INFO] [stderr] | [INFO] [stderr] 447 | fn txs<'a>(&'a self) -> impl Iterator { [INFO] [stderr] | -- the lifetime is named here ^^^^^ the same lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 447 | fn txs<'a>(&'a self) -> impl Iterator { [INFO] [stderr] | ++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/blocks.rs:471:31 [INFO] [stderr] | [INFO] [stderr] 471 | pub(crate) fn coinbase_tx(&self) -> TxHandle { [INFO] [stderr] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 471 | pub(crate) fn coinbase_tx(&self) -> TxHandle<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/wallet.rs:186:26 [INFO] [stderr] | [INFO] [stderr] 186 | pub(crate) fn handle(&self) -> WalletHandle { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 186 | pub(crate) fn handle(&self) -> WalletHandle<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/wallet.rs:664:29 [INFO] [stderr] | [INFO] [stderr] 664 | pub(crate) fn new_tx(&mut self, build: F) -> TxHandle [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 664 | pub(crate) fn new_tx(&mut self, build: F) -> TxHandle<'_> [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: methods `txs` and `parent` are never used [INFO] [stderr] --> src/blocks.rs:459:19 [INFO] [stderr] | [INFO] [stderr] 453 | impl<'a> BlockHandle<'a> { [INFO] [stderr] | ------------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 459 | pub(crate) fn txs(&'a self) -> impl Iterator { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 467 | pub(crate) fn parent(&self) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `btsim` (lib) generated 42 warnings (run `cargo fix --lib -p btsim` to apply 6 suggestions) [INFO] [stderr] warning: `btsim` (lib test) generated 42 warnings (41 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/btsim-44334ca28f04ae57) [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test actions::tests::test_multiparty_initiator_only_wallet_0 ... ok [INFO] [stdout] test actions::tests::test_batch_spender_creates_batches ... ok [INFO] [stdout] test actions::tests::test_multiparty_initiator_with_insufficient_receivers ... ok [INFO] [stdout] test actions::tests::test_multiparty_initiator_with_multiple_receivers ... ok [INFO] [stdout] test actions::tests::test_composite_strategy_combines_actions ... ok [INFO] [stdout] test actions::tests::test_multiparty_participant_prefers_continue_when_invite_and_active ... ok [INFO] [stdout] test actions::tests::test_multiparty_participant_with_active_session ... ok [INFO] [stdout] test actions::tests::test_multiparty_participant_with_new_invitation ... ok [INFO] [stdout] test actions::tests::test_payjoin_strategy ... ok [INFO] [stdout] test actions::tests::test_unilateral_spender ... ok [INFO] [stdout] test transaction::tests::test_txid_encoding ... ok [INFO] [stdout] test tests::test_weight_prediction_by_script_type ... ok [INFO] [stdout] test tx_contruction::tests::test_state_machine ... ok [INFO] [stdout] test tests::it_works ... ok [INFO] [stdout] test tests::test_universe ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/btsim-68cab536983171c5) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests btsim [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "36fc3314be0faf95b44c47820f5f8a4043fd2de191b1d2bf3b41e68178a7e1c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36fc3314be0faf95b44c47820f5f8a4043fd2de191b1d2bf3b41e68178a7e1c5", kill_on_drop: false }` [INFO] [stdout] 36fc3314be0faf95b44c47820f5f8a4043fd2de191b1d2bf3b41e68178a7e1c5