[INFO] cloning repository https://github.com/StaleHyena/websweeper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/StaleHyena/websweeper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStaleHyena%2Fwebsweeper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStaleHyena%2Fwebsweeper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3994f264d50522fc09edaa8f1acd5dcfcd4e472e [INFO] checking StaleHyena/websweeper 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%2FStaleHyena%2Fwebsweeper" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/StaleHyena/websweeper [INFO] finished tweaking git repo https://github.com/StaleHyena/websweeper [INFO] tweaked toml for git repo https://github.com/StaleHyena/websweeper written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/StaleHyena/websweeper 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/StaleHyena/websweeper 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] 5be6ec8e35f50ca63e9e1069ef714f1159c57d6be0fb63f9432a563581697803 [INFO] running `Command { std: "docker" "start" "-a" "5be6ec8e35f50ca63e9e1069ef714f1159c57d6be0fb63f9432a563581697803", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5be6ec8e35f50ca63e9e1069ef714f1159c57d6be0fb63f9432a563581697803", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5be6ec8e35f50ca63e9e1069ef714f1159c57d6be0fb63f9432a563581697803", kill_on_drop: false }` [INFO] [stdout] 5be6ec8e35f50ca63e9e1069ef714f1159c57d6be0fb63f9432a563581697803 [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] c3c13b3e512e8ce8d9ad60be07935f99a042a2b8f962e00b52e6a13dbe1fd231 [INFO] running `Command { std: "docker" "start" "-a" "c3c13b3e512e8ce8d9ad60be07935f99a042a2b8f962e00b52e6a13dbe1fd231", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling rustls v0.20.9 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Checking base64 v0.21.4 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking rustls-pemfile v1.0.3 [INFO] [stderr] Checking flate2 v1.0.27 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking sct v0.7.0 [INFO] [stderr] Checking webpki v0.22.1 [INFO] [stderr] Checking tungstenite v0.18.0 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Checking serde v1.0.188 [INFO] [stderr] Checking multer v2.1.0 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking tokio-util v0.7.9 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking tokio-tungstenite v0.18.0 [INFO] [stderr] Checking tokio-rustls v0.23.4 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking string_cache v0.8.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ammonia v3.3.0 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking warp v0.3.5 [INFO] [stderr] Checking websweeper v1.7.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `game_driver`, `livepos_driver`, and `irc_driver` are never read [INFO] [stdout] --> src/types.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | pub game_driver: tokio::task::JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 31 | pub cmd_stream: CmdTx, [INFO] [stdout] 32 | pub livepos_driver: tokio::task::JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub pos_stream: tokio::sync::mpsc::UnboundedSender, [INFO] [stdout] 34 | pub irc_driver: tokio::task::JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `server` and `port` are never read [INFO] [stdout] --> src/ircbot.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct IrcConf { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 18 | pub server: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IrcConf` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:70:24 [INFO] [stdout] | [INFO] [stdout] 70 | async move { [INFO] [stdout] | ________________________^ [INFO] [stdout] 71 | | let roomsl = rooms.read().await; [INFO] [stdout] 72 | | let pubsl = pubs.read().await; [INFO] [stdout] 73 | | let rooms_pcount = futures::stream::iter(pubsl.iter()) [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [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 [INFO] [stdout] --> src/main.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | / Ok::<_,std::convert::Infallible>( [INFO] [stdout] 85 | | reply::json(&resp) [INFO] [stdout] 86 | | ) [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:97:24 [INFO] [stdout] | [INFO] [stdout] 97 | async move { [INFO] [stdout] | ________________________^ [INFO] [stdout] 98 | | let r = r.read().await; [INFO] [stdout] 99 | | let empty_len = empty_rooms(&r).await.len(); [INFO] [stdout] 100 | | let space = conf.limits.room_slots - r.len() + empty_len; [INFO] [stdout] 101 | | Ok::(space.to_string()) [INFO] [stdout] 102 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | Ok::(space.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:299:88 [INFO] [stdout] | [INFO] [stdout] 299 | async fn error_handler(err: Rejection) -> Result { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 300 | | if err.is_not_found() { Ok(reply::with_status("No such file", StatusCode::NOT_FOUND)) } [INFO] [stdout] 301 | | else if let Some(_e) = err.find::() { [INFO] [stdout] 302 | | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] ... | [INFO] [stdout] 311 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:299:88 [INFO] [stdout] | [INFO] [stdout] 299 | async fn error_handler(err: Rejection) -> Result { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 300 | | if err.is_not_found() { Ok(reply::with_status("No such file", StatusCode::NOT_FOUND)) } [INFO] [stdout] 301 | | else if let Some(_e) = err.find::() { [INFO] [stdout] 302 | | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] ... | [INFO] [stdout] 311 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | / if err.is_not_found() { Ok(reply::with_status("No such file", StatusCode::NOT_FOUND)) } [INFO] [stdout] 301 | | else if let Some(_e) = err.find::() { [INFO] [stdout] 302 | | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] 303 | | } else if let Some(_e) = err.find::() { [INFO] [stdout] ... | [INFO] [stdout] 309 | | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:300:27 [INFO] [stdout] | [INFO] [stdout] 300 | if err.is_not_found() { Ok(reply::with_status("No such file", StatusCode::NOT_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:300:29 [INFO] [stdout] | [INFO] [stdout] 300 | if err.is_not_found() { Ok(reply::with_status("No such file", StatusCode::NOT_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:301:10 [INFO] [stdout] | [INFO] [stdout] 301 | else if let Some(_e) = err.find::() { [INFO] [stdout] | __________^ [INFO] [stdout] 302 | | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] 303 | | } else if let Some(_e) = err.find::() { [INFO] [stdout] 304 | | Ok(reply::with_status("Board too big", StatusCode::BAD_REQUEST)) [INFO] [stdout] ... | [INFO] [stdout] 309 | | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:301:54 [INFO] [stdout] | [INFO] [stdout] 301 | else if let Some(_e) = err.find::() { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 302 | | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] 303 | | } else if let Some(_e) = err.find::() { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | } else if let Some(_e) = err.find::() { [INFO] [stdout] | ____________^ [INFO] [stdout] 304 | | Ok(reply::with_status("Board too big", StatusCode::BAD_REQUEST)) [INFO] [stdout] 305 | | } else if let Some(_e) = err.find::() { [INFO] [stdout] 306 | | Ok(reply::with_status("No more rooms slots", StatusCode::BAD_REQUEST)) [INFO] [stdout] ... | [INFO] [stdout] 309 | | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:303:56 [INFO] [stdout] | [INFO] [stdout] 303 | } else if let Some(_e) = err.find::() { [INFO] [stdout] | ________________________________________________________^ [INFO] [stdout] 304 | | Ok(reply::with_status("Board too big", StatusCode::BAD_REQUEST)) [INFO] [stdout] 305 | | } else if let Some(_e) = err.find::() { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:304:9 [INFO] [stdout] | [INFO] [stdout] 304 | Ok(reply::with_status("Board too big", StatusCode::BAD_REQUEST)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:305:12 [INFO] [stdout] | [INFO] [stdout] 305 | } else if let Some(_e) = err.find::() { [INFO] [stdout] | ____________^ [INFO] [stdout] 306 | | Ok(reply::with_status("No more rooms slots", StatusCode::BAD_REQUEST)) [INFO] [stdout] 307 | | } else { [INFO] [stdout] 308 | | println!("unhandled rejection: {err:?}"); [INFO] [stdout] 309 | | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:305:56 [INFO] [stdout] | [INFO] [stdout] 305 | } else if let Some(_e) = err.find::() { [INFO] [stdout] | ________________________________________________________^ [INFO] [stdout] 306 | | Ok(reply::with_status("No more rooms slots", StatusCode::BAD_REQUEST)) [INFO] [stdout] 307 | | } 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:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | Ok(reply::with_status("No more rooms slots", StatusCode::BAD_REQUEST)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:307:12 [INFO] [stdout] | [INFO] [stdout] 307 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 308 | | println!("unhandled rejection: {err:?}"); [INFO] [stdout] 309 | | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/conn.rs:105:77 [INFO] [stdout] | [INFO] [stdout] 105 | ... Move {t: MoveType::Reveal, pos: pos.try_into().unwrap() }, conn.addr)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/conn.rs:119:82 [INFO] [stdout] | [INFO] [stdout] 119 | ... Move { t: MoveType::ToggleFlag, pos: pos.try_into().unwrap() }, conn.addr)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `websweeper` (bin "websweeper") due to 22 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `game_driver`, `livepos_driver`, and `irc_driver` are never read [INFO] [stdout] --> src/types.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | pub game_driver: tokio::task::JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 31 | pub cmd_stream: CmdTx, [INFO] [stdout] 32 | pub livepos_driver: tokio::task::JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub pos_stream: tokio::sync::mpsc::UnboundedSender, [INFO] [stdout] 34 | pub irc_driver: tokio::task::JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `server` and `port` are never read [INFO] [stdout] --> src/ircbot.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct IrcConf { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 18 | pub server: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IrcConf` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:70:24 [INFO] [stdout] | [INFO] [stdout] 70 | async move { [INFO] [stdout] | ________________________^ [INFO] [stdout] 71 | | let roomsl = rooms.read().await; [INFO] [stdout] 72 | | let pubsl = pubs.read().await; [INFO] [stdout] 73 | | let rooms_pcount = futures::stream::iter(pubsl.iter()) [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [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 [INFO] [stdout] --> src/main.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | / Ok::<_,std::convert::Infallible>( [INFO] [stdout] 85 | | reply::json(&resp) [INFO] [stdout] 86 | | ) [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:97:24 [INFO] [stdout] | [INFO] [stdout] 97 | async move { [INFO] [stdout] | ________________________^ [INFO] [stdout] 98 | | let r = r.read().await; [INFO] [stdout] 99 | | let empty_len = empty_rooms(&r).await.len(); [INFO] [stdout] 100 | | let space = conf.limits.room_slots - r.len() + empty_len; [INFO] [stdout] 101 | | Ok::(space.to_string()) [INFO] [stdout] 102 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | Ok::(space.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:299:88 [INFO] [stdout] | [INFO] [stdout] 299 | async fn error_handler(err: Rejection) -> Result { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 300 | | if err.is_not_found() { Ok(reply::with_status("No such file", StatusCode::NOT_FOUND)) } [INFO] [stdout] 301 | | else if let Some(_e) = err.find::() { [INFO] [stdout] 302 | | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] ... | [INFO] [stdout] 311 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:299:88 [INFO] [stdout] | [INFO] [stdout] 299 | async fn error_handler(err: Rejection) -> Result { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 300 | | if err.is_not_found() { Ok(reply::with_status("No such file", StatusCode::NOT_FOUND)) } [INFO] [stdout] 301 | | else if let Some(_e) = err.find::() { [INFO] [stdout] 302 | | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] ... | [INFO] [stdout] 311 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | / if err.is_not_found() { Ok(reply::with_status("No such file", StatusCode::NOT_FOUND)) } [INFO] [stdout] 301 | | else if let Some(_e) = err.find::() { [INFO] [stdout] 302 | | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] 303 | | } else if let Some(_e) = err.find::() { [INFO] [stdout] ... | [INFO] [stdout] 309 | | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:300:27 [INFO] [stdout] | [INFO] [stdout] 300 | if err.is_not_found() { Ok(reply::with_status("No such file", StatusCode::NOT_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:300:29 [INFO] [stdout] | [INFO] [stdout] 300 | if err.is_not_found() { Ok(reply::with_status("No such file", StatusCode::NOT_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:301:10 [INFO] [stdout] | [INFO] [stdout] 301 | else if let Some(_e) = err.find::() { [INFO] [stdout] | __________^ [INFO] [stdout] 302 | | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] 303 | | } else if let Some(_e) = err.find::() { [INFO] [stdout] 304 | | Ok(reply::with_status("Board too big", StatusCode::BAD_REQUEST)) [INFO] [stdout] ... | [INFO] [stdout] 309 | | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:301:54 [INFO] [stdout] | [INFO] [stdout] 301 | else if let Some(_e) = err.find::() { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 302 | | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] 303 | | } else if let Some(_e) = err.find::() { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | Ok(reply::with_status("Bad form data", StatusCode::BAD_REQUEST)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | } else if let Some(_e) = err.find::() { [INFO] [stdout] | ____________^ [INFO] [stdout] 304 | | Ok(reply::with_status("Board too big", StatusCode::BAD_REQUEST)) [INFO] [stdout] 305 | | } else if let Some(_e) = err.find::() { [INFO] [stdout] 306 | | Ok(reply::with_status("No more rooms slots", StatusCode::BAD_REQUEST)) [INFO] [stdout] ... | [INFO] [stdout] 309 | | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:303:56 [INFO] [stdout] | [INFO] [stdout] 303 | } else if let Some(_e) = err.find::() { [INFO] [stdout] | ________________________________________________________^ [INFO] [stdout] 304 | | Ok(reply::with_status("Board too big", StatusCode::BAD_REQUEST)) [INFO] [stdout] 305 | | } else if let Some(_e) = err.find::() { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:304:9 [INFO] [stdout] | [INFO] [stdout] 304 | Ok(reply::with_status("Board too big", StatusCode::BAD_REQUEST)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:305:12 [INFO] [stdout] | [INFO] [stdout] 305 | } else if let Some(_e) = err.find::() { [INFO] [stdout] | ____________^ [INFO] [stdout] 306 | | Ok(reply::with_status("No more rooms slots", StatusCode::BAD_REQUEST)) [INFO] [stdout] 307 | | } else { [INFO] [stdout] 308 | | println!("unhandled rejection: {err:?}"); [INFO] [stdout] 309 | | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:305:56 [INFO] [stdout] | [INFO] [stdout] 305 | } else if let Some(_e) = err.find::() { [INFO] [stdout] | ________________________________________________________^ [INFO] [stdout] 306 | | Ok(reply::with_status("No more rooms slots", StatusCode::BAD_REQUEST)) [INFO] [stdout] 307 | | } 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:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | Ok(reply::with_status("No more rooms slots", StatusCode::BAD_REQUEST)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:307:12 [INFO] [stdout] | [INFO] [stdout] 307 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 308 | | println!("unhandled rejection: {err:?}"); [INFO] [stdout] 309 | | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 310 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | Ok(reply::with_status("Server error", StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/conn.rs:105:77 [INFO] [stdout] | [INFO] [stdout] 105 | ... Move {t: MoveType::Reveal, pos: pos.try_into().unwrap() }, conn.addr)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/conn.rs:119:82 [INFO] [stdout] | [INFO] [stdout] 119 | ... Move { t: MoveType::ToggleFlag, pos: pos.try_into().unwrap() }, conn.addr)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `websweeper` (bin "websweeper" test) due to 22 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c3c13b3e512e8ce8d9ad60be07935f99a042a2b8f962e00b52e6a13dbe1fd231", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3c13b3e512e8ce8d9ad60be07935f99a042a2b8f962e00b52e6a13dbe1fd231", kill_on_drop: false }` [INFO] [stdout] c3c13b3e512e8ce8d9ad60be07935f99a042a2b8f962e00b52e6a13dbe1fd231