[INFO] cloning repository https://github.com/stamkingsley/lightning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stamkingsley/lightning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstamkingsley%2Flightning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstamkingsley%2Flightning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0117881c9bc9d03d08fb378383311e97d3c2a97e [INFO] testing stamkingsley/lightning against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstamkingsley%2Flightning" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/stamkingsley/lightning [INFO] finished tweaking git repo https://github.com/stamkingsley/lightning [INFO] tweaked toml for git repo https://github.com/stamkingsley/lightning written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/stamkingsley/lightning on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/stamkingsley/lightning 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1db782d286987475a6dd35533196f200f3fba485926b5d694b0c74a5492f1f07 [INFO] running `Command { std: "docker" "start" "-a" "1db782d286987475a6dd35533196f200f3fba485926b5d694b0c74a5492f1f07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1db782d286987475a6dd35533196f200f3fba485926b5d694b0c74a5492f1f07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1db782d286987475a6dd35533196f200f3fba485926b5d694b0c74a5492f1f07", kill_on_drop: false }` [INFO] [stdout] 1db782d286987475a6dd35533196f200f3fba485926b5d694b0c74a5492f1f07 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f38d9fdcb83ab4246afa1abbd6e725004207e3f2f7cdb258354a7496909bbde [INFO] running `Command { std: "docker" "start" "-a" "8f38d9fdcb83ab4246afa1abbd6e725004207e3f2f7cdb258354a7496909bbde", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling pulldown-cmark v0.13.0 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling indexmap v2.12.0 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling syn v2.0.107 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling fixedbitset v0.5.7 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling multimap v0.10.1 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling axum-core v0.5.5 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling pulldown-cmark-to-cmark v21.0.0 [INFO] [stderr] Compiling rust_decimal v1.39.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling petgraph v0.7.1 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling prost-derive v0.14.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling tonic-build v0.14.2 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling prost v0.14.1 [INFO] [stderr] Compiling prost-types v0.14.1 [INFO] [stderr] Compiling prost-build v0.14.1 [INFO] [stderr] Compiling tonic-prost-build v0.14.2 [INFO] [stderr] Compiling lightning v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling axum v0.8.6 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-timeout v0.5.2 [INFO] [stderr] Compiling tonic v0.14.2 [INFO] [stderr] Compiling tonic-prost v0.14.2 [INFO] [stdout] warning: value passed to `obj` is never read [INFO] [stdout] --> src/utils.rs:42:33 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn return_object(&self, mut obj: T) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AccountNotFound` and `CurrencyNotFound` are never constructed [INFO] [stdout] --> src/balance.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum BalanceError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 22 | AccountNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | #[error("Currency not found")] [INFO] [stdout] 24 | CurrencyNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BalanceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `freeze` and `unfreeze` are never used [INFO] [stdout] --> src/balance.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl AccountBalance { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn freeze(&mut self, amount: Decimal) -> Result<(), BalanceError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn unfreeze(&mut self, amount: Decimal) -> Result<(), BalanceError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/balance.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct Account { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 93 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` 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: enum `BalanceMessage` is never used [INFO] [stdout] --> src/balance.rs:112:10 [INFO] [stdout] | [INFO] [stdout] 112 | pub enum BalanceMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `process_message` is never used [INFO] [stdout] --> src/balance.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 141 | impl BalanceManager { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn process_message(&mut self, message: BalanceMessage) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageProcessor` is never constructed [INFO] [stdout] --> src/balance.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | pub struct MessageProcessor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/balance.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 293 | impl MessageProcessor { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 294 | pub fn new(receiver: Receiver) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn run(mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `request_id` is never read [INFO] [stdout] --> src/grpc.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | GetAccount { [INFO] [stdout] | ---------- field in this variant [INFO] [stdout] 17 | request_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AsyncBalanceMessage` 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 `request_id` is never read [INFO] [stdout] --> src/grpc.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | Increase { [INFO] [stdout] | -------- field in this variant [INFO] [stdout] 23 | request_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AsyncBalanceMessage` 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 `request_id` is never read [INFO] [stdout] --> src/grpc.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | Decrease { [INFO] [stdout] | -------- field in this variant [INFO] [stdout] 30 | request_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AsyncBalanceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ObjectPool` is never constructed [INFO] [stdout] --> src/utils.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ObjectPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, and `return_object` are never used [INFO] [stdout] --> src/utils.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ObjectPool { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(factory: F, initial_size: usize, max_size: usize) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get(&self) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn return_object(&self, mut obj: T) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `uuids` is never read [INFO] [stdout] --> src/utils.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct UuidPool { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 59 | uuids: Arc>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_uuid` and `return_uuid` are never used [INFO] [stdout] --> src/utils.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl UuidPool { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get_uuid(&self) -> Uuid { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn return_uuid(&self, uuid: Uuid) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `strings` and `max_size` are never read [INFO] [stdout] --> src/utils.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct StringPool { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 117 | strings: Arc>>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 118 | max_size: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_string` and `return_string` are never used [INFO] [stdout] --> src/utils.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 121 | impl StringPool { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn get_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn return_string(&self, mut s: String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `uuid_pool` and `string_pool` are never read [INFO] [stdout] --> src/utils.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 143 | pub struct MessageProcessor { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 146 | uuid_pool: UuidPool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 147 | string_pool: StringPool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 56.59s [INFO] running `Command { std: "docker" "inspect" "8f38d9fdcb83ab4246afa1abbd6e725004207e3f2f7cdb258354a7496909bbde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f38d9fdcb83ab4246afa1abbd6e725004207e3f2f7cdb258354a7496909bbde", kill_on_drop: false }` [INFO] [stdout] 8f38d9fdcb83ab4246afa1abbd6e725004207e3f2f7cdb258354a7496909bbde [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b0cdc2d923f02ba4710b0e68d216cab609e25025f1ecab6e311e6093fd8b2c2 [INFO] running `Command { std: "docker" "start" "-a" "8b0cdc2d923f02ba4710b0e68d216cab609e25025f1ecab6e311e6093fd8b2c2", kill_on_drop: false }` [INFO] [stderr] Compiling lightning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value passed to `obj` is never read [INFO] [stdout] --> src/utils.rs:42:33 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn return_object(&self, mut obj: T) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AccountNotFound` and `CurrencyNotFound` are never constructed [INFO] [stdout] --> src/balance.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum BalanceError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 22 | AccountNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | #[error("Currency not found")] [INFO] [stdout] 24 | CurrencyNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BalanceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `freeze` and `unfreeze` are never used [INFO] [stdout] --> src/balance.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl AccountBalance { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn freeze(&mut self, amount: Decimal) -> Result<(), BalanceError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn unfreeze(&mut self, amount: Decimal) -> Result<(), BalanceError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/balance.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct Account { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 93 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` 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: enum `BalanceMessage` is never used [INFO] [stdout] --> src/balance.rs:112:10 [INFO] [stdout] | [INFO] [stdout] 112 | pub enum BalanceMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `process_message` is never used [INFO] [stdout] --> src/balance.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 141 | impl BalanceManager { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn process_message(&mut self, message: BalanceMessage) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageProcessor` is never constructed [INFO] [stdout] --> src/balance.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | pub struct MessageProcessor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/balance.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 293 | impl MessageProcessor { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 294 | pub fn new(receiver: Receiver) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn run(mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `request_id` is never read [INFO] [stdout] --> src/grpc.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | GetAccount { [INFO] [stdout] | ---------- field in this variant [INFO] [stdout] 17 | request_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AsyncBalanceMessage` 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 `request_id` is never read [INFO] [stdout] --> src/grpc.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | Increase { [INFO] [stdout] | -------- field in this variant [INFO] [stdout] 23 | request_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AsyncBalanceMessage` 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 `request_id` is never read [INFO] [stdout] --> src/grpc.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | Decrease { [INFO] [stdout] | -------- field in this variant [INFO] [stdout] 30 | request_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AsyncBalanceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ObjectPool` is never constructed [INFO] [stdout] --> src/utils.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ObjectPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, and `return_object` are never used [INFO] [stdout] --> src/utils.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ObjectPool { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(factory: F, initial_size: usize, max_size: usize) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get(&self) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn return_object(&self, mut obj: T) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `uuids` is never read [INFO] [stdout] --> src/utils.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct UuidPool { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 59 | uuids: Arc>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_uuid` and `return_uuid` are never used [INFO] [stdout] --> src/utils.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl UuidPool { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get_uuid(&self) -> Uuid { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn return_uuid(&self, uuid: Uuid) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `strings` and `max_size` are never read [INFO] [stdout] --> src/utils.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct StringPool { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 117 | strings: Arc>>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 118 | max_size: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_string` and `return_string` are never used [INFO] [stdout] --> src/utils.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 121 | impl StringPool { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn get_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn return_string(&self, mut s: String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `uuid_pool` and `string_pool` are never read [INFO] [stdout] --> src/utils.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 143 | pub struct MessageProcessor { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 146 | uuid_pool: UuidPool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 147 | string_pool: StringPool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.12s [INFO] running `Command { std: "docker" "inspect" "8b0cdc2d923f02ba4710b0e68d216cab609e25025f1ecab6e311e6093fd8b2c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b0cdc2d923f02ba4710b0e68d216cab609e25025f1ecab6e311e6093fd8b2c2", kill_on_drop: false }` [INFO] [stdout] 8b0cdc2d923f02ba4710b0e68d216cab609e25025f1ecab6e311e6093fd8b2c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 83bd56ab804238799403c0514126831cfea7bcbb5981e6ac6a5fce90cc1c9617 [INFO] running `Command { std: "docker" "start" "-a" "83bd56ab804238799403c0514126831cfea7bcbb5981e6ac6a5fce90cc1c9617", kill_on_drop: false }` [INFO] [stderr] warning: value passed to `obj` is never read [INFO] [stderr] --> src/utils.rs:42:33 [INFO] [stderr] | [INFO] [stderr] 42 | pub fn return_object(&self, mut obj: T) [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variants `AccountNotFound` and `CurrencyNotFound` are never constructed [INFO] [stderr] --> src/balance.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 16 | pub enum BalanceError { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] ... [INFO] [stderr] 22 | AccountNotFound, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 23 | #[error("Currency not found")] [INFO] [stderr] 24 | CurrencyNotFound, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BalanceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `freeze` and `unfreeze` are never used [INFO] [stderr] --> src/balance.rs:66:12 [INFO] [stderr] | [INFO] [stderr] 35 | impl AccountBalance { [INFO] [stderr] | ------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 66 | pub fn freeze(&mut self, amount: Decimal) -> Result<(), BalanceError> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 78 | pub fn unfreeze(&mut self, amount: Decimal) -> Result<(), BalanceError> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/balance.rs:93:9 [INFO] [stderr] | [INFO] [stderr] 92 | pub struct Account { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] 93 | pub id: i32, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: enum `BalanceMessage` is never used [INFO] [stderr] --> src/balance.rs:112:10 [INFO] [stderr] | [INFO] [stderr] 112 | pub enum BalanceMessage { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `process_message` is never used [INFO] [stderr] --> src/balance.rs:148:12 [INFO] [stderr] | [INFO] [stderr] 141 | impl BalanceManager { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 148 | pub fn process_message(&mut self, message: BalanceMessage) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MessageProcessor` is never constructed [INFO] [stderr] --> src/balance.rs:288:12 [INFO] [stderr] | [INFO] [stderr] 288 | pub struct MessageProcessor { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `run` are never used [INFO] [stderr] --> src/balance.rs:294:12 [INFO] [stderr] | [INFO] [stderr] 293 | impl MessageProcessor { [INFO] [stderr] | --------------------- associated items in this implementation [INFO] [stderr] 294 | pub fn new(receiver: Receiver) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 301 | pub fn run(mut self) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `request_id` is never read [INFO] [stderr] --> src/grpc.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 16 | GetAccount { [INFO] [stderr] | ---------- field in this variant [INFO] [stderr] 17 | request_id: Uuid, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AsyncBalanceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `request_id` is never read [INFO] [stderr] --> src/grpc.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 22 | Increase { [INFO] [stderr] | -------- field in this variant [INFO] [stderr] 23 | request_id: Uuid, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AsyncBalanceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `request_id` is never read [INFO] [stderr] --> src/grpc.rs:30:9 [INFO] [stderr] | [INFO] [stderr] 29 | Decrease { [INFO] [stderr] | -------- field in this variant [INFO] [stderr] 30 | request_id: Uuid, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AsyncBalanceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `ObjectPool` is never constructed [INFO] [stderr] --> src/utils.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct ObjectPool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `get`, and `return_object` are never used [INFO] [stderr] --> src/utils.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl ObjectPool { [INFO] [stderr] | --------------------- associated items in this implementation [INFO] [stderr] 15 | pub fn new(factory: F, initial_size: usize, max_size: usize) -> Self [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn get(&self) -> T { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 42 | pub fn return_object(&self, mut obj: T) [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `uuids` is never read [INFO] [stderr] --> src/utils.rs:59:5 [INFO] [stderr] | [INFO] [stderr] 58 | pub struct UuidPool { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] 59 | uuids: Arc>>, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_uuid` and `return_uuid` are never used [INFO] [stderr] --> src/utils.rs:96:12 [INFO] [stderr] | [INFO] [stderr] 64 | impl UuidPool { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 96 | pub fn get_uuid(&self) -> Uuid { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 100 | pub fn return_uuid(&self, uuid: Uuid) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `strings` and `max_size` are never read [INFO] [stderr] --> src/utils.rs:117:5 [INFO] [stderr] | [INFO] [stderr] 116 | pub struct StringPool { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] 117 | strings: Arc>>, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 118 | max_size: usize, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_string` and `return_string` are never used [INFO] [stderr] --> src/utils.rs:129:12 [INFO] [stderr] | [INFO] [stderr] 121 | impl StringPool { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 129 | pub fn get_string(&self) -> String { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 133 | pub fn return_string(&self, mut s: String) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `uuid_pool` and `string_pool` are never read [INFO] [stderr] --> src/utils.rs:146:5 [INFO] [stderr] | [INFO] [stderr] 143 | pub struct MessageProcessor { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 146 | uuid_pool: UuidPool, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 147 | string_pool: StringPool, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `lightning` (bin "lightning" test) generated 18 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/lightning-806cb70b3ba27029) [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" "83bd56ab804238799403c0514126831cfea7bcbb5981e6ac6a5fce90cc1c9617", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83bd56ab804238799403c0514126831cfea7bcbb5981e6ac6a5fce90cc1c9617", kill_on_drop: false }` [INFO] [stdout] 83bd56ab804238799403c0514126831cfea7bcbb5981e6ac6a5fce90cc1c9617