[INFO] cloning repository https://github.com/NalinDalal/news-feed-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NalinDalal/news-feed-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNalinDalal%2Fnews-feed-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNalinDalal%2Fnews-feed-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d4db8873d3c50cf292d4c4cd0a37bcd8cbc0e019 [INFO] checking NalinDalal/news-feed-rust 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%2FNalinDalal%2Fnews-feed-rust" "/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/NalinDalal/news-feed-rust [INFO] finished tweaking git repo https://github.com/NalinDalal/news-feed-rust [INFO] tweaked toml for git repo https://github.com/NalinDalal/news-feed-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/NalinDalal/news-feed-rust 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/NalinDalal/news-feed-rust 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] f01a114af5aa39b14eb77d09ca702ae7a19877146b4c801e1e7fe12e58a611a1 [INFO] running `Command { std: "docker" "start" "-a" "f01a114af5aa39b14eb77d09ca702ae7a19877146b4c801e1e7fe12e58a611a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f01a114af5aa39b14eb77d09ca702ae7a19877146b4c801e1e7fe12e58a611a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f01a114af5aa39b14eb77d09ca702ae7a19877146b4c801e1e7fe12e58a611a1", kill_on_drop: false }` [INFO] [stdout] f01a114af5aa39b14eb77d09ca702ae7a19877146b4c801e1e7fe12e58a611a1 [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] 6edd6da6349afe36567682b74dc25fbc382c2108a46001fea2af1c7c72fb51ea [INFO] running `Command { std: "docker" "start" "-a" "6edd6da6349afe36567682b74dc25fbc382c2108a46001fea2af1c7c72fb51ea", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Checking indexmap v2.11.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking news-feed-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `user_id` is never read [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct FanoutMessage { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 37 | post_id: String, [INFO] [stdout] 38 | user_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FanoutMessage` 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] warning: method `get_following` is never used [INFO] [stdout] --> src/main.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl CacheLayer { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | fn get_following(&self, user_id: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_post` is never used [INFO] [stdout] --> src/main.rs:304:14 [INFO] [stdout] | [INFO] [stdout] 273 | impl PostService { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 304 | async fn get_post(&self, post_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:442:97 [INFO] [stdout] | [INFO] [stdout] 442 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 443 | | if err.find::().is_some() { [INFO] [stdout] 444 | | Ok(warp::reply::with_status( [INFO] [stdout] 445 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] ... | [INFO] [stdout] 458 | | } [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:442:97 [INFO] [stdout] | [INFO] [stdout] 442 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 443 | | if err.find::().is_some() { [INFO] [stdout] 444 | | Ok(warp::reply::with_status( [INFO] [stdout] 445 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] ... | [INFO] [stdout] 458 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:443:5 [INFO] [stdout] | [INFO] [stdout] 443 | / if err.find::().is_some() { [INFO] [stdout] 444 | | Ok(warp::reply::with_status( [INFO] [stdout] 445 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] 446 | | error: "Authentication required".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 456 | | )) [INFO] [stdout] 457 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:443:42 [INFO] [stdout] | [INFO] [stdout] 443 | if err.find::().is_some() { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 444 | | Ok(warp::reply::with_status( [INFO] [stdout] 445 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] 446 | | error: "Authentication required".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 449 | | )) [INFO] [stdout] 450 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:444:9 [INFO] [stdout] | [INFO] [stdout] 444 | / Ok(warp::reply::with_status( [INFO] [stdout] 445 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] 446 | | error: "Authentication required".to_string(), [INFO] [stdout] 447 | | }), [INFO] [stdout] 448 | | warp::http::StatusCode::UNAUTHORIZED, [INFO] [stdout] 449 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:450:12 [INFO] [stdout] | [INFO] [stdout] 450 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 451 | | Ok(warp::reply::with_status( [INFO] [stdout] 452 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] 453 | | error: "Internal server error".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 456 | | )) [INFO] [stdout] 457 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | / Ok(warp::reply::with_status( [INFO] [stdout] 452 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] 453 | | error: "Internal server error".to_string(), [INFO] [stdout] 454 | | }), [INFO] [stdout] 455 | | warp::http::StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 456 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `news-feed-rs` (bin "news-feed-rs") due to 7 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `user_id` is never read [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct FanoutMessage { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 37 | post_id: String, [INFO] [stdout] 38 | user_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FanoutMessage` 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] warning: method `get_following` is never used [INFO] [stdout] --> src/main.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl CacheLayer { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | fn get_following(&self, user_id: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_post` is never used [INFO] [stdout] --> src/main.rs:304:14 [INFO] [stdout] | [INFO] [stdout] 273 | impl PostService { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 304 | async fn get_post(&self, post_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:442:97 [INFO] [stdout] | [INFO] [stdout] 442 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 443 | | if err.find::().is_some() { [INFO] [stdout] 444 | | Ok(warp::reply::with_status( [INFO] [stdout] 445 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] ... | [INFO] [stdout] 458 | | } [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:442:97 [INFO] [stdout] | [INFO] [stdout] 442 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 443 | | if err.find::().is_some() { [INFO] [stdout] 444 | | Ok(warp::reply::with_status( [INFO] [stdout] 445 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] ... | [INFO] [stdout] 458 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:443:5 [INFO] [stdout] | [INFO] [stdout] 443 | / if err.find::().is_some() { [INFO] [stdout] 444 | | Ok(warp::reply::with_status( [INFO] [stdout] 445 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] 446 | | error: "Authentication required".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 456 | | )) [INFO] [stdout] 457 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:443:42 [INFO] [stdout] | [INFO] [stdout] 443 | if err.find::().is_some() { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 444 | | Ok(warp::reply::with_status( [INFO] [stdout] 445 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] 446 | | error: "Authentication required".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 449 | | )) [INFO] [stdout] 450 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:444:9 [INFO] [stdout] | [INFO] [stdout] 444 | / Ok(warp::reply::with_status( [INFO] [stdout] 445 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] 446 | | error: "Authentication required".to_string(), [INFO] [stdout] 447 | | }), [INFO] [stdout] 448 | | warp::http::StatusCode::UNAUTHORIZED, [INFO] [stdout] 449 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:450:12 [INFO] [stdout] | [INFO] [stdout] 450 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 451 | | Ok(warp::reply::with_status( [INFO] [stdout] 452 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] 453 | | error: "Internal server error".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 456 | | )) [INFO] [stdout] 457 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | / Ok(warp::reply::with_status( [INFO] [stdout] 452 | | warp::reply::json(&ErrorResponse { [INFO] [stdout] 453 | | error: "Internal server error".to_string(), [INFO] [stdout] 454 | | }), [INFO] [stdout] 455 | | warp::http::StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 456 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `news-feed-rs` (bin "news-feed-rs" test) due to 7 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6edd6da6349afe36567682b74dc25fbc382c2108a46001fea2af1c7c72fb51ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6edd6da6349afe36567682b74dc25fbc382c2108a46001fea2af1c7c72fb51ea", kill_on_drop: false }` [INFO] [stdout] 6edd6da6349afe36567682b74dc25fbc382c2108a46001fea2af1c7c72fb51ea