[INFO] fetching crate server 0.0.0... [INFO] checking server-0.0.0 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate server 0.0.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate server 0.0.0 [INFO] finished tweaking crates.io crate server 0.0.0 [INFO] tweaked toml for crates.io crate server 0.0.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate server 0.0.0 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 server 0.0.0 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] a36f2b32318859b5411e0724b49fa2c11c6cda5342a34e4beb60395ed8458d58 [INFO] running `Command { std: "docker" "start" "-a" "a36f2b32318859b5411e0724b49fa2c11c6cda5342a34e4beb60395ed8458d58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a36f2b32318859b5411e0724b49fa2c11c6cda5342a34e4beb60395ed8458d58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a36f2b32318859b5411e0724b49fa2c11c6cda5342a34e4beb60395ed8458d58", kill_on_drop: false }` [INFO] [stdout] a36f2b32318859b5411e0724b49fa2c11c6cda5342a34e4beb60395ed8458d58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 4b6ddb445a5cdb405249bec5da0c596ebfe67dfb7d960fbd4ee7499229e4e6c5 [INFO] running `Command { std: "docker" "start" "-a" "4b6ddb445a5cdb405249bec5da0c596ebfe67dfb7d960fbd4ee7499229e4e6c5", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Checking bytes v1.10.0 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling httparse v1.10.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking clap_builder v4.5.27 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking headers-core v0.3.0 [INFO] [stderr] Checking headers v0.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking touche v0.0.15 [INFO] [stderr] Checking clap v4.5.28 [INFO] [stderr] Checking server v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | let base_path = base_path.unwrap_or_else(|| PathBuf::from_str("./").unwrap()); [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:38:64 [INFO] [stdout] | [INFO] [stdout] 38 | Server::bind((bind, port)).serve(move |req: Request| { [INFO] [stdout] | ________________________________________________________________^ [INFO] [stdout] 39 | | let path = base_path.join(req.uri().path().replacen('/', "", 1)); [INFO] [stdout] 40 | | [INFO] [stdout] 41 | | match fs::metadata(&path) { [INFO] [stdout] ... | [INFO] [stdout] 67 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | / match fs::metadata(&path) { [INFO] [stdout] 42 | | Ok(meta) if meta.is_file() => Ok(serve_file(path)), [INFO] [stdout] 43 | | [INFO] [stdout] 44 | | Ok(meta) if meta.is_dir() => { [INFO] [stdout] ... | [INFO] [stdout] 65 | | _ => Ok::<_, Infallible>(not_found()), [INFO] [stdout] 66 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:42:43 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(meta) if meta.is_file() => Ok(serve_file(path)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:44:42 [INFO] [stdout] | [INFO] [stdout] 44 | Ok(meta) if meta.is_dir() => { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 45 | | let index = fs::read_dir(path).ok().and_then(|dir| { [INFO] [stdout] 46 | | dir.filter_map(|entry| entry.ok()) [INFO] [stdout] 47 | | .filter(|entry| entry.path().file_stem().unwrap_or_default() == "index") [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [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:17 [INFO] [stdout] | [INFO] [stdout] 59 | / match index { [INFO] [stdout] 60 | | Some(index) => Ok(serve_file(index.path())), [INFO] [stdout] 61 | | None => Ok(not_found()), [INFO] [stdout] 62 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | Some(index) => Ok(serve_file(index.path())), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | None => Ok(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:65:18 [INFO] [stdout] | [INFO] [stdout] 65 | _ => Ok::<_, Infallible>(not_found()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `server` (bin "server" test) due to 9 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 [INFO] [stdout] --> src/main.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | let base_path = base_path.unwrap_or_else(|| PathBuf::from_str("./").unwrap()); [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:38:64 [INFO] [stdout] | [INFO] [stdout] 38 | Server::bind((bind, port)).serve(move |req: Request| { [INFO] [stdout] | ________________________________________________________________^ [INFO] [stdout] 39 | | let path = base_path.join(req.uri().path().replacen('/', "", 1)); [INFO] [stdout] 40 | | [INFO] [stdout] 41 | | match fs::metadata(&path) { [INFO] [stdout] ... | [INFO] [stdout] 67 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | / match fs::metadata(&path) { [INFO] [stdout] 42 | | Ok(meta) if meta.is_file() => Ok(serve_file(path)), [INFO] [stdout] 43 | | [INFO] [stdout] 44 | | Ok(meta) if meta.is_dir() => { [INFO] [stdout] ... | [INFO] [stdout] 65 | | _ => Ok::<_, Infallible>(not_found()), [INFO] [stdout] 66 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:42:43 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(meta) if meta.is_file() => Ok(serve_file(path)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:44:42 [INFO] [stdout] | [INFO] [stdout] 44 | Ok(meta) if meta.is_dir() => { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 45 | | let index = fs::read_dir(path).ok().and_then(|dir| { [INFO] [stdout] 46 | | dir.filter_map(|entry| entry.ok()) [INFO] [stdout] 47 | | .filter(|entry| entry.path().file_stem().unwrap_or_default() == "index") [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [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:17 [INFO] [stdout] | [INFO] [stdout] 59 | / match index { [INFO] [stdout] 60 | | Some(index) => Ok(serve_file(index.path())), [INFO] [stdout] 61 | | None => Ok(not_found()), [INFO] [stdout] 62 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | Some(index) => Ok(serve_file(index.path())), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | None => Ok(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:65:18 [INFO] [stdout] | [INFO] [stdout] 65 | _ => Ok::<_, Infallible>(not_found()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `server` (bin "server") due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "4b6ddb445a5cdb405249bec5da0c596ebfe67dfb7d960fbd4ee7499229e4e6c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b6ddb445a5cdb405249bec5da0c596ebfe67dfb7d960fbd4ee7499229e4e6c5", kill_on_drop: false }` [INFO] [stdout] 4b6ddb445a5cdb405249bec5da0c596ebfe67dfb7d960fbd4ee7499229e4e6c5