[INFO] fetching crate webhook-httpd 0.1.6... [INFO] checking webhook-httpd-0.1.6 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate webhook-httpd 0.1.6 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate webhook-httpd 0.1.6 [INFO] finished tweaking crates.io crate webhook-httpd 0.1.6 [INFO] tweaked toml for crates.io crate webhook-httpd 0.1.6 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate webhook-httpd 0.1.6 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 webhook-httpd 0.1.6 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] fc2e11aa85060417916f2a6d8d48dd9d320b8dd7ecb78c2e8b83b7d03c0d1335 [INFO] running `Command { std: "docker" "start" "-a" "fc2e11aa85060417916f2a6d8d48dd9d320b8dd7ecb78c2e8b83b7d03c0d1335", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc2e11aa85060417916f2a6d8d48dd9d320b8dd7ecb78c2e8b83b7d03c0d1335", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc2e11aa85060417916f2a6d8d48dd9d320b8dd7ecb78c2e8b83b7d03c0d1335", kill_on_drop: false }` [INFO] [stdout] fc2e11aa85060417916f2a6d8d48dd9d320b8dd7ecb78c2e8b83b7d03c0d1335 [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] b20519b6d804d3a5024e155c12cbbd715d305f58f17484781bc70260366cfd94 [INFO] running `Command { std: "docker" "start" "-a" "b20519b6d804d3a5024e155c12cbbd715d305f58f17484781bc70260366cfd94", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling semver v1.0.19 [INFO] [stderr] Compiling rustix v0.38.14 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking anstyle v1.0.3 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling openssl v0.10.57 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hashbrown v0.14.1 [INFO] [stderr] Compiling tokio-openssl v0.6.3 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking anstream v0.5.0 [INFO] [stderr] Checking clap_builder v4.4.5 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling assert2-macros v0.3.11 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking regex-automata v0.3.8 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Compiling openssl-sys v0.9.93 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling clap_derive v4.4.2 [INFO] [stderr] Checking regex v1.9.5 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking clap v4.4.5 [INFO] [stderr] Checking assert2 v0.3.11 [INFO] [stderr] Checking serde v1.0.188 [INFO] [stderr] Checking tokio-util v0.7.9 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking indexmap v2.0.2 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking multer v2.1.0 [INFO] [stderr] Checking serde_yaml v0.9.25 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking webhook-httpd v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `log_level` is never read [INFO] [stdout] --> src/config.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | pub log_level: LogLevel, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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/main.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | async move { handle_request(&hooks, request, addr).await } [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:186:18 [INFO] [stdout] | [INFO] [stdout] 186 | async move { handle_request(&hooks, request, addr).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:186:56 [INFO] [stdout] | [INFO] [stdout] 186 | async move { handle_request(&hooks, request, addr).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:186:18 [INFO] [stdout] | [INFO] [stdout] 186 | async move { handle_request(&hooks, request, addr).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:243:159 [INFO] [stdout] | [INFO] [stdout] 243 | async fn handle_request(hooks: &BTreeMap, mut request: Request, remote_addr: SocketAddr) -> Result { [INFO] [stdout] | _______________________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 244 | | log::trace!("received {} request for {}", request.method(), request.uri().path()); [INFO] [stdout] 245 | | if request.method() != hyper::Method::POST { [INFO] [stdout] 246 | | return Ok(simple_response(hyper::StatusCode::METHOD_NOT_ALLOWED, "hooks must use the POST method")); [INFO] [stdout] ... | [INFO] [stdout] 284 | | Ok(hook.post(request, body, remote_addr).await) [INFO] [stdout] 285 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:243:159 [INFO] [stdout] | [INFO] [stdout] 243 | async fn handle_request(hooks: &BTreeMap, mut request: Request, remote_addr: SocketAddr) -> Result { [INFO] [stdout] | _______________________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 244 | | log::trace!("received {} request for {}", request.method(), request.uri().path()); [INFO] [stdout] 245 | | if request.method() != hyper::Method::POST { [INFO] [stdout] 246 | | return Ok(simple_response(hyper::StatusCode::METHOD_NOT_ALLOWED, "hooks must use the POST method")); [INFO] [stdout] ... | [INFO] [stdout] 284 | | Ok(hook.post(request, body, remote_addr).await) [INFO] [stdout] 285 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:246:10 [INFO] [stdout] | [INFO] [stdout] 246 | return Ok(simple_response(hyper::StatusCode::METHOD_NOT_ALLOWED, "hooks must use the POST method")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:254:11 [INFO] [stdout] | [INFO] [stdout] 254 | return Ok(simple_response(StatusCode::NOT_FOUND, "no hook found")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:263:11 [INFO] [stdout] | [INFO] [stdout] 263 | return Ok(simple_response(StatusCode::BAD_REQUEST, "failed to read request body")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:272:12 [INFO] [stdout] | [INFO] [stdout] 272 | return Ok(simple_response(StatusCode::BAD_REQUEST, "missing or invalid X-Hub-Signature-256 header")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:278:11 [INFO] [stdout] | [INFO] [stdout] 278 | return Ok(simple_response(StatusCode::BAD_REQUEST, "invalid X-Hub-Signature-256 header")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:284:2 [INFO] [stdout] | [INFO] [stdout] 284 | Ok(hook.post(request, body, remote_addr).await) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `webhook-httpd` (bin "webhook-httpd" test) due to 12 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `log_level` is never read [INFO] [stdout] --> src/config.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | pub log_level: LogLevel, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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/main.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | async move { handle_request(&hooks, request, addr).await } [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:186:18 [INFO] [stdout] | [INFO] [stdout] 186 | async move { handle_request(&hooks, request, addr).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:186:56 [INFO] [stdout] | [INFO] [stdout] 186 | async move { handle_request(&hooks, request, addr).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:186:18 [INFO] [stdout] | [INFO] [stdout] 186 | async move { handle_request(&hooks, request, addr).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:243:159 [INFO] [stdout] | [INFO] [stdout] 243 | async fn handle_request(hooks: &BTreeMap, mut request: Request, remote_addr: SocketAddr) -> Result { [INFO] [stdout] | _______________________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 244 | | log::trace!("received {} request for {}", request.method(), request.uri().path()); [INFO] [stdout] 245 | | if request.method() != hyper::Method::POST { [INFO] [stdout] 246 | | return Ok(simple_response(hyper::StatusCode::METHOD_NOT_ALLOWED, "hooks must use the POST method")); [INFO] [stdout] ... | [INFO] [stdout] 284 | | Ok(hook.post(request, body, remote_addr).await) [INFO] [stdout] 285 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:243:159 [INFO] [stdout] | [INFO] [stdout] 243 | async fn handle_request(hooks: &BTreeMap, mut request: Request, remote_addr: SocketAddr) -> Result { [INFO] [stdout] | _______________________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 244 | | log::trace!("received {} request for {}", request.method(), request.uri().path()); [INFO] [stdout] 245 | | if request.method() != hyper::Method::POST { [INFO] [stdout] 246 | | return Ok(simple_response(hyper::StatusCode::METHOD_NOT_ALLOWED, "hooks must use the POST method")); [INFO] [stdout] ... | [INFO] [stdout] 284 | | Ok(hook.post(request, body, remote_addr).await) [INFO] [stdout] 285 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:246:10 [INFO] [stdout] | [INFO] [stdout] 246 | return Ok(simple_response(hyper::StatusCode::METHOD_NOT_ALLOWED, "hooks must use the POST method")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:254:11 [INFO] [stdout] | [INFO] [stdout] 254 | return Ok(simple_response(StatusCode::NOT_FOUND, "no hook found")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:263:11 [INFO] [stdout] | [INFO] [stdout] 263 | return Ok(simple_response(StatusCode::BAD_REQUEST, "failed to read request body")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:272:12 [INFO] [stdout] | [INFO] [stdout] 272 | return Ok(simple_response(StatusCode::BAD_REQUEST, "missing or invalid X-Hub-Signature-256 header")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:278:11 [INFO] [stdout] | [INFO] [stdout] 278 | return Ok(simple_response(StatusCode::BAD_REQUEST, "invalid X-Hub-Signature-256 header")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:284:2 [INFO] [stdout] | [INFO] [stdout] 284 | Ok(hook.post(request, body, remote_addr).await) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `webhook-httpd` (bin "webhook-httpd") due to 12 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "b20519b6d804d3a5024e155c12cbbd715d305f58f17484781bc70260366cfd94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b20519b6d804d3a5024e155c12cbbd715d305f58f17484781bc70260366cfd94", kill_on_drop: false }` [INFO] [stdout] b20519b6d804d3a5024e155c12cbbd715d305f58f17484781bc70260366cfd94