[INFO] cloning repository https://github.com/ukaushik-98/futures [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ukaushik-98/futures" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fukaushik-98%2Ffutures", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fukaushik-98%2Ffutures'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b2a152e364d35d0f6c4a35ad243714dba7f1ec10 [INFO] checking ukaushik-98/futures against try#099af82bc034c1e4895c90e5407fafdd61976cdb for pr-145457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fukaushik-98%2Ffutures" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ukaushik-98/futures [INFO] finished tweaking git repo https://github.com/ukaushik-98/futures [INFO] tweaked toml for git repo https://github.com/ukaushik-98/futures written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ukaushik-98/futures on toolchain 099af82bc034c1e4895c90e5407fafdd61976cdb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ukaushik-98/futures 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" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking ukaushik-98/futures against try#099af82bc034c1e4895c90e5407fafdd61976cdb for pr-145457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fukaushik-98%2Ffutures" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ukaushik-98/futures [INFO] finished tweaking git repo https://github.com/ukaushik-98/futures [INFO] tweaked toml for git repo https://github.com/ukaushik-98/futures written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ukaushik-98/futures on toolchain 099af82bc034c1e4895c90e5407fafdd61976cdb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ukaushik-98/futures 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" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8c1d8f2faf61b854b82011e0556ec9e92ed1751e291773bf0bc4b087d8127404 [INFO] running `Command { std: "docker" "start" "-a" "8c1d8f2faf61b854b82011e0556ec9e92ed1751e291773bf0bc4b087d8127404", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c1d8f2faf61b854b82011e0556ec9e92ed1751e291773bf0bc4b087d8127404", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c1d8f2faf61b854b82011e0556ec9e92ed1751e291773bf0bc4b087d8127404", kill_on_drop: false }` [INFO] [stdout] 8c1d8f2faf61b854b82011e0556ec9e92ed1751e291773bf0bc4b087d8127404 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c4722f71f93251e1c5a0ff9120be043f3b0c6ee66d04b32244a2f0982781852 [INFO] running `Command { std: "docker" "start" "-a" "6c4722f71f93251e1c5a0ff9120be043f3b0c6ee66d04b32244a2f0982781852", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking bytes v1.10.0 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking hdrhistogram v7.5.4 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking futures v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ops::DerefMut` [INFO] [stdout] --> src/futures_lifetimes/foo.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Debug, ops::DerefMut, pin::Pin}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Duration` [INFO] [stdout] --> src/futures_lifetimes/single.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{pin::Pin, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{pin::Pin, rc::Rc, time::Duration}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, fmt::Display, pin::Pin, rc::Rc, time::Duration}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::DerefMut` [INFO] [stdout] --> src/futures_lifetimes/foo.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Debug, ops::DerefMut, pin::Pin}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Duration` [INFO] [stdout] --> src/futures_lifetimes/single.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{pin::Pin, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{pin::Pin, rc::Rc, time::Duration}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, fmt::Display, pin::Pin, rc::Rc, time::Duration}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let x = tokio::spawn(mr).await; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mw` [INFO] [stdout] --> src/futures_lifetimes/single.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut mw = MyServiceWrapper { inner: m }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_mw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/futures_lifetimes/single.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let mut mw = MyServiceWrapper { inner: m }; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let x = tokio::spawn(async move { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let x = mw.call(MyRequest).await; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let x = t.call(()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let mut m = MyService; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let y = tokio::spawn(async move { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | let mut t = Timeout::new(m, Duration::from_millis(100)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut m = MyService; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut t = Timeout::new(m, Duration::from_millis(100)); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let y = tokio::spawn(async move { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let a = x.await; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut m = MyService { url: &url }; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:31:31 [INFO] [stdout] | [INFO] [stdout] 31 | fn call<'a>(&'a mut self, req: Request) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let b = a.call(()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let b = a.call(()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/multi.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | fn call<'a, 'b>(&'a mut self, req: MyRequest) -> Self::Future<'a, 'b> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:25:35 [INFO] [stdout] | [INFO] [stdout] 25 | fn call<'a, 'b>(&'a mut self, req: MyRequest) -> Self::Future<'a, 'b> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | fn static_check(t: T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/single.rs:35:31 [INFO] [stdout] | [INFO] [stdout] 35 | fn call<'a>(&'a mut self, req: MyRequest) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/single.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | fn call<'a>(&'a mut self, req: MyRequest) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/futures_lifetimes/single.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | fn static_check(x: T) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | fn call<'a>(&'a mut self, req: MyRequest) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:57:31 [INFO] [stdout] | [INFO] [stdout] 57 | fn call<'a>(&'a mut self, req: MyRequest) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | fn static_check(t: T) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:49:24 [INFO] [stdout] | [INFO] [stdout] 49 | fn call(&mut self, request: Request) -> Self::Future<'_> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:66:31 [INFO] [stdout] | [INFO] [stdout] 66 | fn call<'a>(&'a mut self, req: Request) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:51:31 [INFO] [stdout] | [INFO] [stdout] 51 | fn call<'a>(&'a mut self, request: Request) -> Self::Future<'a> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:72:31 [INFO] [stdout] | [INFO] [stdout] 72 | fn call<'a>(&'a mut self, req: Request) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | fn static_check(t: T) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | fn call(&mut self, req: Request) -> Self::Future { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | cx: &mut std::task::Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 56 | fn static_check(t: T) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FooService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/foo.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct FooService<'a, T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyFooService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct MyFooService<'a, T> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spawn_runner` is never used [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn spawn_runner<'a>(s: &'a String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/multi.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | async fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Service` is never used [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait Service { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyRequest` is never constructed [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct MyRequest; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyResponse` is never constructed [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct MyResponse; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyError` is never constructed [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct MyError; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct MyService; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_check` is never used [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn static_check(t: T) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | async fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> src/futures_lifetimes/single.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct MyService { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 19 | inner: T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyService` 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: unused variable: `x` [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let x = tokio::spawn(mr).await; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> src/futures_lifetimes/single.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct MyServiceWrapper { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 45 | inner: MyService, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyServiceWrapper` 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: function `static_check` is never used [INFO] [stdout] --> src/futures_lifetimes/single.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn static_check(x: T) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/single.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | async fn runner<'a, T>(x: &'a T) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Service` is never used [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait Service { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyRequest` is never constructed [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct MyRequest; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyResponse` is never constructed [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct MyResponse; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyError` is never constructed [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct MyError; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct MyService { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyServiceWrapper` is never constructed [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct MyServiceWrapper { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_T` is never used [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn create_T<'a, T>() -> T { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_serve` is never used [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn create_serve<'a, T>(x: T) -> MyServiceWrapper { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_check` is never used [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn static_check(t: T) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | async fn runner<'a, T>() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timeout` is never read [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Timeout { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 9 | inner: T, [INFO] [stdout] 10 | timeout: Duration, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Timeout` 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: struct `MyService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct MyService; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | async fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BoxError` is never used [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type BoxError = Box; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Timeout` is never constructed [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Timeout { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_ref`, `get_mut`, and `into_inner` are never used [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl Timeout { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 18 | /// Creates a new [`Timeout`] [INFO] [stdout] 19 | pub const fn new(inner: T, timeout: Duration) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn get_ref(&self) -> &T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn get_mut(&mut self) -> &mut T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn into_inner(self) -> T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct MyService; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_check` is never used [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn static_check(t: T) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | async fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct MyService<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyError` is never constructed [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct MyError; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_check` is never used [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn static_check(t: T) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | async fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_T` should have a snake case name [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn create_T<'a, T>() -> T { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `create_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mw` [INFO] [stdout] --> src/futures_lifetimes/single.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut mw = MyServiceWrapper { inner: m }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_mw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/futures_lifetimes/single.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let mut mw = MyServiceWrapper { inner: m }; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let x = tokio::spawn(async move { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let x = mw.call(MyRequest).await; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let x = t.call(()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let mut m = MyService; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let y = tokio::spawn(async move { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | let mut t = Timeout::new(m, Duration::from_millis(100)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut m = MyService; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut t = Timeout::new(m, Duration::from_millis(100)); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let y = tokio::spawn(async move { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let a = x.await; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut m = MyService { url: &url }; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:31:31 [INFO] [stdout] | [INFO] [stdout] 31 | fn call<'a>(&'a mut self, req: Request) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let b = a.call(()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let b = a.call(()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/multi.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | fn call<'a, 'b>(&'a mut self, req: MyRequest) -> Self::Future<'a, 'b> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:25:35 [INFO] [stdout] | [INFO] [stdout] 25 | fn call<'a, 'b>(&'a mut self, req: MyRequest) -> Self::Future<'a, 'b> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | fn static_check(t: T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/single.rs:35:31 [INFO] [stdout] | [INFO] [stdout] 35 | fn call<'a>(&'a mut self, req: MyRequest) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/single.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | fn call<'a>(&'a mut self, req: MyRequest) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/futures_lifetimes/single.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | fn static_check(x: T) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | fn call<'a>(&'a mut self, req: MyRequest) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:57:31 [INFO] [stdout] | [INFO] [stdout] 57 | fn call<'a>(&'a mut self, req: MyRequest) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | fn static_check(t: T) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:49:24 [INFO] [stdout] | [INFO] [stdout] 49 | fn call(&mut self, request: Request) -> Self::Future<'_> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:66:31 [INFO] [stdout] | [INFO] [stdout] 66 | fn call<'a>(&'a mut self, req: Request) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:51:31 [INFO] [stdout] | [INFO] [stdout] 51 | fn call<'a>(&'a mut self, request: Request) -> Self::Future<'a> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:72:31 [INFO] [stdout] | [INFO] [stdout] 72 | fn call<'a>(&'a mut self, req: Request) -> Self::Future<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | fn static_check(t: T) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | fn call(&mut self, req: Request) -> Self::Future { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | cx: &mut std::task::Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 56 | fn static_check(t: T) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FooService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/foo.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct FooService<'a, T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyFooService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct MyFooService<'a, T> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spawn_runner` is never used [INFO] [stdout] --> src/futures_lifetimes/foo2.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn spawn_runner<'a>(s: &'a String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/multi.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | async fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Service` is never used [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait Service { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyRequest` is never constructed [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct MyRequest; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyResponse` is never constructed [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct MyResponse; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyError` is never constructed [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct MyError; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct MyService; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_check` is never used [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn static_check(t: T) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/multi_exp.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | async fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> src/futures_lifetimes/single.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct MyService { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 19 | inner: T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyService` 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 `inner` is never read [INFO] [stdout] --> src/futures_lifetimes/single.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct MyServiceWrapper { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 45 | inner: MyService, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyServiceWrapper` 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: function `static_check` is never used [INFO] [stdout] --> src/futures_lifetimes/single.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn static_check(x: T) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/single.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | async fn runner<'a, T>(x: &'a T) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Service` is never used [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait Service { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyRequest` is never constructed [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct MyRequest; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyResponse` is never constructed [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct MyResponse; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyError` is never constructed [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct MyError; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct MyService { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyServiceWrapper` is never constructed [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct MyServiceWrapper { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_T` is never used [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn create_T<'a, T>() -> T { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_serve` is never used [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn create_serve<'a, T>(x: T) -> MyServiceWrapper { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_check` is never used [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn static_check(t: T) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | async fn runner<'a, T>() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timeout` is never read [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Timeout { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 9 | inner: T, [INFO] [stdout] 10 | timeout: Duration, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Timeout` 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: struct `MyService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct MyService; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/timeout.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | async fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BoxError` is never used [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type BoxError = Box; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Timeout` is never constructed [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Timeout { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_ref`, `get_mut`, and `into_inner` are never used [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl Timeout { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 18 | /// Creates a new [`Timeout`] [INFO] [stdout] 19 | pub const fn new(inner: T, timeout: Duration) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn get_ref(&self) -> &T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn get_mut(&mut self) -> &mut T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn into_inner(self) -> T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct MyService; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_check` is never used [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn static_check(t: T) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/timeout_lf.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | async fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyService` is never constructed [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct MyService<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyError` is never constructed [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct MyError; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_check` is never used [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn static_check(t: T) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runner` is never used [INFO] [stdout] --> src/futures_lifetimes/tower_timeout.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | async fn runner() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_T` should have a snake case name [INFO] [stdout] --> src/futures_lifetimes/single_lf.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn create_T<'a, T>() -> T { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `create_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.31s [INFO] running `Command { std: "docker" "inspect" "6c4722f71f93251e1c5a0ff9120be043f3b0c6ee66d04b32244a2f0982781852", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c4722f71f93251e1c5a0ff9120be043f3b0c6ee66d04b32244a2f0982781852", kill_on_drop: false }` [INFO] [stdout] 6c4722f71f93251e1c5a0ff9120be043f3b0c6ee66d04b32244a2f0982781852