[INFO] cloning repository https://github.com/nyakiomaina/http-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nyakiomaina/http-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyakiomaina%2Fhttp-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyakiomaina%2Fhttp-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2dab029d80a3161b5b9da307d7186ab706bed724 [INFO] checking nyakiomaina/http-server 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%2Fnyakiomaina%2Fhttp-server" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/nyakiomaina/http-server [INFO] finished tweaking git repo https://github.com/nyakiomaina/http-server [INFO] tweaked toml for git repo https://github.com/nyakiomaina/http-server written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nyakiomaina/http-server 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/nyakiomaina/http-server 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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 8fd56acfff303b914f6715d90ba039177ce5a2c68265c763b7b5c73d36849d1f [INFO] running `Command { std: "docker" "start" "-a" "8fd56acfff303b914f6715d90ba039177ce5a2c68265c763b7b5c73d36849d1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8fd56acfff303b914f6715d90ba039177ce5a2c68265c763b7b5c73d36849d1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fd56acfff303b914f6715d90ba039177ce5a2c68265c763b7b5c73d36849d1f", kill_on_drop: false }` [INFO] [stdout] 8fd56acfff303b914f6715d90ba039177ce5a2c68265c763b7b5c73d36849d1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 0d4ce2f0483278411ef4bd7fdc010acd60779d0a2d1a47b289b389a158b48653 [INFO] running `Command { std: "docker" "start" "-a" "0d4ce2f0483278411ef4bd7fdc010acd60779d0a2d1a47b289b389a158b48653", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling cc v1.2.9 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking bitflags v2.7.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking ipnet v2.10.1 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking indexmap v2.7.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling openssl-src v300.4.1+3.4.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking serde v1.0.217 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result) -> impl Future, Infallible>> {router}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:21:50 [INFO] [stdout] | [INFO] [stdout] 21 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 22 | | Ok::<_, Infallible>(service_fn(router)) [INFO] [stdout] 23 | | }); [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) -> impl Future, Infallible>> {router}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | Ok::<_, Infallible>(service_fn(router)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:33:75 [INFO] [stdout] | [INFO] [stdout] 33 | async fn router(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 34 | | match (req.method(), req.uri().path()) { [INFO] [stdout] 35 | | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] 36 | | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:33:75 [INFO] [stdout] | [INFO] [stdout] 33 | async fn router(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 34 | | match (req.method(), req.uri().path()) { [INFO] [stdout] 35 | | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] 36 | | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / match (req.method(), req.uri().path()) { [INFO] [stdout] 35 | | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] 36 | | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] 37 | | _ => Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 40 | | .unwrap()), [INFO] [stdout] 41 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:35:52 [INFO] [stdout] | [INFO] [stdout] 35 | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:35:75 [INFO] [stdout] | [INFO] [stdout] 35 | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:35:52 [INFO] [stdout] | [INFO] [stdout] 35 | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:36:52 [INFO] [stdout] | [INFO] [stdout] 36 | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | _ => Ok(Response::builder() [INFO] [stdout] | ______________^ [INFO] [stdout] 38 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 39 | | .body(Body::from("Not Found")) [INFO] [stdout] 40 | | .unwrap()), [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:44:86 [INFO] [stdout] | [INFO] [stdout] 44 | async fn handle_completion(req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________^ [INFO] [stdout] 45 | | let whole_body = hyper::body::to_bytes(req.into_body()).await; [INFO] [stdout] 46 | | let body_bytes = match whole_body { [INFO] [stdout] 47 | | Ok(bytes) => bytes, [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:44:86 [INFO] [stdout] | [INFO] [stdout] 44 | async fn handle_completion(req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________^ [INFO] [stdout] 45 | | let whole_body = hyper::body::to_bytes(req.into_body()).await; [INFO] [stdout] 46 | | let body_bytes = match whole_body { [INFO] [stdout] 47 | | Ok(bytes) => bytes, [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | return Ok(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 50 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 51 | | .body(Body::from("Could not read request body")) [INFO] [stdout] 52 | | .unwrap()); [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | / match client.request(mock_request).await { [INFO] [stdout] 81 | | Ok(res) => Ok(res), [INFO] [stdout] 82 | | Err(_) => Ok(Response::builder() [INFO] [stdout] 83 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 84 | | .body(Body::from("Could not forward request")) [INFO] [stdout] 85 | | .unwrap()), [INFO] [stdout] 86 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | Ok(res) => Ok(res), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | Err(_) => Ok(Response::builder() [INFO] [stdout] | ___________________^ [INFO] [stdout] 83 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 84 | | .body(Body::from("Could not forward request")) [INFO] [stdout] 85 | | .unwrap()), [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:89:79 [INFO] [stdout] | [INFO] [stdout] 89 | async fn handle_gio(req: Request) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________^ [INFO] [stdout] 90 | | let whole_body = hyper::body::to_bytes(req.into_body()).await; [INFO] [stdout] 91 | | match whole_body { [INFO] [stdout] 92 | | Ok(body) => { [INFO] [stdout] ... | [INFO] [stdout] 117 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:89:79 [INFO] [stdout] | [INFO] [stdout] 89 | async fn handle_gio(req: Request) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________^ [INFO] [stdout] 90 | | let whole_body = hyper::body::to_bytes(req.into_body()).await; [INFO] [stdout] 91 | | match whole_body { [INFO] [stdout] 92 | | Ok(body) => { [INFO] [stdout] ... | [INFO] [stdout] 117 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | / match whole_body { [INFO] [stdout] 92 | | Ok(body) => { [INFO] [stdout] 93 | | let gio_request: Result = serde_json::from_slice(&body); [INFO] [stdout] 94 | | match gio_request { [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | Ok(body) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 93 | | let gio_request: Result = serde_json::from_slice(&body); [INFO] [stdout] 94 | | match gio_request { [INFO] [stdout] 95 | | Ok(gio_req) => { [INFO] [stdout] ... | [INFO] [stdout] 108 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | / match gio_request { [INFO] [stdout] 95 | | Ok(gio_req) => { [INFO] [stdout] 96 | | println!("Received GIORequest: {:?}", gio_req); [INFO] [stdout] 97 | | let resp = json!({ "status": "success" }); [INFO] [stdout] ... | [INFO] [stdout] 107 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | Ok(gio_req) => { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 96 | | println!("Received GIORequest: {:?}", gio_req); [INFO] [stdout] 97 | | let resp = json!({ "status": "success" }); [INFO] [stdout] 98 | | Ok(Response::new(Body::from(resp.to_string()))) [INFO] [stdout] 99 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | Ok(Response::new(Body::from(resp.to_string()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:100:27 [INFO] [stdout] | [INFO] [stdout] 100 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 101 | | let resp = json!({ "error": "Invalid JSON" }); [INFO] [stdout] 102 | | Ok(Response::builder() [INFO] [stdout] 103 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 104 | | .body(Body::from(resp.to_string())) [INFO] [stdout] 105 | | .unwrap()) [INFO] [stdout] 106 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 102 | / Ok(Response::builder() [INFO] [stdout] 103 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 104 | | .body(Body::from(resp.to_string())) [INFO] [stdout] 105 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | Err(_) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 110 | | let resp = json!({ "error": "Could not read request body" }); [INFO] [stdout] 111 | | Ok(Response::builder() [INFO] [stdout] 112 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 113 | | .body(Body::from(resp.to_string())) [INFO] [stdout] 114 | | .unwrap()) [INFO] [stdout] 115 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | / Ok(Response::builder() [INFO] [stdout] 112 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 113 | | .body(Body::from(resp.to_string())) [INFO] [stdout] 114 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `http-server` (bin "http-server") due to 29 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result) -> impl Future, Infallible>> {router}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:21:50 [INFO] [stdout] | [INFO] [stdout] 21 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 22 | | Ok::<_, Infallible>(service_fn(router)) [INFO] [stdout] 23 | | }); [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) -> impl Future, Infallible>> {router}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | Ok::<_, Infallible>(service_fn(router)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:33:75 [INFO] [stdout] | [INFO] [stdout] 33 | async fn router(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 34 | | match (req.method(), req.uri().path()) { [INFO] [stdout] 35 | | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] 36 | | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:33:75 [INFO] [stdout] | [INFO] [stdout] 33 | async fn router(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 34 | | match (req.method(), req.uri().path()) { [INFO] [stdout] 35 | | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] 36 | | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / match (req.method(), req.uri().path()) { [INFO] [stdout] 35 | | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] 36 | | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] 37 | | _ => Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 40 | | .unwrap()), [INFO] [stdout] 41 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:35:52 [INFO] [stdout] | [INFO] [stdout] 35 | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:35:75 [INFO] [stdout] | [INFO] [stdout] 35 | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:35:52 [INFO] [stdout] | [INFO] [stdout] 35 | (&Method::POST, "/v1/chat/completions") => handle_completion(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:36:52 [INFO] [stdout] | [INFO] [stdout] 36 | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | (&Method::POST, "/gio") => handle_gio(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | _ => Ok(Response::builder() [INFO] [stdout] | ______________^ [INFO] [stdout] 38 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 39 | | .body(Body::from("Not Found")) [INFO] [stdout] 40 | | .unwrap()), [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:44:86 [INFO] [stdout] | [INFO] [stdout] 44 | async fn handle_completion(req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________^ [INFO] [stdout] 45 | | let whole_body = hyper::body::to_bytes(req.into_body()).await; [INFO] [stdout] 46 | | let body_bytes = match whole_body { [INFO] [stdout] 47 | | Ok(bytes) => bytes, [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:44:86 [INFO] [stdout] | [INFO] [stdout] 44 | async fn handle_completion(req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________^ [INFO] [stdout] 45 | | let whole_body = hyper::body::to_bytes(req.into_body()).await; [INFO] [stdout] 46 | | let body_bytes = match whole_body { [INFO] [stdout] 47 | | Ok(bytes) => bytes, [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | return Ok(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 50 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 51 | | .body(Body::from("Could not read request body")) [INFO] [stdout] 52 | | .unwrap()); [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | / match client.request(mock_request).await { [INFO] [stdout] 81 | | Ok(res) => Ok(res), [INFO] [stdout] 82 | | Err(_) => Ok(Response::builder() [INFO] [stdout] 83 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 84 | | .body(Body::from("Could not forward request")) [INFO] [stdout] 85 | | .unwrap()), [INFO] [stdout] 86 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | Ok(res) => Ok(res), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | Err(_) => Ok(Response::builder() [INFO] [stdout] | ___________________^ [INFO] [stdout] 83 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 84 | | .body(Body::from("Could not forward request")) [INFO] [stdout] 85 | | .unwrap()), [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:89:79 [INFO] [stdout] | [INFO] [stdout] 89 | async fn handle_gio(req: Request) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________^ [INFO] [stdout] 90 | | let whole_body = hyper::body::to_bytes(req.into_body()).await; [INFO] [stdout] 91 | | match whole_body { [INFO] [stdout] 92 | | Ok(body) => { [INFO] [stdout] ... | [INFO] [stdout] 117 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:89:79 [INFO] [stdout] | [INFO] [stdout] 89 | async fn handle_gio(req: Request) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________^ [INFO] [stdout] 90 | | let whole_body = hyper::body::to_bytes(req.into_body()).await; [INFO] [stdout] 91 | | match whole_body { [INFO] [stdout] 92 | | Ok(body) => { [INFO] [stdout] ... | [INFO] [stdout] 117 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | / match whole_body { [INFO] [stdout] 92 | | Ok(body) => { [INFO] [stdout] 93 | | let gio_request: Result = serde_json::from_slice(&body); [INFO] [stdout] 94 | | match gio_request { [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | Ok(body) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 93 | | let gio_request: Result = serde_json::from_slice(&body); [INFO] [stdout] 94 | | match gio_request { [INFO] [stdout] 95 | | Ok(gio_req) => { [INFO] [stdout] ... | [INFO] [stdout] 108 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | / match gio_request { [INFO] [stdout] 95 | | Ok(gio_req) => { [INFO] [stdout] 96 | | println!("Received GIORequest: {:?}", gio_req); [INFO] [stdout] 97 | | let resp = json!({ "status": "success" }); [INFO] [stdout] ... | [INFO] [stdout] 107 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | Ok(gio_req) => { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 96 | | println!("Received GIORequest: {:?}", gio_req); [INFO] [stdout] 97 | | let resp = json!({ "status": "success" }); [INFO] [stdout] 98 | | Ok(Response::new(Body::from(resp.to_string()))) [INFO] [stdout] 99 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | Ok(Response::new(Body::from(resp.to_string()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:100:27 [INFO] [stdout] | [INFO] [stdout] 100 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 101 | | let resp = json!({ "error": "Invalid JSON" }); [INFO] [stdout] 102 | | Ok(Response::builder() [INFO] [stdout] 103 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 104 | | .body(Body::from(resp.to_string())) [INFO] [stdout] 105 | | .unwrap()) [INFO] [stdout] 106 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 102 | / Ok(Response::builder() [INFO] [stdout] 103 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 104 | | .body(Body::from(resp.to_string())) [INFO] [stdout] 105 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | Err(_) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 110 | | let resp = json!({ "error": "Could not read request body" }); [INFO] [stdout] 111 | | Ok(Response::builder() [INFO] [stdout] 112 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 113 | | .body(Body::from(resp.to_string())) [INFO] [stdout] 114 | | .unwrap()) [INFO] [stdout] 115 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | / Ok(Response::builder() [INFO] [stdout] 112 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 113 | | .body(Body::from(resp.to_string())) [INFO] [stdout] 114 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `http-server` (bin "http-server" test) due to 29 previous errors [INFO] running `Command { std: "docker" "inspect" "0d4ce2f0483278411ef4bd7fdc010acd60779d0a2d1a47b289b389a158b48653", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d4ce2f0483278411ef4bd7fdc010acd60779d0a2d1a47b289b389a158b48653", kill_on_drop: false }` [INFO] [stdout] 0d4ce2f0483278411ef4bd7fdc010acd60779d0a2d1a47b289b389a158b48653