[INFO] cloning repository https://github.com/ZenithInc/kite [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZenithInc/kite" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZenithInc%2Fkite", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZenithInc%2Fkite'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 54b7809fd3d672feb951561bddb9a4121804f73f [INFO] checking ZenithInc/kite 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%2FZenithInc%2Fkite" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ZenithInc/kite [INFO] finished tweaking git repo https://github.com/ZenithInc/kite [INFO] tweaked toml for git repo https://github.com/ZenithInc/kite written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ZenithInc/kite 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/ZenithInc/kite 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 7e43e56ce86d2c502d4bc8daf88b55b7121613fcb644bc1000cc38ce3cf97ae5 [INFO] running `Command { std: "docker" "start" "-a" "7e43e56ce86d2c502d4bc8daf88b55b7121613fcb644bc1000cc38ce3cf97ae5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e43e56ce86d2c502d4bc8daf88b55b7121613fcb644bc1000cc38ce3cf97ae5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e43e56ce86d2c502d4bc8daf88b55b7121613fcb644bc1000cc38ce3cf97ae5", kill_on_drop: false }` [INFO] [stdout] 7e43e56ce86d2c502d4bc8daf88b55b7121613fcb644bc1000cc38ce3cf97ae5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] e619ef3fb176b100b6e622cb1fd276c9ab5a3ee659f76e84cce973e4200b7361 [INFO] running `Command { std: "docker" "start" "-a" "e619ef3fb176b100b6e622cb1fd276c9ab5a3ee659f76e84cce973e4200b7361", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking winnow v0.7.11 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking rustls-native-certs v0.6.3 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Checking tokio v1.46.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [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 tokio-util v0.7.15 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking proxy-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `ClientConfig` is never constructed [INFO] [stdout] --> src/common.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct ClientConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ProxyMode` is never used [INFO] [stdout] --> src/common.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum ProxyMode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:40:94 [INFO] [stdout] | [INFO] [stdout] 40 | async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 41 | | // 检查是否是CONNECT请求 [INFO] [stdout] 42 | | if req.method() == Method::CONNECT { [INFO] [stdout] 43 | | match self.handle_connect_tunnel(req).await { [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [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/server.rs:40:94 [INFO] [stdout] | [INFO] [stdout] 40 | async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 41 | | // 检查是否是CONNECT请求 [INFO] [stdout] 42 | | if req.method() == Method::CONNECT { [INFO] [stdout] 43 | | match self.handle_connect_tunnel(req).await { [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | / if req.method() == Method::CONNECT { [INFO] [stdout] 43 | | match self.handle_connect_tunnel(req).await { [INFO] [stdout] 44 | | Ok(response) => Ok(response), [INFO] [stdout] 45 | | Err(e) => { [INFO] [stdout] ... | [INFO] [stdout] 64 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 42 | if req.method() == Method::CONNECT { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 43 | | match self.handle_connect_tunnel(req).await { [INFO] [stdout] 44 | | Ok(response) => Ok(response), [INFO] [stdout] 45 | | Err(e) => { [INFO] [stdout] ... | [INFO] [stdout] 53 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | / match self.handle_connect_tunnel(req).await { [INFO] [stdout] 44 | | Ok(response) => Ok(response), [INFO] [stdout] 45 | | Err(e) => { [INFO] [stdout] 46 | | error!("Error handling CONNECT: {}", e); [INFO] [stdout] ... | [INFO] [stdout] 52 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:44:33 [INFO] [stdout] | [INFO] [stdout] 44 | Ok(response) => Ok(response), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 46 | | error!("Error handling CONNECT: {}", e); [INFO] [stdout] 47 | | Ok(Response::builder() [INFO] [stdout] 48 | | .status(StatusCode::BAD_GATEWAY) [INFO] [stdout] 49 | | .body(Body::from("Bad Gateway")) [INFO] [stdout] 50 | | .unwrap()) [INFO] [stdout] 51 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | / Ok(Response::builder() [INFO] [stdout] 48 | | .status(StatusCode::BAD_GATEWAY) [INFO] [stdout] 49 | | .body(Body::from("Bad Gateway")) [INFO] [stdout] 50 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 54 | | match self.process_request(req).await { [INFO] [stdout] 55 | | Ok(response) => Ok(response), [INFO] [stdout] 56 | | Err(e) => { [INFO] [stdout] ... | [INFO] [stdout] 64 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | / match self.process_request(req).await { [INFO] [stdout] 55 | | Ok(response) => Ok(response), [INFO] [stdout] 56 | | Err(e) => { [INFO] [stdout] 57 | | error!("Error processing request: {}", e); [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:55:33 [INFO] [stdout] | [INFO] [stdout] 55 | Ok(response) => Ok(response), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 57 | | error!("Error processing request: {}", e); [INFO] [stdout] 58 | | Ok(Response::builder() [INFO] [stdout] 59 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 60 | | .body(Body::from("Internal Server Error")) [INFO] [stdout] 61 | | .unwrap()) [INFO] [stdout] 62 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | / Ok(Response::builder() [INFO] [stdout] 59 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 60 | | .body(Body::from("Internal Server Error")) [INFO] [stdout] 61 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:305:20 [INFO] [stdout] | [INFO] [stdout] 305 | async move { [INFO] [stdout] | ____________________^ [INFO] [stdout] 306 | | Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 307 | | let proxy_server = proxy_server.clone(); [INFO] [stdout] 308 | | async move { proxy_server.handle_request(req).await } [INFO] [stdout] 309 | | })) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | / Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 307 | | let proxy_server = proxy_server.clone(); [INFO] [stdout] 308 | | async move { proxy_server.handle_request(req).await } [INFO] [stdout] 309 | | })) [INFO] [stdout] | |_______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:308:28 [INFO] [stdout] | [INFO] [stdout] 308 | async move { proxy_server.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:308:30 [INFO] [stdout] | [INFO] [stdout] 308 | async move { proxy_server.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:308:63 [INFO] [stdout] | [INFO] [stdout] 308 | async move { proxy_server.handle_request(req).await } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:308:30 [INFO] [stdout] | [INFO] [stdout] 308 | async move { proxy_server.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `proxy-rs` (bin "server" test) due to 19 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: struct `ServerConfig` is never constructed [INFO] [stdout] --> src/common.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct ServerConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerConfig` is never constructed [INFO] [stdout] --> src/common.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct ServerConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:40:94 [INFO] [stdout] | [INFO] [stdout] 40 | async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 41 | | match self.process_request(req).await { [INFO] [stdout] 42 | | Ok(response) => Ok(response), [INFO] [stdout] 43 | | Err(e) => { [INFO] [stdout] ... | [INFO] [stdout] 51 | | } [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/client.rs:40:94 [INFO] [stdout] | [INFO] [stdout] 40 | async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 41 | | match self.process_request(req).await { [INFO] [stdout] 42 | | Ok(response) => Ok(response), [INFO] [stdout] 43 | | Err(e) => { [INFO] [stdout] ... | [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | / match self.process_request(req).await { [INFO] [stdout] 42 | | Ok(response) => Ok(response), [INFO] [stdout] 43 | | Err(e) => { [INFO] [stdout] 44 | | error!("Error processing request: {}", e); [INFO] [stdout] ... | [INFO] [stdout] 50 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:42:29 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(response) => Ok(response), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 44 | | error!("Error processing request: {}", e); [INFO] [stdout] 45 | | Ok(Response::builder() [INFO] [stdout] 46 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 47 | | .body(Body::from("Proxy Error")) [INFO] [stdout] 48 | | .unwrap()) [INFO] [stdout] 49 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | / Ok(Response::builder() [INFO] [stdout] 46 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 47 | | .body(Body::from("Proxy Error")) [INFO] [stdout] 48 | | .unwrap()) [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:196:20 [INFO] [stdout] | [INFO] [stdout] 196 | async move { [INFO] [stdout] | ____________________^ [INFO] [stdout] 197 | | Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 198 | | let proxy_client = proxy_client.clone(); [INFO] [stdout] 199 | | async move { proxy_client.handle_request(req).await } [INFO] [stdout] 200 | | })) [INFO] [stdout] 201 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | / Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 198 | | let proxy_client = proxy_client.clone(); [INFO] [stdout] 199 | | async move { proxy_client.handle_request(req).await } [INFO] [stdout] 200 | | })) [INFO] [stdout] | |_______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:199:28 [INFO] [stdout] | [INFO] [stdout] 199 | async move { proxy_client.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:199:30 [INFO] [stdout] | [INFO] [stdout] 199 | async move { proxy_client.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:199:63 [INFO] [stdout] | [INFO] [stdout] 199 | async move { proxy_client.handle_request(req).await } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:199:30 [INFO] [stdout] | [INFO] [stdout] 199 | async move { proxy_client.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:40:94 [INFO] [stdout] | [INFO] [stdout] 40 | async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 41 | | match self.process_request(req).await { [INFO] [stdout] 42 | | Ok(response) => Ok(response), [INFO] [stdout] 43 | | Err(e) => { [INFO] [stdout] ... | [INFO] [stdout] 51 | | } [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/client.rs:40:94 [INFO] [stdout] | [INFO] [stdout] 40 | async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 41 | | match self.process_request(req).await { [INFO] [stdout] 42 | | Ok(response) => Ok(response), [INFO] [stdout] 43 | | Err(e) => { [INFO] [stdout] ... | [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | / match self.process_request(req).await { [INFO] [stdout] 42 | | Ok(response) => Ok(response), [INFO] [stdout] 43 | | Err(e) => { [INFO] [stdout] 44 | | error!("Error processing request: {}", e); [INFO] [stdout] ... | [INFO] [stdout] 50 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:42:29 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(response) => Ok(response), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 44 | | error!("Error processing request: {}", e); [INFO] [stdout] 45 | | Ok(Response::builder() [INFO] [stdout] 46 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 47 | | .body(Body::from("Proxy Error")) [INFO] [stdout] 48 | | .unwrap()) [INFO] [stdout] 49 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | / Ok(Response::builder() [INFO] [stdout] 46 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 47 | | .body(Body::from("Proxy Error")) [INFO] [stdout] 48 | | .unwrap()) [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:196:20 [INFO] [stdout] | [INFO] [stdout] 196 | async move { [INFO] [stdout] | ____________________^ [INFO] [stdout] 197 | | Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 198 | | let proxy_client = proxy_client.clone(); [INFO] [stdout] 199 | | async move { proxy_client.handle_request(req).await } [INFO] [stdout] 200 | | })) [INFO] [stdout] 201 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | / Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 198 | | let proxy_client = proxy_client.clone(); [INFO] [stdout] 199 | | async move { proxy_client.handle_request(req).await } [INFO] [stdout] 200 | | })) [INFO] [stdout] | |_______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:199:28 [INFO] [stdout] | [INFO] [stdout] 199 | async move { proxy_client.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:199:30 [INFO] [stdout] | [INFO] [stdout] 199 | async move { proxy_client.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:199:63 [INFO] [stdout] | [INFO] [stdout] 199 | async move { proxy_client.handle_request(req).await } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/client.rs:199:30 [INFO] [stdout] | [INFO] [stdout] 199 | async move { proxy_client.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `proxy-rs` (bin "client" test) due to 12 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `proxy-rs` (bin "client") due to 12 previous errors; 1 warning emitted [INFO] [stdout] warning: struct `ClientConfig` is never constructed [INFO] [stdout] --> src/common.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct ClientConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ProxyMode` is never used [INFO] [stdout] --> src/common.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum ProxyMode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:40:94 [INFO] [stdout] | [INFO] [stdout] 40 | async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 41 | | // 检查是否是CONNECT请求 [INFO] [stdout] 42 | | if req.method() == Method::CONNECT { [INFO] [stdout] 43 | | match self.handle_connect_tunnel(req).await { [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [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/server.rs:40:94 [INFO] [stdout] | [INFO] [stdout] 40 | async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 41 | | // 检查是否是CONNECT请求 [INFO] [stdout] 42 | | if req.method() == Method::CONNECT { [INFO] [stdout] 43 | | match self.handle_connect_tunnel(req).await { [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | / if req.method() == Method::CONNECT { [INFO] [stdout] 43 | | match self.handle_connect_tunnel(req).await { [INFO] [stdout] 44 | | Ok(response) => Ok(response), [INFO] [stdout] 45 | | Err(e) => { [INFO] [stdout] ... | [INFO] [stdout] 64 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 42 | if req.method() == Method::CONNECT { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 43 | | match self.handle_connect_tunnel(req).await { [INFO] [stdout] 44 | | Ok(response) => Ok(response), [INFO] [stdout] 45 | | Err(e) => { [INFO] [stdout] ... | [INFO] [stdout] 53 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | / match self.handle_connect_tunnel(req).await { [INFO] [stdout] 44 | | Ok(response) => Ok(response), [INFO] [stdout] 45 | | Err(e) => { [INFO] [stdout] 46 | | error!("Error handling CONNECT: {}", e); [INFO] [stdout] ... | [INFO] [stdout] 52 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:44:33 [INFO] [stdout] | [INFO] [stdout] 44 | Ok(response) => Ok(response), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 46 | | error!("Error handling CONNECT: {}", e); [INFO] [stdout] 47 | | Ok(Response::builder() [INFO] [stdout] 48 | | .status(StatusCode::BAD_GATEWAY) [INFO] [stdout] 49 | | .body(Body::from("Bad Gateway")) [INFO] [stdout] 50 | | .unwrap()) [INFO] [stdout] 51 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | / Ok(Response::builder() [INFO] [stdout] 48 | | .status(StatusCode::BAD_GATEWAY) [INFO] [stdout] 49 | | .body(Body::from("Bad Gateway")) [INFO] [stdout] 50 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 54 | | match self.process_request(req).await { [INFO] [stdout] 55 | | Ok(response) => Ok(response), [INFO] [stdout] 56 | | Err(e) => { [INFO] [stdout] ... | [INFO] [stdout] 64 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | / match self.process_request(req).await { [INFO] [stdout] 55 | | Ok(response) => Ok(response), [INFO] [stdout] 56 | | Err(e) => { [INFO] [stdout] 57 | | error!("Error processing request: {}", e); [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:55:33 [INFO] [stdout] | [INFO] [stdout] 55 | Ok(response) => Ok(response), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 57 | | error!("Error processing request: {}", e); [INFO] [stdout] 58 | | Ok(Response::builder() [INFO] [stdout] 59 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 60 | | .body(Body::from("Internal Server Error")) [INFO] [stdout] 61 | | .unwrap()) [INFO] [stdout] 62 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | / Ok(Response::builder() [INFO] [stdout] 59 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 60 | | .body(Body::from("Internal Server Error")) [INFO] [stdout] 61 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:305:20 [INFO] [stdout] | [INFO] [stdout] 305 | async move { [INFO] [stdout] | ____________________^ [INFO] [stdout] 306 | | Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 307 | | let proxy_server = proxy_server.clone(); [INFO] [stdout] 308 | | async move { proxy_server.handle_request(req).await } [INFO] [stdout] 309 | | })) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | / Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 307 | | let proxy_server = proxy_server.clone(); [INFO] [stdout] 308 | | async move { proxy_server.handle_request(req).await } [INFO] [stdout] 309 | | })) [INFO] [stdout] | |_______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:308:28 [INFO] [stdout] | [INFO] [stdout] 308 | async move { proxy_server.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:308:30 [INFO] [stdout] | [INFO] [stdout] 308 | async move { proxy_server.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:308:63 [INFO] [stdout] | [INFO] [stdout] 308 | async move { proxy_server.handle_request(req).await } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:308:30 [INFO] [stdout] | [INFO] [stdout] 308 | async move { proxy_server.handle_request(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `proxy-rs` (bin "server") due to 19 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e619ef3fb176b100b6e622cb1fd276c9ab5a3ee659f76e84cce973e4200b7361", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e619ef3fb176b100b6e622cb1fd276c9ab5a3ee659f76e84cce973e4200b7361", kill_on_drop: false }` [INFO] [stdout] e619ef3fb176b100b6e622cb1fd276c9ab5a3ee659f76e84cce973e4200b7361