[INFO] cloning repository https://github.com/MaCh-nE/Rust-HTTP_WebServer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MaCh-nE/Rust-HTTP_WebServer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaCh-nE%2FRust-HTTP_WebServer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaCh-nE%2FRust-HTTP_WebServer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5a87daf1229812c4b8f214a1de863e1c28b0df46 [INFO] checking MaCh-nE/Rust-HTTP_WebServer 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%2FMaCh-nE%2FRust-HTTP_WebServer" "/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/MaCh-nE/Rust-HTTP_WebServer [INFO] finished tweaking git repo https://github.com/MaCh-nE/Rust-HTTP_WebServer [INFO] tweaked toml for git repo https://github.com/MaCh-nE/Rust-HTTP_WebServer written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MaCh-nE/Rust-HTTP_WebServer 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/MaCh-nE/Rust-HTTP_WebServer 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] 966af9c83a2198faaf533550238afc525a5facce9b8d934fa120976fff7211c0 [INFO] running `Command { std: "docker" "start" "-a" "966af9c83a2198faaf533550238afc525a5facce9b8d934fa120976fff7211c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "966af9c83a2198faaf533550238afc525a5facce9b8d934fa120976fff7211c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "966af9c83a2198faaf533550238afc525a5facce9b8d934fa120976fff7211c0", kill_on_drop: false }` [INFO] [stdout] 966af9c83a2198faaf533550238afc525a5facce9b8d934fa120976fff7211c0 [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] c53ea30dec35406fb87ff00612caa8e166d8a1b4f2a17e6511a198fb038c3e48 [INFO] running `Command { std: "docker" "start" "-a" "c53ea30dec35406fb87ff00612caa8e166d8a1b4f2a17e6511a198fb038c3e48", kill_on_drop: false }` [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking indexmap v2.8.0 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking tokio v1.44.0 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking Rust-HTTP-WebServer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:12:71 [INFO] [stdout] | [INFO] [stdout] 12 | async fn serve_file(path: &str) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 13 | | if !Path::new(path).exists() { [INFO] [stdout] 14 | | eprintln!("File not found: {}", path); [INFO] [stdout] 15 | | return Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 56 | | })) [INFO] [stdout] 57 | | } [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/main.rs:12:71 [INFO] [stdout] | [INFO] [stdout] 12 | async fn serve_file(path: &str) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 13 | | if !Path::new(path).exists() { [INFO] [stdout] 14 | | eprintln!("File not found: {}", path); [INFO] [stdout] 15 | | return Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 56 | | })) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | return Ok(Response::builder() [INFO] [stdout] | ________________^ [INFO] [stdout] 16 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 17 | | .body(Body::from("404 Not Found")) [INFO] [stdout] 18 | | .unwrap_or_else(|_| Response::new(Body::from("Internal Server Error")))); [INFO] [stdout] | |____________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | return Ok(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 28 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 29 | | .body(Body::from("500 Internal Server Error")) [INFO] [stdout] 30 | | .unwrap_or_else(|_| Response::new(Body::from("Internal Server Error")))); [INFO] [stdout] | |________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | return Ok(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 40 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 41 | | .body(Body::from("500 Internal Server Error")) [INFO] [stdout] 42 | | .unwrap_or_else(|_| Response::new(Body::from("Internal Server Error")))); [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:5 [INFO] [stdout] | [INFO] [stdout] 49 | / Ok(Response::builder() [INFO] [stdout] 50 | | .status(StatusCode::OK) [INFO] [stdout] 51 | | .header(CONTENT_TYPE, mime_type.as_ref()) [INFO] [stdout] 52 | | .body(Body::from(contents)) [INFO] [stdout] ... | [INFO] [stdout] 55 | | Response::new(Body::from("Internal Server Error")) [INFO] [stdout] 56 | | })) [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:59:83 [INFO] [stdout] | [INFO] [stdout] 59 | async fn handle_request(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 60 | | let path = req.uri().path(); [INFO] [stdout] 61 | | [INFO] [stdout] 62 | | let file_path = if path == "/" { [INFO] [stdout] ... | [INFO] [stdout] 71 | | serve_file(&file_path).await [INFO] [stdout] 72 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:59:83 [INFO] [stdout] | [INFO] [stdout] 59 | async fn handle_request(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 60 | | let path = req.uri().path(); [INFO] [stdout] 61 | | [INFO] [stdout] 62 | | let file_path = if path == "/" { [INFO] [stdout] ... | [INFO] [stdout] 71 | | serve_file(&file_path).await [INFO] [stdout] 72 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | serve_file(&file_path).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:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | serve_file(&file_path).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:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | serve_file(&file_path).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result) -> impl Future, Infallible>> {handle_request}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:79:50 [INFO] [stdout] | [INFO] [stdout] 79 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 80 | | Ok::<_, Infallible>(service_fn(handle_request)) [INFO] [stdout] 81 | | }); [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result) -> impl Future, Infallible>> {handle_request}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | Ok::<_, Infallible>(service_fn(handle_request)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Rust-HTTP-WebServer` (bin "Rust-HTTP-WebServer") due to 13 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, Infallible> [INFO] [stdout] --> src/main.rs:12:71 [INFO] [stdout] | [INFO] [stdout] 12 | async fn serve_file(path: &str) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 13 | | if !Path::new(path).exists() { [INFO] [stdout] 14 | | eprintln!("File not found: {}", path); [INFO] [stdout] 15 | | return Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 56 | | })) [INFO] [stdout] 57 | | } [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/main.rs:12:71 [INFO] [stdout] | [INFO] [stdout] 12 | async fn serve_file(path: &str) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 13 | | if !Path::new(path).exists() { [INFO] [stdout] 14 | | eprintln!("File not found: {}", path); [INFO] [stdout] 15 | | return Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 56 | | })) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | return Ok(Response::builder() [INFO] [stdout] | ________________^ [INFO] [stdout] 16 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 17 | | .body(Body::from("404 Not Found")) [INFO] [stdout] 18 | | .unwrap_or_else(|_| Response::new(Body::from("Internal Server Error")))); [INFO] [stdout] | |____________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | return Ok(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 28 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 29 | | .body(Body::from("500 Internal Server Error")) [INFO] [stdout] 30 | | .unwrap_or_else(|_| Response::new(Body::from("Internal Server Error")))); [INFO] [stdout] | |________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | return Ok(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 40 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 41 | | .body(Body::from("500 Internal Server Error")) [INFO] [stdout] 42 | | .unwrap_or_else(|_| Response::new(Body::from("Internal Server Error")))); [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:5 [INFO] [stdout] | [INFO] [stdout] 49 | / Ok(Response::builder() [INFO] [stdout] 50 | | .status(StatusCode::OK) [INFO] [stdout] 51 | | .header(CONTENT_TYPE, mime_type.as_ref()) [INFO] [stdout] 52 | | .body(Body::from(contents)) [INFO] [stdout] ... | [INFO] [stdout] 55 | | Response::new(Body::from("Internal Server Error")) [INFO] [stdout] 56 | | })) [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:59:83 [INFO] [stdout] | [INFO] [stdout] 59 | async fn handle_request(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 60 | | let path = req.uri().path(); [INFO] [stdout] 61 | | [INFO] [stdout] 62 | | let file_path = if path == "/" { [INFO] [stdout] ... | [INFO] [stdout] 71 | | serve_file(&file_path).await [INFO] [stdout] 72 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:59:83 [INFO] [stdout] | [INFO] [stdout] 59 | async fn handle_request(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 60 | | let path = req.uri().path(); [INFO] [stdout] 61 | | [INFO] [stdout] 62 | | let file_path = if path == "/" { [INFO] [stdout] ... | [INFO] [stdout] 71 | | serve_file(&file_path).await [INFO] [stdout] 72 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | serve_file(&file_path).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:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | serve_file(&file_path).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:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | serve_file(&file_path).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result) -> impl Future, Infallible>> {handle_request}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:79:50 [INFO] [stdout] | [INFO] [stdout] 79 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 80 | | Ok::<_, Infallible>(service_fn(handle_request)) [INFO] [stdout] 81 | | }); [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result) -> impl Future, Infallible>> {handle_request}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | Ok::<_, Infallible>(service_fn(handle_request)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Rust-HTTP-WebServer` (bin "Rust-HTTP-WebServer" test) due to 13 previous errors [INFO] running `Command { std: "docker" "inspect" "c53ea30dec35406fb87ff00612caa8e166d8a1b4f2a17e6511a198fb038c3e48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c53ea30dec35406fb87ff00612caa8e166d8a1b4f2a17e6511a198fb038c3e48", kill_on_drop: false }` [INFO] [stdout] c53ea30dec35406fb87ff00612caa8e166d8a1b4f2a17e6511a198fb038c3e48