[INFO] cloning repository https://github.com/noorshaik95/axum-grafana-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/noorshaik95/axum-grafana-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnoorshaik95%2Faxum-grafana-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnoorshaik95%2Faxum-grafana-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 44ea6fee2fb975c793efe6e213eb13bfe0e36216 [INFO] checking noorshaik95/axum-grafana-example 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%2Fnoorshaik95%2Faxum-grafana-example" "/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/noorshaik95/axum-grafana-example [INFO] finished tweaking git repo https://github.com/noorshaik95/axum-grafana-example [INFO] tweaked toml for git repo https://github.com/noorshaik95/axum-grafana-example written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/noorshaik95/axum-grafana-example 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/noorshaik95/axum-grafana-example 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-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 744f3c3d4c39602637b2578e6213c85d6b320ea500a28fc8eb11dd91803d1e06 [INFO] running `Command { std: "docker" "start" "-a" "744f3c3d4c39602637b2578e6213c85d6b320ea500a28fc8eb11dd91803d1e06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "744f3c3d4c39602637b2578e6213c85d6b320ea500a28fc8eb11dd91803d1e06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "744f3c3d4c39602637b2578e6213c85d6b320ea500a28fc8eb11dd91803d1e06", kill_on_drop: false }` [INFO] [stdout] 744f3c3d4c39602637b2578e6213c85d6b320ea500a28fc8eb11dd91803d1e06 [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 -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] 19ce468ba372597758210d8d42c005c21101a1305b722eb3b9950977be4115e1 [INFO] running `Command { std: "docker" "start" "-a" "19ce468ba372597758210d8d42c005c21101a1305b722eb3b9950977be4115e1", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking indexmap v2.11.4 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling cc v1.2.41 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling pest v2.8.3 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking deranged v0.5.4 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling petgraph v0.7.1 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling pest_meta v2.8.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling mongocrypt-sys v0.1.4+1.12.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling multimap v0.10.1 [INFO] [stderr] Checking rustls-webpki v0.103.7 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Compiling pest_generator v2.8.3 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Checking serde_bytes v0.11.19 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking semver v1.0.27 [INFO] [stderr] Compiling protobuf v3.7.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling prost-derive v0.13.5 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking opentelemetry v0.29.1 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling prost v0.13.5 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling prost-types v0.13.5 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking opentelemetry_sdk v0.29.0 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Compiling prost-build v0.13.5 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking bson v2.15.0 [INFO] [stderr] Checking hickory-proto v0.24.4 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Compiling serde_with_macros v3.15.0 [INFO] [stderr] Checking protobuf-support v3.7.2 [INFO] [stderr] Compiling tonic-build v0.12.3 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling pest_derive v2.8.3 [INFO] [stderr] Checking rustc_version v0.4.1 [INFO] [stderr] Compiling typed-builder-macro v0.20.1 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking webpki-roots v1.0.3 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling prometheus v0.14.0 [INFO] [stderr] Checking nu-ansi-term v0.50.3 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking typed-builder v0.20.1 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking hickory-resolver v0.24.4 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking mongocrypt v0.3.1 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Compiling api-gateway v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking serde_with v3.15.0 [INFO] [stderr] Compiling mongodb-internal-macros v3.3.0 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Compiling derive-where v1.6.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking tracing-opentelemetry v0.30.0 [INFO] [stderr] Checking hyper-timeout v0.5.2 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking reqwest v0.12.24 [INFO] [stderr] Checking mongodb v3.3.0 [INFO] [stderr] Checking opentelemetry-http v0.29.0 [INFO] [stderr] Checking tonic v0.12.3 [INFO] [stderr] Checking opentelemetry-proto v0.29.0 [INFO] [stderr] Checking tonic-reflection v0.12.3 [INFO] [stderr] Checking opentelemetry-otlp v0.29.0 [INFO] [stdout] warning: constant `ERR_MISSING_TOKEN` is never used [INFO] [stdout] --> src/auth/constants.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const ERR_MISSING_TOKEN: &str = "Missing authentication token"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/auth/service.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AuthService { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 23 | auth_client_channel: Channel, [INFO] [stdout] 24 | config: AuthConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERR_NO_ROUTES` is never used [INFO] [stdout] --> src/config/constants.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const ERR_NO_ROUTES: &str = "At least one route must be configured"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERR_EMPTY_ROUTE_PATH` is never used [INFO] [stdout] --> src/config/constants.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const ERR_EMPTY_ROUTE_PATH: &str = "Route path cannot be empty"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERR_EMPTY_ROUTE_METHOD` is never used [INFO] [stdout] --> src/config/constants.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ERR_EMPTY_ROUTE_METHOD: &str = "Route method cannot be empty"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERR_EMPTY_ROUTE_SERVICE` is never used [INFO] [stdout] --> src/config/constants.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const ERR_EMPTY_ROUTE_SERVICE: &str = "Route service cannot be empty"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERR_EMPTY_ROUTE_GRPC_METHOD` is never used [INFO] [stdout] --> src/config/constants.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const ERR_EMPTY_ROUTE_GRPC_METHOD: &str = "Route grpc_method cannot be empty"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrorResponse` is never constructed [INFO] [stdout] --> src/response.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseResult` is never constructed [INFO] [stdout] --> src/response.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ResponseResult { [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/api-gateway-58660acbe49211f7/out/auth.rs:260:42 [INFO] [stdout] | [INFO] [stdout] 260 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 261 | | let method = ValidateTokenSvc(inner); [INFO] [stdout] 262 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] 263 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 273 | | Ok(res) [INFO] [stdout] 274 | | }; [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/api-gateway-58660acbe49211f7/out/auth.rs:273:25 [INFO] [stdout] | [INFO] [stdout] 273 | 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/api-gateway-58660acbe49211f7/out/auth.rs:278:41 [INFO] [stdout] | [INFO] [stdout] 278 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 279 | | let mut response = http::Response::new(empty_body()); [INFO] [stdout] 280 | | let headers = response.headers_mut(); [INFO] [stdout] 281 | | headers [INFO] [stdout] ... | [INFO] [stdout] 291 | | Ok(response) [INFO] [stdout] 292 | | }) [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/api-gateway-58660acbe49211f7/out/auth.rs:291:25 [INFO] [stdout] | [INFO] [stdout] 291 | Ok(response) [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/api-gateway-58660acbe49211f7/out/gateway.rs:264:42 [INFO] [stdout] | [INFO] [stdout] 264 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 265 | | let method = GetAuthPolicySvc(inner); [INFO] [stdout] 266 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] 267 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 277 | | Ok(res) [INFO] [stdout] 278 | | }; [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/api-gateway-58660acbe49211f7/out/gateway.rs:277:25 [INFO] [stdout] | [INFO] [stdout] 277 | 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/api-gateway-58660acbe49211f7/out/gateway.rs:282:41 [INFO] [stdout] | [INFO] [stdout] 282 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 283 | | let mut response = http::Response::new(empty_body()); [INFO] [stdout] 284 | | let headers = response.headers_mut(); [INFO] [stdout] 285 | | headers [INFO] [stdout] ... | [INFO] [stdout] 295 | | Ok(response) [INFO] [stdout] 296 | | }) [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/api-gateway-58660acbe49211f7/out/gateway.rs:295:25 [INFO] [stdout] | [INFO] [stdout] 295 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `api-gateway` (lib) due to 8 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: constant `ERR_MISSING_TOKEN` is never used [INFO] [stdout] --> src/auth/constants.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const ERR_MISSING_TOKEN: &str = "Missing authentication token"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/auth/service.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AuthService { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 23 | auth_client_channel: Channel, [INFO] [stdout] 24 | config: AuthConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERR_NO_ROUTES` is never used [INFO] [stdout] --> src/config/constants.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const ERR_NO_ROUTES: &str = "At least one route must be configured"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERR_EMPTY_ROUTE_PATH` is never used [INFO] [stdout] --> src/config/constants.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const ERR_EMPTY_ROUTE_PATH: &str = "Route path cannot be empty"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERR_EMPTY_ROUTE_METHOD` is never used [INFO] [stdout] --> src/config/constants.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ERR_EMPTY_ROUTE_METHOD: &str = "Route method cannot be empty"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERR_EMPTY_ROUTE_SERVICE` is never used [INFO] [stdout] --> src/config/constants.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const ERR_EMPTY_ROUTE_SERVICE: &str = "Route service cannot be empty"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERR_EMPTY_ROUTE_GRPC_METHOD` is never used [INFO] [stdout] --> src/config/constants.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const ERR_EMPTY_ROUTE_GRPC_METHOD: &str = "Route grpc_method cannot be empty"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrorResponse` is never constructed [INFO] [stdout] --> src/response.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseResult` is never constructed [INFO] [stdout] --> src/response.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ResponseResult { [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/api-gateway-58660acbe49211f7/out/auth.rs:260:42 [INFO] [stdout] | [INFO] [stdout] 260 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 261 | | let method = ValidateTokenSvc(inner); [INFO] [stdout] 262 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] 263 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 273 | | Ok(res) [INFO] [stdout] 274 | | }; [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/api-gateway-58660acbe49211f7/out/auth.rs:273:25 [INFO] [stdout] | [INFO] [stdout] 273 | 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/api-gateway-58660acbe49211f7/out/auth.rs:278:41 [INFO] [stdout] | [INFO] [stdout] 278 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 279 | | let mut response = http::Response::new(empty_body()); [INFO] [stdout] 280 | | let headers = response.headers_mut(); [INFO] [stdout] 281 | | headers [INFO] [stdout] ... | [INFO] [stdout] 291 | | Ok(response) [INFO] [stdout] 292 | | }) [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/api-gateway-58660acbe49211f7/out/auth.rs:291:25 [INFO] [stdout] | [INFO] [stdout] 291 | Ok(response) [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/api-gateway-58660acbe49211f7/out/gateway.rs:264:42 [INFO] [stdout] | [INFO] [stdout] 264 | let fut = async move { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 265 | | let method = GetAuthPolicySvc(inner); [INFO] [stdout] 266 | | let codec = tonic::codec::ProstCodec::default(); [INFO] [stdout] 267 | | let mut grpc = tonic::server::Grpc::new(codec) [INFO] [stdout] ... | [INFO] [stdout] 277 | | Ok(res) [INFO] [stdout] 278 | | }; [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/api-gateway-58660acbe49211f7/out/gateway.rs:277:25 [INFO] [stdout] | [INFO] [stdout] 277 | 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/api-gateway-58660acbe49211f7/out/gateway.rs:282:41 [INFO] [stdout] | [INFO] [stdout] 282 | Box::pin(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 283 | | let mut response = http::Response::new(empty_body()); [INFO] [stdout] 284 | | let headers = response.headers_mut(); [INFO] [stdout] 285 | | headers [INFO] [stdout] ... | [INFO] [stdout] 295 | | Ok(response) [INFO] [stdout] 296 | | }) [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/api-gateway-58660acbe49211f7/out/gateway.rs:295:25 [INFO] [stdout] | [INFO] [stdout] 295 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `api-gateway` (lib test) due to 8 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "19ce468ba372597758210d8d42c005c21101a1305b722eb3b9950977be4115e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19ce468ba372597758210d8d42c005c21101a1305b722eb3b9950977be4115e1", kill_on_drop: false }` [INFO] [stdout] 19ce468ba372597758210d8d42c005c21101a1305b722eb3b9950977be4115e1