[INFO] cloning repository https://github.com/DavidHVernon/dirp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DavidHVernon/dirp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDavidHVernon%2Fdirp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDavidHVernon%2Fdirp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f2d1dae6bd3ecadf9fde099ba5b74d470cc5019 [INFO] checking DavidHVernon/dirp 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%2FDavidHVernon%2Fdirp" "/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/DavidHVernon/dirp [INFO] finished tweaking git repo https://github.com/DavidHVernon/dirp [INFO] tweaked toml for git repo https://github.com/DavidHVernon/dirp written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/DavidHVernon/dirp 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/DavidHVernon/dirp 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] 03979df6dae6e9dbbcac1abc49ad6d73e06f4d56ee03bf6e76cfd2e8ecd671c1 [INFO] running `Command { std: "docker" "start" "-a" "03979df6dae6e9dbbcac1abc49ad6d73e06f4d56ee03bf6e76cfd2e8ecd671c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "03979df6dae6e9dbbcac1abc49ad6d73e06f4d56ee03bf6e76cfd2e8ecd671c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03979df6dae6e9dbbcac1abc49ad6d73e06f4d56ee03bf6e76cfd2e8ecd671c1", kill_on_drop: false }` [INFO] [stdout] 03979df6dae6e9dbbcac1abc49ad6d73e06f4d56ee03bf6e76cfd2e8ecd671c1 [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] d2d3fe43efb5d4cebac7d2be5dba9b6e13445e2584108f4cf638b8b0990af389 [INFO] running `Command { std: "docker" "start" "-a" "d2d3fe43efb5d4cebac7d2be5dba9b6e13445e2584108f4cf638b8b0990af389", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling io-lifetimes v1.0.9 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling rustix v0.36.11 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Checking home v0.5.4 [INFO] [stderr] Checking lock_api v0.4.9 [INFO] [stderr] Checking fuzzy-matcher v0.3.7 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Checking crossbeam-channel v0.5.7 [INFO] [stderr] Checking url v2.3.1 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.6 [INFO] [stderr] Checking parking_lot_core v0.9.7 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking filetime v0.2.20 [INFO] [stderr] Checking console v0.15.5 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking chrono v0.4.23 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking signal-hook v0.3.15 [INFO] [stderr] Checking notify v5.1.0 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Checking crossterm v0.26.1 [INFO] [stderr] Checking tui v0.19.0 [INFO] [stderr] Checking tempfile v3.4.0 [INFO] [stderr] Checking dialoguer v0.10.3 [INFO] [stderr] Checking timer v0.2.0 [INFO] [stderr] Checking trash v3.0.1 [INFO] [stderr] Checking dirp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/utils.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | if let Ok(path) = PathBuf::from_str(&file_path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/utils.rs:138:15 [INFO] [stdout] | [INFO] [stdout] 138 | } else if let Ok(path) = PathBuf::from_str(file_path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:181:16 [INFO] [stdout] | [INFO] [stdout] 181 | StdIoError(std::io::Error), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DirpError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 181 - StdIoError(std::io::Error), [INFO] [stdout] 181 + StdIoError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:183:31 [INFO] [stdout] | [INFO] [stdout] 183 | SendErrorDirpStateMessage(std::sync::mpsc::SendError), [INFO] [stdout] | ------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DirpError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 183 - SendErrorDirpStateMessage(std::sync::mpsc::SendError), [INFO] [stdout] 183 + SendErrorDirpStateMessage(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:184:26 [INFO] [stdout] | [INFO] [stdout] 184 | SendErrorUserMessage(std::sync::mpsc::SendError), [INFO] [stdout] | -------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DirpError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 184 - SendErrorUserMessage(std::sync::mpsc::SendError), [INFO] [stdout] 184 + SendErrorUserMessage(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:185:16 [INFO] [stdout] | [INFO] [stdout] 185 | TrashError(trash::Error), [INFO] [stdout] | ---------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DirpError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 185 - TrashError(trash::Error), [INFO] [stdout] 185 + TrashError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/utils.rs:127:23 [INFO] [stdout] | [INFO] [stdout] 127 | if let Ok(path) = PathBuf::from_str(&file_path) { [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/utils.rs:138:30 [INFO] [stdout] | [INFO] [stdout] 138 | } else if let Ok(path) = PathBuf::from_str(file_path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dirp` (bin "dirp") due to 2 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/utils.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | if let Ok(path) = PathBuf::from_str(&file_path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/utils.rs:138:15 [INFO] [stdout] | [INFO] [stdout] 138 | } else if let Ok(path) = PathBuf::from_str(file_path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:181:16 [INFO] [stdout] | [INFO] [stdout] 181 | StdIoError(std::io::Error), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DirpError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 181 - StdIoError(std::io::Error), [INFO] [stdout] 181 + StdIoError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:183:31 [INFO] [stdout] | [INFO] [stdout] 183 | SendErrorDirpStateMessage(std::sync::mpsc::SendError), [INFO] [stdout] | ------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DirpError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 183 - SendErrorDirpStateMessage(std::sync::mpsc::SendError), [INFO] [stdout] 183 + SendErrorDirpStateMessage(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:184:26 [INFO] [stdout] | [INFO] [stdout] 184 | SendErrorUserMessage(std::sync::mpsc::SendError), [INFO] [stdout] | -------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DirpError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 184 - SendErrorUserMessage(std::sync::mpsc::SendError), [INFO] [stdout] 184 + SendErrorUserMessage(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:185:16 [INFO] [stdout] | [INFO] [stdout] 185 | TrashError(trash::Error), [INFO] [stdout] | ---------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DirpError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 185 - TrashError(trash::Error), [INFO] [stdout] 185 + TrashError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/utils.rs:127:23 [INFO] [stdout] | [INFO] [stdout] 127 | if let Ok(path) = PathBuf::from_str(&file_path) { [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/utils.rs:138:30 [INFO] [stdout] | [INFO] [stdout] 138 | } else if let Ok(path) = PathBuf::from_str(file_path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dirp` (bin "dirp" test) due to 2 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d2d3fe43efb5d4cebac7d2be5dba9b6e13445e2584108f4cf638b8b0990af389", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2d3fe43efb5d4cebac7d2be5dba9b6e13445e2584108f4cf638b8b0990af389", kill_on_drop: false }` [INFO] [stdout] d2d3fe43efb5d4cebac7d2be5dba9b6e13445e2584108f4cf638b8b0990af389