[INFO] fetching crate product-os-router 0.0.35... [INFO] testing product-os-router-0.0.35 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate product-os-router 0.0.35 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate product-os-router 0.0.35 [INFO] finished tweaking crates.io crate product-os-router 0.0.35 [INFO] tweaked toml for crates.io crate product-os-router 0.0.35 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate product-os-router 0.0.35 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 118 packages to latest compatible versions [INFO] [stderr] Adding matchit v0.8.4 (available: v0.8.6) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded product-os-http-body v0.0.23 [INFO] [stderr] Downloaded product-os-http v0.0.8 [INFO] [stderr] Downloaded product-os-request v0.0.48 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0a57a2b133439271b27a1f03a0ac695381a3482be448c3be84678c7540559528 [INFO] running `Command { std: "docker" "start" "-a" "0a57a2b133439271b27a1f03a0ac695381a3482be448c3be84678c7540559528", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a57a2b133439271b27a1f03a0ac695381a3482be448c3be84678c7540559528", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a57a2b133439271b27a1f03a0ac695381a3482be448c3be84678c7540559528", kill_on_drop: false }` [INFO] [stdout] 0a57a2b133439271b27a1f03a0ac695381a3482be448c3be84678c7540559528 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5584f642e2a5b4d5693b1f06346720d98841e8bfc9bb127e5b1787f74d7ea87b [INFO] running `Command { std: "docker" "start" "-a" "5584f642e2a5b4d5693b1f06346720d98841e8bfc9bb127e5b1787f74d7ea87b", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling core-error v0.0.1-rc4 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling no-std-compat v0.4.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling product-os-http v0.0.8 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tungstenite v0.26.2 [INFO] [stderr] Compiling product-os-http-body v0.0.23 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-tungstenite v0.26.2 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_html_form v0.2.7 [INFO] [stderr] Compiling product-os-request v0.0.48 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling axum-extra v0.10.1 [INFO] [stderr] Compiling product-os-router v0.0.35 (/opt/rustwide/workdir) [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub use axum::{ [INFO] [stdout] | _________^ [INFO] [stdout] 34 | | routing::*, [INFO] [stdout] 35 | | middleware::*, [INFO] [stdout] | | ------------- but the name `future` in the type namespace is also re-exported here [INFO] [stdout] 36 | | handler::Handler, [INFO] [stdout] ... | [INFO] [stdout] 47 | | http::Uri [INFO] [stdout] 48 | | }; [INFO] [stdout] | |_^ the name `future` in the type namespace is first re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Extension` [INFO] [stdout] --> src/extractors.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use axum::Extension; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Request` [INFO] [stdout] --> src/extractors.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use axum::http::{request::Parts, Request}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `product_os_request::Method::PUT` [INFO] [stdout] --> src/extractors.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use product_os_request::Method::PUT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::ready` [INFO] [stdout] --> src/default_headers.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use futures_util::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Request` [INFO] [stdout] --> src/default_headers.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | use axum::http::{header::HeaderMap, Request, Response}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::ready` [INFO] [stdout] --> src/service_wrapper.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use futures_util::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `product_os_http_body::BodyBytes` [INFO] [stdout] --> src/service_wrapper.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use product_os_http_body::BodyBytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `product_os_request::BodyExt` [INFO] [stdout] --> src/service_wrapper.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use product_os_request::BodyExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/service_wrapper.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::{Body, BoxError, Bytes, IntoResponse, StatusCode}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/extractors.rs:23:46 [INFO] [stdout] | [INFO] [stdout] 23 | fn from_request_parts(parts: &mut Parts, state: &S) -> impl Future> + Send { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::RequestExt` [INFO] [stdout] --> src/lib.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | use axum::RequestExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefix` [INFO] [stdout] --> src/lib.rs:205:22 [INFO] [stdout] | [INFO] [stdout] 205 | for (value, [prefix, variable_name]) in param_matcher.captures_iter(path).map(|c| c.extract()) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `add_handler_to_method_router_no_state` and `convert_handler_to_method_router_no_state` are never used [INFO] [stdout] --> src/lib.rs:383:8 [INFO] [stdout] | [INFO] [stdout] 195 | impl ProductOSRouter<()> { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 383 | fn add_handler_to_method_router_no_state(method_router: MethodRouter, method: Method, handler: H) -> MethodRouter [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 402 | fn convert_handler_to_method_router_no_state(method: Method, handler: H) -> MethodRouter [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 `inner_layer` is never read [INFO] [stdout] --> src/service_wrapper.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct WrapperLayer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 25 | inner_layer: L, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WrapperLayer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tls` and `Plain` are never constructed [INFO] [stdout] --> src/dual_protocol.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum Protocol { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 21 | /// This connection is encrypted with TLS. [INFO] [stdout] 22 | Tls, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | /// This connection is unencrypted. [INFO] [stdout] 24 | Plain, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Protocol` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.86s [INFO] running `Command { std: "docker" "inspect" "5584f642e2a5b4d5693b1f06346720d98841e8bfc9bb127e5b1787f74d7ea87b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5584f642e2a5b4d5693b1f06346720d98841e8bfc9bb127e5b1787f74d7ea87b", kill_on_drop: false }` [INFO] [stdout] 5584f642e2a5b4d5693b1f06346720d98841e8bfc9bb127e5b1787f74d7ea87b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3148cbc4c80bbb25031dcbf8d5d3d4df31c0fff9fc85cc2c81709824632b83a7 [INFO] running `Command { std: "docker" "start" "-a" "3148cbc4c80bbb25031dcbf8d5d3d4df31c0fff9fc85cc2c81709824632b83a7", kill_on_drop: false }` [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub use axum::{ [INFO] [stdout] | _________^ [INFO] [stdout] 34 | | routing::*, [INFO] [stdout] 35 | | middleware::*, [INFO] [stdout] | | ------------- but the name `future` in the type namespace is also re-exported here [INFO] [stdout] 36 | | handler::Handler, [INFO] [stdout] ... | [INFO] [stdout] 47 | | http::Uri [INFO] [stdout] 48 | | }; [INFO] [stdout] | |_^ the name `future` in the type namespace is first re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Extension` [INFO] [stdout] --> src/extractors.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use axum::Extension; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling product-os-router v0.0.35 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Request` [INFO] [stdout] --> src/extractors.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use axum::http::{request::Parts, Request}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `product_os_request::Method::PUT` [INFO] [stdout] --> src/extractors.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use product_os_request::Method::PUT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::ready` [INFO] [stdout] --> src/default_headers.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use futures_util::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Request` [INFO] [stdout] --> src/default_headers.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | use axum::http::{header::HeaderMap, Request, Response}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::ready` [INFO] [stdout] --> src/service_wrapper.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use futures_util::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `product_os_http_body::BodyBytes` [INFO] [stdout] --> src/service_wrapper.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use product_os_http_body::BodyBytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `product_os_request::BodyExt` [INFO] [stdout] --> src/service_wrapper.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use product_os_request::BodyExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/service_wrapper.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::{Body, BoxError, Bytes, IntoResponse, StatusCode}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/extractors.rs:23:46 [INFO] [stdout] | [INFO] [stdout] 23 | fn from_request_parts(parts: &mut Parts, state: &S) -> impl Future> + Send { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::RequestExt` [INFO] [stdout] --> src/lib.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | use axum::RequestExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefix` [INFO] [stdout] --> src/lib.rs:205:22 [INFO] [stdout] | [INFO] [stdout] 205 | for (value, [prefix, variable_name]) in param_matcher.captures_iter(path).map(|c| c.extract()) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `add_handler_to_method_router_no_state` and `convert_handler_to_method_router_no_state` are never used [INFO] [stdout] --> src/lib.rs:383:8 [INFO] [stdout] | [INFO] [stdout] 195 | impl ProductOSRouter<()> { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 383 | fn add_handler_to_method_router_no_state(method_router: MethodRouter, method: Method, handler: H) -> MethodRouter [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 402 | fn convert_handler_to_method_router_no_state(method: Method, handler: H) -> MethodRouter [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 `inner_layer` is never read [INFO] [stdout] --> src/service_wrapper.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct WrapperLayer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 25 | inner_layer: L, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WrapperLayer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tls` and `Plain` are never constructed [INFO] [stdout] --> src/dual_protocol.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum Protocol { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 21 | /// This connection is encrypted with TLS. [INFO] [stdout] 22 | Tls, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | /// This connection is unencrypted. [INFO] [stdout] 24 | Plain, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Protocol` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub use axum::{ [INFO] [stdout] | _________^ [INFO] [stdout] 34 | | routing::*, [INFO] [stdout] 35 | | middleware::*, [INFO] [stdout] | | ------------- but the name `future` in the type namespace is also re-exported here [INFO] [stdout] 36 | | handler::Handler, [INFO] [stdout] ... | [INFO] [stdout] 47 | | http::Uri [INFO] [stdout] 48 | | }; [INFO] [stdout] | |_^ the name `future` in the type namespace is first re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Extension` [INFO] [stdout] --> src/extractors.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use axum::Extension; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Request` [INFO] [stdout] --> src/extractors.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use axum::http::{request::Parts, Request}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `product_os_request::Method::PUT` [INFO] [stdout] --> src/extractors.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use product_os_request::Method::PUT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::ready` [INFO] [stdout] --> src/default_headers.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use futures_util::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Request` [INFO] [stdout] --> src/default_headers.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | use axum::http::{header::HeaderMap, Request, Response}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::ready` [INFO] [stdout] --> src/service_wrapper.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use futures_util::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `product_os_http_body::BodyBytes` [INFO] [stdout] --> src/service_wrapper.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use product_os_http_body::BodyBytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `product_os_request::BodyExt` [INFO] [stdout] --> src/service_wrapper.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use product_os_request::BodyExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/service_wrapper.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::{Body, BoxError, Bytes, IntoResponse, StatusCode}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/extractors.rs:23:46 [INFO] [stdout] | [INFO] [stdout] 23 | fn from_request_parts(parts: &mut Parts, state: &S) -> impl Future> + Send { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::RequestExt` [INFO] [stdout] --> src/lib.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | use axum::RequestExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefix` [INFO] [stdout] --> src/lib.rs:205:22 [INFO] [stdout] | [INFO] [stdout] 205 | for (value, [prefix, variable_name]) in param_matcher.captures_iter(path).map(|c| c.extract()) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `add_handler_to_method_router_no_state` and `convert_handler_to_method_router_no_state` are never used [INFO] [stdout] --> src/lib.rs:383:8 [INFO] [stdout] | [INFO] [stdout] 195 | impl ProductOSRouter<()> { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 383 | fn add_handler_to_method_router_no_state(method_router: MethodRouter, method: Method, handler: H) -> MethodRouter [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 402 | fn convert_handler_to_method_router_no_state(method: Method, handler: H) -> MethodRouter [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 `inner_layer` is never read [INFO] [stdout] --> src/service_wrapper.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct WrapperLayer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 25 | inner_layer: L, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WrapperLayer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tls` and `Plain` are never constructed [INFO] [stdout] --> src/dual_protocol.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum Protocol { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 21 | /// This connection is encrypted with TLS. [INFO] [stdout] 22 | Tls, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | /// This connection is unencrypted. [INFO] [stdout] 24 | Plain, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Protocol` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "3148cbc4c80bbb25031dcbf8d5d3d4df31c0fff9fc85cc2c81709824632b83a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3148cbc4c80bbb25031dcbf8d5d3d4df31c0fff9fc85cc2c81709824632b83a7", kill_on_drop: false }` [INFO] [stdout] 3148cbc4c80bbb25031dcbf8d5d3d4df31c0fff9fc85cc2c81709824632b83a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9f510891467ec38cf049b51c3ddc9b35ab968baf77d894cd6941eddff3d3f409 [INFO] running `Command { std: "docker" "start" "-a" "9f510891467ec38cf049b51c3ddc9b35ab968baf77d894cd6941eddff3d3f409", kill_on_drop: false }` [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | pub use axum::{ [INFO] [stderr] | _________^ [INFO] [stderr] 34 | | routing::*, [INFO] [stderr] 35 | | middleware::*, [INFO] [stderr] | | ------------- but the name `future` in the type namespace is also re-exported here [INFO] [stderr] 36 | | handler::Handler, [INFO] [stderr] ... | [INFO] [stderr] 47 | | http::Uri [INFO] [stderr] 48 | | }; [INFO] [stderr] | |_^ the name `future` in the type namespace is first re-exported here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `axum::Extension` [INFO] [stderr] --> src/extractors.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use axum::Extension; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Request` [INFO] [stderr] --> src/extractors.rs:9:34 [INFO] [stderr] | [INFO] [stderr] 9 | use axum::http::{request::Parts, Request}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `product_os_request::Method::PUT` [INFO] [stderr] --> src/extractors.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use product_os_request::Method::PUT; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures_util::ready` [INFO] [stderr] --> src/default_headers.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use futures_util::ready; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Request` [INFO] [stderr] --> src/default_headers.rs:10:37 [INFO] [stderr] | [INFO] [stderr] 10 | use axum::http::{header::HeaderMap, Request, Response}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures_util::ready` [INFO] [stderr] --> src/service_wrapper.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use futures_util::ready; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `product_os_http_body::BodyBytes` [INFO] [stderr] --> src/service_wrapper.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use product_os_http_body::BodyBytes; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `product_os_request::BodyExt` [INFO] [stderr] --> src/service_wrapper.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use product_os_request::BodyExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Bytes` [INFO] [stderr] --> src/service_wrapper.rs:20:29 [INFO] [stderr] | [INFO] [stderr] 20 | use crate::{Body, BoxError, Bytes, IntoResponse, StatusCode}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `state` [INFO] [stderr] --> src/extractors.rs:23:46 [INFO] [stderr] | [INFO] [stderr] 23 | fn from_request_parts(parts: &mut Parts, state: &S) -> impl Future> + Send { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `axum::RequestExt` [INFO] [stderr] --> src/lib.rs:58:5 [INFO] [stderr] | [INFO] [stderr] 58 | use axum::RequestExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `prefix` [INFO] [stderr] --> src/lib.rs:205:22 [INFO] [stderr] | [INFO] [stderr] 205 | for (value, [prefix, variable_name]) in param_matcher.captures_iter(path).map(|c| c.extract()) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix` [INFO] [stderr] [INFO] [stderr] warning: associated functions `add_handler_to_method_router_no_state` and `convert_handler_to_method_router_no_state` are never used [INFO] [stderr] --> src/lib.rs:383:8 [INFO] [stderr] | [INFO] [stderr] 195 | impl ProductOSRouter<()> { [INFO] [stderr] | ------------------------ associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 383 | fn add_handler_to_method_router_no_state(method_router: MethodRouter, method: Method, handler: H) -> MethodRouter [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 402 | fn convert_handler_to_method_router_no_state(method: Method, handler: H) -> MethodRouter [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `inner_layer` is never read [INFO] [stderr] --> src/service_wrapper.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 24 | pub struct WrapperLayer { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 25 | inner_layer: L, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `WrapperLayer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `Tls` and `Plain` are never constructed [INFO] [stderr] --> src/dual_protocol.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 20 | pub enum Protocol { [INFO] [stderr] | -------- variants in this enum [INFO] [stderr] 21 | /// This connection is encrypted with TLS. [INFO] [stderr] 22 | Tls, [INFO] [stderr] | ^^^ [INFO] [stderr] 23 | /// This connection is unencrypted. [INFO] [stderr] 24 | Plain, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Protocol` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `product-os-router` (lib) generated 16 warnings (run `cargo fix --lib -p product-os-router` to apply 9 suggestions) [INFO] [stderr] warning: `product-os-router` (lib test) generated 16 warnings (16 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.64s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/product_os_router-ee5ee3b5fd00d6cf) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests product_os_router [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9f510891467ec38cf049b51c3ddc9b35ab968baf77d894cd6941eddff3d3f409", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f510891467ec38cf049b51c3ddc9b35ab968baf77d894cd6941eddff3d3f409", kill_on_drop: false }` [INFO] [stdout] 9f510891467ec38cf049b51c3ddc9b35ab968baf77d894cd6941eddff3d3f409