[INFO] cloning repository https://github.com/mintya/auto-proxy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mintya/auto-proxy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmintya%2Fauto-proxy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmintya%2Fauto-proxy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f91b57e383ae71feaa00311a2cb5ac3e5d19bf5e [INFO] checking mintya/auto-proxy 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%2Fmintya%2Fauto-proxy" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mintya/auto-proxy [INFO] finished tweaking git repo https://github.com/mintya/auto-proxy [INFO] tweaked toml for git repo https://github.com/mintya/auto-proxy written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mintya/auto-proxy 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/mintya/auto-proxy 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] [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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 3eb067a533a595e2e7defe8557e85fe3c9546dda9af011953e86510cdab9dfe2 [INFO] running `Command { std: "docker" "start" "-a" "3eb067a533a595e2e7defe8557e85fe3c9546dda9af011953e86510cdab9dfe2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3eb067a533a595e2e7defe8557e85fe3c9546dda9af011953e86510cdab9dfe2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3eb067a533a595e2e7defe8557e85fe3c9546dda9af011953e86510cdab9dfe2", kill_on_drop: false }` [INFO] [stdout] 3eb067a533a595e2e7defe8557e85fe3c9546dda9af011953e86510cdab9dfe2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] f14b63296c84467485b7688c512835a3bf3ec8df8be8397fcb83157b1c379bc1 [INFO] running `Command { std: "docker" "start" "-a" "f14b63296c84467485b7688c512835a3bf3ec8df8be8397fcb83157b1c379bc1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking anstream v0.6.19 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking colored v2.2.0 [INFO] [stderr] Checking rustls-native-certs v0.6.3 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking clap_builder v4.5.42 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Checking tokio v1.47.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking clap v4.5.42 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking auto-proxy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/proxy.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | fn safe_mutex_lock(mutex: &std::sync::Mutex) -> std::sync::MutexGuard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 51 | fn safe_mutex_lock(mutex: &std::sync::Mutex) -> std::sync::MutexGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:346:142 [INFO] [stdout] | [INFO] [stdout] 346 | pub async fn handle_request(req: Request, providers: Arc>, state: Arc) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 347 | | handle_request_with_logger(req, providers, state, None).await [INFO] [stdout] 348 | | } [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] --> src/proxy.rs:346:142 [INFO] [stdout] | [INFO] [stdout] 346 | pub async fn handle_request(req: Request, providers: Arc>, state: Arc) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 347 | | handle_request_with_logger(req, providers, state, None).await [INFO] [stdout] 348 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:347:5 [INFO] [stdout] | [INFO] [stdout] 347 | handle_request_with_logger(req, providers, state, None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:347:61 [INFO] [stdout] | [INFO] [stdout] 347 | handle_request_with_logger(req, providers, state, None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:347:5 [INFO] [stdout] | [INFO] [stdout] 347 | handle_request_with_logger(req, providers, state, None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:356:41 [INFO] [stdout] | [INFO] [stdout] 356 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 357 | | let method = req.method().clone(); [INFO] [stdout] 358 | | let uri = req.uri().clone(); [INFO] [stdout] 359 | | let headers = req.headers().clone(); [INFO] [stdout] ... | [INFO] [stdout] 371 | | handle_load_balanced_request(&providers, &state, &method, &uri, &headers, &body_bytes, logger).await [INFO] [stdout] 372 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:356:41 [INFO] [stdout] | [INFO] [stdout] 356 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 357 | | let method = req.method().clone(); [INFO] [stdout] 358 | | let uri = req.uri().clone(); [INFO] [stdout] 359 | | let headers = req.headers().clone(); [INFO] [stdout] ... | [INFO] [stdout] 371 | | handle_load_balanced_request(&providers, &state, &method, &uri, &headers, &body_bytes, logger).await [INFO] [stdout] 372 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:364:20 [INFO] [stdout] | [INFO] [stdout] 364 | return Ok(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 365 | | .status(400) [INFO] [stdout] 366 | | .body(Body::from("Bad Request")) [INFO] [stdout] 367 | | .unwrap_or_else(|_| Response::new(Body::from("Internal Error")))); [INFO] [stdout] | |_________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | handle_load_balanced_request(&providers, &state, &method, &uri, &headers, &body_bytes, logger).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:371:100 [INFO] [stdout] | [INFO] [stdout] 371 | handle_load_balanced_request(&providers, &state, &method, &uri, &headers, &body_bytes, logger).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | handle_load_balanced_request(&providers, &state, &method, &uri, &headers, &body_bytes, logger).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:383:41 [INFO] [stdout] | [INFO] [stdout] 383 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 384 | | let provider_count = providers.len(); [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | if provider_count == 0 { [INFO] [stdout] ... | [INFO] [stdout] 489 | | .unwrap_or_else(|_| Response::new(Body::from("Service Unavailable")))) [INFO] [stdout] 490 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:383:41 [INFO] [stdout] | [INFO] [stdout] 383 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 384 | | let provider_count = providers.len(); [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | if provider_count == 0 { [INFO] [stdout] ... | [INFO] [stdout] 489 | | .unwrap_or_else(|_| Response::new(Body::from("Service Unavailable")))) [INFO] [stdout] 490 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:387:16 [INFO] [stdout] | [INFO] [stdout] 387 | return Ok(Response::builder() [INFO] [stdout] | ________________^ [INFO] [stdout] 388 | | .status(503) [INFO] [stdout] 389 | | .header("Retry-After", "60") [INFO] [stdout] 390 | | .body(Body::from("No providers configured")) [INFO] [stdout] 391 | | .unwrap_or_else(|_| Response::new(Body::from("Service Unavailable")))); [INFO] [stdout] | |__________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:396:16 [INFO] [stdout] | [INFO] [stdout] 396 | return Ok(Response::builder() [INFO] [stdout] | ________________^ [INFO] [stdout] 397 | | .status(503) [INFO] [stdout] 398 | | .header("Retry-After", "30") [INFO] [stdout] 399 | | .body(Body::from("All providers are disabled by user. Please enable at least one provider.")) [INFO] [stdout] 400 | | .unwrap_or_else(|_| Response::new(Body::from("Service Unavailable")))); [INFO] [stdout] | |__________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:412:16 [INFO] [stdout] | [INFO] [stdout] 412 | return try_emergency_mode(&providers, &state, method, uri, headers, body_bytes, logger).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:412:97 [INFO] [stdout] | [INFO] [stdout] 412 | return try_emergency_mode(&providers, &state, method, uri, headers, body_bytes, logger).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:412:16 [INFO] [stdout] | [INFO] [stdout] 412 | return try_emergency_mode(&providers, &state, method, uri, headers, body_bytes, logger).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:449:32 [INFO] [stdout] | [INFO] [stdout] 449 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:485:5 [INFO] [stdout] | [INFO] [stdout] 485 | / Ok(Response::builder() [INFO] [stdout] 486 | | .status(503) [INFO] [stdout] 487 | | .header("Retry-After", "30") [INFO] [stdout] 488 | | .body(Body::from("Service temporarily unavailable - all providers failed")) [INFO] [stdout] 489 | | .unwrap_or_else(|_| Response::new(Body::from("Service Unavailable")))) [INFO] [stdout] | |______________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:501:41 [INFO] [stdout] | [INFO] [stdout] 501 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 502 | | [INFO] [stdout] 503 | | // 在紧急模式下,给每个供应商一次机会,但跳过被禁用的供应商 [INFO] [stdout] 504 | | for (_index, provider) in providers.iter().enumerate() { [INFO] [stdout] ... | [INFO] [stdout] 570 | | .unwrap_or_else(|_| Response::new(Body::from("Emergency mode failed")))) [INFO] [stdout] 571 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:501:41 [INFO] [stdout] | [INFO] [stdout] 501 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 502 | | [INFO] [stdout] 503 | | // 在紧急模式下,给每个供应商一次机会,但跳过被禁用的供应商 [INFO] [stdout] 504 | | for (_index, provider) in providers.iter().enumerate() { [INFO] [stdout] ... | [INFO] [stdout] 570 | | .unwrap_or_else(|_| Response::new(Body::from("Emergency mode failed")))) [INFO] [stdout] 571 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:538:28 [INFO] [stdout] | [INFO] [stdout] 538 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:566:5 [INFO] [stdout] | [INFO] [stdout] 566 | / Ok(Response::builder() [INFO] [stdout] 567 | | .status(503) [INFO] [stdout] 568 | | .header("Retry-After", "120") // 建议2分钟后重试 [INFO] [stdout] 569 | | .body(Body::from("Service unavailable - all providers are down. Please try again in 2 minutes.")) [INFO] [stdout] 570 | | .unwrap_or_else(|_| Response::new(Body::from("Emergency mode failed")))) [INFO] [stdout] | |________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/proxy.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | fn safe_mutex_lock(mutex: &std::sync::Mutex) -> std::sync::MutexGuard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 51 | fn safe_mutex_lock(mutex: &std::sync::Mutex) -> std::sync::MutexGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `auto-proxy` (lib) due to 24 previous errors; 1 warning emitted [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:346:142 [INFO] [stdout] | [INFO] [stdout] 346 | pub async fn handle_request(req: Request, providers: Arc>, state: Arc) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 347 | | handle_request_with_logger(req, providers, state, None).await [INFO] [stdout] 348 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:346:142 [INFO] [stdout] | [INFO] [stdout] 346 | pub async fn handle_request(req: Request, providers: Arc>, state: Arc) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 347 | | handle_request_with_logger(req, providers, state, None).await [INFO] [stdout] 348 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:347:5 [INFO] [stdout] | [INFO] [stdout] 347 | handle_request_with_logger(req, providers, state, None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:347:61 [INFO] [stdout] | [INFO] [stdout] 347 | handle_request_with_logger(req, providers, state, None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:347:5 [INFO] [stdout] | [INFO] [stdout] 347 | handle_request_with_logger(req, providers, state, None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:356:41 [INFO] [stdout] | [INFO] [stdout] 356 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 357 | | let method = req.method().clone(); [INFO] [stdout] 358 | | let uri = req.uri().clone(); [INFO] [stdout] 359 | | let headers = req.headers().clone(); [INFO] [stdout] ... | [INFO] [stdout] 371 | | handle_load_balanced_request(&providers, &state, &method, &uri, &headers, &body_bytes, logger).await [INFO] [stdout] 372 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:356:41 [INFO] [stdout] | [INFO] [stdout] 356 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 357 | | let method = req.method().clone(); [INFO] [stdout] 358 | | let uri = req.uri().clone(); [INFO] [stdout] 359 | | let headers = req.headers().clone(); [INFO] [stdout] ... | [INFO] [stdout] 371 | | handle_load_balanced_request(&providers, &state, &method, &uri, &headers, &body_bytes, logger).await [INFO] [stdout] 372 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:364:20 [INFO] [stdout] | [INFO] [stdout] 364 | return Ok(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 365 | | .status(400) [INFO] [stdout] 366 | | .body(Body::from("Bad Request")) [INFO] [stdout] 367 | | .unwrap_or_else(|_| Response::new(Body::from("Internal Error")))); [INFO] [stdout] | |_________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | handle_load_balanced_request(&providers, &state, &method, &uri, &headers, &body_bytes, logger).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:371:100 [INFO] [stdout] | [INFO] [stdout] 371 | handle_load_balanced_request(&providers, &state, &method, &uri, &headers, &body_bytes, logger).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | handle_load_balanced_request(&providers, &state, &method, &uri, &headers, &body_bytes, logger).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:383:41 [INFO] [stdout] | [INFO] [stdout] 383 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 384 | | let provider_count = providers.len(); [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | if provider_count == 0 { [INFO] [stdout] ... | [INFO] [stdout] 489 | | .unwrap_or_else(|_| Response::new(Body::from("Service Unavailable")))) [INFO] [stdout] 490 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:383:41 [INFO] [stdout] | [INFO] [stdout] 383 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 384 | | let provider_count = providers.len(); [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | if provider_count == 0 { [INFO] [stdout] ... | [INFO] [stdout] 489 | | .unwrap_or_else(|_| Response::new(Body::from("Service Unavailable")))) [INFO] [stdout] 490 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:387:16 [INFO] [stdout] | [INFO] [stdout] 387 | return Ok(Response::builder() [INFO] [stdout] | ________________^ [INFO] [stdout] 388 | | .status(503) [INFO] [stdout] 389 | | .header("Retry-After", "60") [INFO] [stdout] 390 | | .body(Body::from("No providers configured")) [INFO] [stdout] 391 | | .unwrap_or_else(|_| Response::new(Body::from("Service Unavailable")))); [INFO] [stdout] | |__________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:396:16 [INFO] [stdout] | [INFO] [stdout] 396 | return Ok(Response::builder() [INFO] [stdout] | ________________^ [INFO] [stdout] 397 | | .status(503) [INFO] [stdout] 398 | | .header("Retry-After", "30") [INFO] [stdout] 399 | | .body(Body::from("All providers are disabled by user. Please enable at least one provider.")) [INFO] [stdout] 400 | | .unwrap_or_else(|_| Response::new(Body::from("Service Unavailable")))); [INFO] [stdout] | |__________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:412:16 [INFO] [stdout] | [INFO] [stdout] 412 | return try_emergency_mode(&providers, &state, method, uri, headers, body_bytes, logger).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:412:97 [INFO] [stdout] | [INFO] [stdout] 412 | return try_emergency_mode(&providers, &state, method, uri, headers, body_bytes, logger).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:412:16 [INFO] [stdout] | [INFO] [stdout] 412 | return try_emergency_mode(&providers, &state, method, uri, headers, body_bytes, logger).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:449:32 [INFO] [stdout] | [INFO] [stdout] 449 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:485:5 [INFO] [stdout] | [INFO] [stdout] 485 | / Ok(Response::builder() [INFO] [stdout] 486 | | .status(503) [INFO] [stdout] 487 | | .header("Retry-After", "30") [INFO] [stdout] 488 | | .body(Body::from("Service temporarily unavailable - all providers failed")) [INFO] [stdout] 489 | | .unwrap_or_else(|_| Response::new(Body::from("Service Unavailable")))) [INFO] [stdout] | |______________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:501:41 [INFO] [stdout] | [INFO] [stdout] 501 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 502 | | [INFO] [stdout] 503 | | // 在紧急模式下,给每个供应商一次机会,但跳过被禁用的供应商 [INFO] [stdout] 504 | | for (_index, provider) in providers.iter().enumerate() { [INFO] [stdout] ... | [INFO] [stdout] 570 | | .unwrap_or_else(|_| Response::new(Body::from("Emergency mode failed")))) [INFO] [stdout] 571 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:501:41 [INFO] [stdout] | [INFO] [stdout] 501 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 502 | | [INFO] [stdout] 503 | | // 在紧急模式下,给每个供应商一次机会,但跳过被禁用的供应商 [INFO] [stdout] 504 | | for (_index, provider) in providers.iter().enumerate() { [INFO] [stdout] ... | [INFO] [stdout] 570 | | .unwrap_or_else(|_| Response::new(Body::from("Emergency mode failed")))) [INFO] [stdout] 571 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:538:28 [INFO] [stdout] | [INFO] [stdout] 538 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/proxy.rs:566:5 [INFO] [stdout] | [INFO] [stdout] 566 | / Ok(Response::builder() [INFO] [stdout] 567 | | .status(503) [INFO] [stdout] 568 | | .header("Retry-After", "120") // 建议2分钟后重试 [INFO] [stdout] 569 | | .body(Body::from("Service unavailable - all providers are down. Please try again in 2 minutes.")) [INFO] [stdout] 570 | | .unwrap_or_else(|_| Response::new(Body::from("Emergency mode failed")))) [INFO] [stdout] | |________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `auto-proxy` (lib test) due to 24 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "f14b63296c84467485b7688c512835a3bf3ec8df8be8397fcb83157b1c379bc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f14b63296c84467485b7688c512835a3bf3ec8df8be8397fcb83157b1c379bc1", kill_on_drop: false }` [INFO] [stdout] f14b63296c84467485b7688c512835a3bf3ec8df8be8397fcb83157b1c379bc1