[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] checking stamkingsley/lightning against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [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 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6d5f8da3311401a9be20f2879260ce54e8a2390132998f335ed438441373e0bb [INFO] running `Command { std: "docker" "start" "-a" "6d5f8da3311401a9be20f2879260ce54e8a2390132998f335ed438441373e0bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6d5f8da3311401a9be20f2879260ce54e8a2390132998f335ed438441373e0bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d5f8da3311401a9be20f2879260ce54e8a2390132998f335ed438441373e0bb", kill_on_drop: false }` [INFO] [stdout] 6d5f8da3311401a9be20f2879260ce54e8a2390132998f335ed438441373e0bb [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 -Dunmustuse_in_always_ok" "-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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1db7820958443bace4423c3b330d17694b5f95b6eca4ea2c89f10f9267927f03 [INFO] running `Command { std: "docker" "start" "-a" "1db7820958443bace4423c3b330d17694b5f95b6eca4ea2c89f10f9267927f03", kill_on_drop: false }` [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling syn v2.0.107 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Compiling pulldown-cmark v0.13.0 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling rust_decimal v1.39.0 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking axum-core v0.5.5 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling indexmap v2.12.0 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Compiling pulldown-cmark-to-cmark v21.0.0 [INFO] [stderr] Compiling petgraph v0.7.1 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling tonic-build v0.14.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 serde_derive v1.0.228 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Compiling prost v0.14.1 [INFO] [stderr] Compiling prost-types v0.14.1 [INFO] [stderr] Checking serde v1.0.228 [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] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking axum v0.8.6 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking hyper-timeout v0.5.2 [INFO] [stderr] Checking tonic v0.14.2 [INFO] [stderr] Checking tonic-prost v0.14.2 [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:371:42 [INFO] [stdout] | [INFO] [stdout] 371 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 372 | | let method = getAccountSvc(inner); [INFO] [stdout] 373 | | let codec = tonic_prost::ProstCodec::default(); [INFO] [stdout] 374 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 384 | | Ok(res) [INFO] [stdout] 385 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lightning` (example "client") due to 8 previous errors [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:384:25 [INFO] [stdout] | [INFO] [stdout] 384 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:416:42 [INFO] [stdout] | [INFO] [stdout] 416 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 417 | | let method = increaseSvc(inner); [INFO] [stdout] 418 | | let codec = tonic_prost::ProstCodec::default(); [INFO] [stdout] 419 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 429 | | Ok(res) [INFO] [stdout] 430 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:429:25 [INFO] [stdout] | [INFO] [stdout] 429 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:461:42 [INFO] [stdout] | [INFO] [stdout] 461 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 462 | | let method = decreaseSvc(inner); [INFO] [stdout] 463 | | let codec = tonic_prost::ProstCodec::default(); [INFO] [stdout] 464 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 474 | | Ok(res) [INFO] [stdout] 475 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:474:25 [INFO] [stdout] | [INFO] [stdout] 474 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 480 | | let mut response = http::Response::new( [INFO] [stdout] 481 | | tonic::body::Body::default(), [INFO] [stdout] 482 | | ); [INFO] [stdout] ... | [INFO] [stdout] 494 | | Ok(response) [INFO] [stdout] 495 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:494:25 [INFO] [stdout] | [INFO] [stdout] 494 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [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] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:371:42 [INFO] [stdout] | [INFO] [stdout] 371 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 372 | | let method = getAccountSvc(inner); [INFO] [stdout] 373 | | let codec = tonic_prost::ProstCodec::default(); [INFO] [stdout] 374 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 384 | | Ok(res) [INFO] [stdout] 385 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:384:25 [INFO] [stdout] | [INFO] [stdout] 384 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:416:42 [INFO] [stdout] | [INFO] [stdout] 416 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 417 | | let method = increaseSvc(inner); [INFO] [stdout] 418 | | let codec = tonic_prost::ProstCodec::default(); [INFO] [stdout] 419 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 429 | | Ok(res) [INFO] [stdout] 430 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:429:25 [INFO] [stdout] | [INFO] [stdout] 429 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:461:42 [INFO] [stdout] | [INFO] [stdout] 461 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 462 | | let method = decreaseSvc(inner); [INFO] [stdout] 463 | | let codec = tonic_prost::ProstCodec::default(); [INFO] [stdout] 464 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 474 | | Ok(res) [INFO] [stdout] 475 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:474:25 [INFO] [stdout] | [INFO] [stdout] 474 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 480 | | let mut response = http::Response::new( [INFO] [stdout] 481 | | tonic::body::Body::default(), [INFO] [stdout] 482 | | ); [INFO] [stdout] ... | [INFO] [stdout] 494 | | Ok(response) [INFO] [stdout] 495 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:494:25 [INFO] [stdout] | [INFO] [stdout] 494 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [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] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:371:42 [INFO] [stdout] | [INFO] [stdout] 371 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 372 | | let method = getAccountSvc(inner); [INFO] [stdout] 373 | | let codec = tonic_prost::ProstCodec::default(); [INFO] [stdout] 374 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 384 | | Ok(res) [INFO] [stdout] 385 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:384:25 [INFO] [stdout] | [INFO] [stdout] 384 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:416:42 [INFO] [stdout] | [INFO] [stdout] 416 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 417 | | let method = increaseSvc(inner); [INFO] [stdout] 418 | | let codec = tonic_prost::ProstCodec::default(); [INFO] [stdout] 419 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 429 | | Ok(res) [INFO] [stdout] 430 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:429:25 [INFO] [stdout] | [INFO] [stdout] 429 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:461:42 [INFO] [stdout] | [INFO] [stdout] 461 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 462 | | let method = decreaseSvc(inner); [INFO] [stdout] 463 | | let codec = tonic_prost::ProstCodec::default(); [INFO] [stdout] 464 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 474 | | Ok(res) [INFO] [stdout] 475 | | }; [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:474:25 [INFO] [stdout] | [INFO] [stdout] 474 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 480 | | let mut response = http::Response::new( [INFO] [stdout] 481 | | tonic::body::Body::default(), [INFO] [stdout] 482 | | ); [INFO] [stdout] ... | [INFO] [stdout] 494 | | Ok(response) [INFO] [stdout] 495 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> /opt/rustwide/target/debug/build/lightning-59cbc2b1a23b5591/out/schema.rs:494:25 [INFO] [stdout] | [INFO] [stdout] 494 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lightning` (bin "lightning" test) due to 8 previous errors; 18 warnings emitted [INFO] [stderr] error: could not compile `lightning` (bin "lightning") due to 8 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1db7820958443bace4423c3b330d17694b5f95b6eca4ea2c89f10f9267927f03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1db7820958443bace4423c3b330d17694b5f95b6eca4ea2c89f10f9267927f03", kill_on_drop: false }` [INFO] [stdout] 1db7820958443bace4423c3b330d17694b5f95b6eca4ea2c89f10f9267927f03