[INFO] fetching crate simple-image-server 0.0.1...
[INFO] checking simple-image-server-0.0.1 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577
[INFO] extracting crate simple-image-server 0.0.1 into /workspace/builds/worker-3-tc2/source
[INFO] started tweaking crates.io crate simple-image-server 0.0.1
[INFO] finished tweaking crates.io crate simple-image-server 0.0.1
[INFO] tweaked toml for crates.io crate simple-image-server 0.0.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate simple-image-server 0.0.1 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 crates.io crate simple-image-server 0.0.1 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-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] 509c02ffe56dcf4bd07c0cb25b82b6761992dd00399bc51aa1ee698393dd514f
[INFO] running `Command { std: "docker" "start" "-a" "509c02ffe56dcf4bd07c0cb25b82b6761992dd00399bc51aa1ee698393dd514f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "509c02ffe56dcf4bd07c0cb25b82b6761992dd00399bc51aa1ee698393dd514f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "509c02ffe56dcf4bd07c0cb25b82b6761992dd00399bc51aa1ee698393dd514f", kill_on_drop: false }`
[INFO] [stdout] 509c02ffe56dcf4bd07c0cb25b82b6761992dd00399bc51aa1ee698393dd514f
[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] 6e9f6007d54d927732c7598fc6f5e1729d72f5e65bcaf8debec94bdbdf3aacd6
[INFO] running `Command { std: "docker" "start" "-a" "6e9f6007d54d927732c7598fc6f5e1729d72f5e65bcaf8debec94bdbdf3aacd6", kill_on_drop: false }`
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]    Compiling syn v2.0.106
[INFO] [stderr]     Checking clap_builder v4.5.48
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling clap_derive v4.5.47
[INFO] [stderr]     Checking tokio v1.47.1
[INFO] [stderr]     Checking clap v4.5.48
[INFO] [stderr]     Checking tokio-util v0.7.16
[INFO] [stderr]     Checking h2 v0.3.27
[INFO] [stderr]     Checking hyper v0.14.32
[INFO] [stderr]     Checking simple-image-server v0.0.1 (/opt/rustwide/workdir)
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:27:41
[INFO] [stdout]    |
[INFO] [stdout] 27 |   ) -> Result<Response<Body>, Infallible> {
[INFO] [stdout]    |  _________________________________________^
[INFO] [stdout] 28 | |     // We only serve GET requests to "/". Anything else gets 404.
[INFO] [stdout] 29 | |     if req.method() != hyper::Method::GET || req.uri().path() != "/" {
[INFO] [stdout] 30 | |         return Ok(Response::builder()
[INFO] [stdout] ...  |
[INFO] [stdout] 58 | | }
[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<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:27:41
[INFO] [stdout]    |
[INFO] [stdout] 27 |   ) -> Result<Response<Body>, Infallible> {
[INFO] [stdout]    |  _________________________________________^
[INFO] [stdout] 28 | |     // We only serve GET requests to "/". Anything else gets 404.
[INFO] [stdout] 29 | |     if req.method() != hyper::Method::GET || req.uri().path() != "/" {
[INFO] [stdout] 30 | |         return Ok(Response::builder()
[INFO] [stdout] ...  |
[INFO] [stdout] 58 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:30:16
[INFO] [stdout]    |
[INFO] [stdout] 30 |           return Ok(Response::builder()
[INFO] [stdout]    |  ________________^
[INFO] [stdout] 31 | |             .status(StatusCode::NOT_FOUND)
[INFO] [stdout] 32 | |             .body(Body::from("Not found"))
[INFO] [stdout] 33 | |             .unwrap());
[INFO] [stdout]    | |______________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:37:5
[INFO] [stdout]    |
[INFO] [stdout] 37 | /     match fs::read(&image_path).await {
[INFO] [stdout] 38 | |         Ok(contents) => {
[INFO] [stdout] 39 | |             // Guess MIME type (e.g., image/jpeg, image/png).
[INFO] [stdout] 40 | |             let mime_type = from_path(&image_path)
[INFO] [stdout] ...  |
[INFO] [stdout] 57 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:38:25
[INFO] [stdout]    |
[INFO] [stdout] 38 |           Ok(contents) => {
[INFO] [stdout]    |  _________________________^
[INFO] [stdout] 39 | |             // Guess MIME type (e.g., image/jpeg, image/png).
[INFO] [stdout] 40 | |             let mime_type = from_path(&image_path)
[INFO] [stdout] 41 | |                 .first_or_octet_stream()
[INFO] [stdout] ...  |
[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<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:45:13
[INFO] [stdout]    |
[INFO] [stdout] 45 | /             Ok(Response::builder()
[INFO] [stdout] 46 | |                 .header(hyper::header::CONTENT_TYPE, mime_type)
[INFO] [stdout] 47 | |                 .body(Body::from(contents))
[INFO] [stdout] 48 | |                 .unwrap())
[INFO] [stdout]    | |__________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:50:21
[INFO] [stdout]    |
[INFO] [stdout] 50 |           Err(err) => {
[INFO] [stdout]    |  _____________________^
[INFO] [stdout] 51 | |             eprintln!("Failed to read {}: {}", image_path.display(), err);
[INFO] [stdout] 52 | |             Ok(Response::builder()
[INFO] [stdout] 53 | |                 .status(StatusCode::INTERNAL_SERVER_ERROR)
[INFO] [stdout] 54 | |                 .body(Body::from("Unable to read image"))
[INFO] [stdout] 55 | |                 .unwrap())
[INFO] [stdout] 56 | |         }
[INFO] [stdout]    | |_________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:52:13
[INFO] [stdout]    |
[INFO] [stdout] 52 | /             Ok(Response::builder()
[INFO] [stdout] 53 | |                 .status(StatusCode::INTERNAL_SERVER_ERROR)
[INFO] [stdout] 54 | |                 .body(Body::from("Unable to read image"))
[INFO] [stdout] 55 | |                 .unwrap())
[INFO] [stdout]    | |__________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<hyper::service::util::ServiceFn<{closure@src/main.rs:89:44: 89:54}, Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:88:20
[INFO] [stdout]    |
[INFO] [stdout] 88 |           async move {
[INFO] [stdout]    |  ____________________^
[INFO] [stdout] 89 | |             Ok::<_, Infallible>(service_fn(move |req| {
[INFO] [stdout] 90 | |                 let img = img.clone();
[INFO] [stdout] 91 | |                 handle_req(req, img)
[INFO] [stdout] 92 | |             }))
[INFO] [stdout] 93 | |         }
[INFO] [stdout]    | |_________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<hyper::service::util::ServiceFn<{closure@src/main.rs:89:44: 89:54}, Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:89:13
[INFO] [stdout]    |
[INFO] [stdout] 89 | /             Ok::<_, Infallible>(service_fn(move |req| {
[INFO] [stdout] 90 | |                 let img = img.clone();
[INFO] [stdout] 91 | |                 handle_req(req, img)
[INFO] [stdout] 92 | |             }))
[INFO] [stdout]    | |_______________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `simple-image-server` (bin "simple-image-server") due to 10 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<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:27:41
[INFO] [stdout]    |
[INFO] [stdout] 27 |   ) -> Result<Response<Body>, Infallible> {
[INFO] [stdout]    |  _________________________________________^
[INFO] [stdout] 28 | |     // We only serve GET requests to "/". Anything else gets 404.
[INFO] [stdout] 29 | |     if req.method() != hyper::Method::GET || req.uri().path() != "/" {
[INFO] [stdout] 30 | |         return Ok(Response::builder()
[INFO] [stdout] ...  |
[INFO] [stdout] 58 | | }
[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<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:27:41
[INFO] [stdout]    |
[INFO] [stdout] 27 |   ) -> Result<Response<Body>, Infallible> {
[INFO] [stdout]    |  _________________________________________^
[INFO] [stdout] 28 | |     // We only serve GET requests to "/". Anything else gets 404.
[INFO] [stdout] 29 | |     if req.method() != hyper::Method::GET || req.uri().path() != "/" {
[INFO] [stdout] 30 | |         return Ok(Response::builder()
[INFO] [stdout] ...  |
[INFO] [stdout] 58 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:30:16
[INFO] [stdout]    |
[INFO] [stdout] 30 |           return Ok(Response::builder()
[INFO] [stdout]    |  ________________^
[INFO] [stdout] 31 | |             .status(StatusCode::NOT_FOUND)
[INFO] [stdout] 32 | |             .body(Body::from("Not found"))
[INFO] [stdout] 33 | |             .unwrap());
[INFO] [stdout]    | |______________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:37:5
[INFO] [stdout]    |
[INFO] [stdout] 37 | /     match fs::read(&image_path).await {
[INFO] [stdout] 38 | |         Ok(contents) => {
[INFO] [stdout] 39 | |             // Guess MIME type (e.g., image/jpeg, image/png).
[INFO] [stdout] 40 | |             let mime_type = from_path(&image_path)
[INFO] [stdout] ...  |
[INFO] [stdout] 57 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:38:25
[INFO] [stdout]    |
[INFO] [stdout] 38 |           Ok(contents) => {
[INFO] [stdout]    |  _________________________^
[INFO] [stdout] 39 | |             // Guess MIME type (e.g., image/jpeg, image/png).
[INFO] [stdout] 40 | |             let mime_type = from_path(&image_path)
[INFO] [stdout] 41 | |                 .first_or_octet_stream()
[INFO] [stdout] ...  |
[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<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:45:13
[INFO] [stdout]    |
[INFO] [stdout] 45 | /             Ok(Response::builder()
[INFO] [stdout] 46 | |                 .header(hyper::header::CONTENT_TYPE, mime_type)
[INFO] [stdout] 47 | |                 .body(Body::from(contents))
[INFO] [stdout] 48 | |                 .unwrap())
[INFO] [stdout]    | |__________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:50:21
[INFO] [stdout]    |
[INFO] [stdout] 50 |           Err(err) => {
[INFO] [stdout]    |  _____________________^
[INFO] [stdout] 51 | |             eprintln!("Failed to read {}: {}", image_path.display(), err);
[INFO] [stdout] 52 | |             Ok(Response::builder()
[INFO] [stdout] 53 | |                 .status(StatusCode::INTERNAL_SERVER_ERROR)
[INFO] [stdout] 54 | |                 .body(Body::from("Unable to read image"))
[INFO] [stdout] 55 | |                 .unwrap())
[INFO] [stdout] 56 | |         }
[INFO] [stdout]    | |_________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:52:13
[INFO] [stdout]    |
[INFO] [stdout] 52 | /             Ok(Response::builder()
[INFO] [stdout] 53 | |                 .status(StatusCode::INTERNAL_SERVER_ERROR)
[INFO] [stdout] 54 | |                 .body(Body::from("Unable to read image"))
[INFO] [stdout] 55 | |                 .unwrap())
[INFO] [stdout]    | |__________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<hyper::service::util::ServiceFn<{closure@src/main.rs:89:44: 89:54}, Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:88:20
[INFO] [stdout]    |
[INFO] [stdout] 88 |           async move {
[INFO] [stdout]    |  ____________________^
[INFO] [stdout] 89 | |             Ok::<_, Infallible>(service_fn(move |req| {
[INFO] [stdout] 90 | |                 let img = img.clone();
[INFO] [stdout] 91 | |                 handle_req(req, img)
[INFO] [stdout] 92 | |             }))
[INFO] [stdout] 93 | |         }
[INFO] [stdout]    | |_________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<hyper::service::util::ServiceFn<{closure@src/main.rs:89:44: 89:54}, Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:89:13
[INFO] [stdout]    |
[INFO] [stdout] 89 | /             Ok::<_, Infallible>(service_fn(move |req| {
[INFO] [stdout] 90 | |                 let img = img.clone();
[INFO] [stdout] 91 | |                 handle_req(req, img)
[INFO] [stdout] 92 | |             }))
[INFO] [stdout]    | |_______________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `simple-image-server` (bin "simple-image-server" test) due to 10 previous errors
[INFO] running `Command { std: "docker" "inspect" "6e9f6007d54d927732c7598fc6f5e1729d72f5e65bcaf8debec94bdbdf3aacd6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6e9f6007d54d927732c7598fc6f5e1729d72f5e65bcaf8debec94bdbdf3aacd6", kill_on_drop: false }`
[INFO] [stdout] 6e9f6007d54d927732c7598fc6f5e1729d72f5e65bcaf8debec94bdbdf3aacd6
