[INFO] cloning repository https://github.com/FractalWanderer/FileSystemHelper
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FractalWanderer/FileSystemHelper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFractalWanderer%2FFileSystemHelper", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFractalWanderer%2FFileSystemHelper'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fdefc38d726b02cbb8d79c2b70326d9ae5723660
[INFO] checking FractalWanderer/FileSystemHelper against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFractalWanderer%2FFileSystemHelper" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/FractalWanderer/FileSystemHelper
[INFO] finished tweaking git repo https://github.com/FractalWanderer/FileSystemHelper
[INFO] tweaked toml for git repo https://github.com/FractalWanderer/FileSystemHelper written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/FractalWanderer/FileSystemHelper on toolchain b1f2594eac607c1f051534800237eeedb5590a49
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/FractalWanderer/FileSystemHelper 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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a85080b970554dcdd505fc784433cf4224cc261c039207e03718cb6f5a2dab32
[INFO] running `Command { std: "docker" "start" "-a" "a85080b970554dcdd505fc784433cf4224cc261c039207e03718cb6f5a2dab32", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a85080b970554dcdd505fc784433cf4224cc261c039207e03718cb6f5a2dab32", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a85080b970554dcdd505fc784433cf4224cc261c039207e03718cb6f5a2dab32", kill_on_drop: false }`
[INFO] [stdout] a85080b970554dcdd505fc784433cf4224cc261c039207e03718cb6f5a2dab32
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 67f28d979f6e33368c4ae9ada56012bed1ec1082960f47f0925a9ddddc286875
[INFO] running `Command { std: "docker" "start" "-a" "67f28d979f6e33368c4ae9ada56012bed1ec1082960f47f0925a9ddddc286875", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.69
[INFO] [stderr]    Compiling rustix v0.38.23
[INFO] [stderr]    Compiling libc v0.2.150
[INFO] [stderr]     Checking anstyle v1.0.4
[INFO] [stderr]     Checking bitflags v2.4.1
[INFO] [stderr]     Checking anstyle-query v1.0.0
[INFO] [stderr]    Compiling portable-atomic v1.5.1
[INFO] [stderr]     Checking linux-raw-sys v0.4.11
[INFO] [stderr]     Checking unicode-width v0.1.11
[INFO] [stderr]     Checking clap_lex v0.6.0
[INFO] [stderr]     Checking anstyle-parse v0.2.2
[INFO] [stderr]     Checking walkdir v2.4.0
[INFO] [stderr]     Checking anstream v0.6.4
[INFO] [stderr]     Checking clap_builder v4.4.7
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling syn v2.0.39
[INFO] [stderr]     Checking console v0.15.7
[INFO] [stderr]     Checking indicatif v0.17.7
[INFO] [stderr]     Checking is-terminal v0.4.9
[INFO] [stderr]     Checking colored v2.0.4
[INFO] [stderr]    Compiling clap_derive v4.4.7
[INFO] [stderr]     Checking clap v4.4.7
[INFO] [stderr]     Checking FileSystemHelper v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::cmp`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::cmp;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::cmp;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:64:33
[INFO] [stdout]    |
[INFO] [stdout] 64 | ...                   let mut context_windows: Vec<ContextWindow> = Vec::new();
[INFO] [stdout]    |                           ----^^^^^^^^^^^^^^^
[INFO] [stdout]    |                           |
[INFO] [stdout]    |                           help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `context_size`
[INFO] [stdout]   --> src/main.rs:47:40
[INFO] [stdout]    |
[INFO] [stdout] 47 |             Commands::FindText { text, context_size, no_highlight } => {
[INFO] [stdout]    |                                        ^^^^^^^^^^^^ help: try ignoring the field: `context_size: _`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `no_highlight`
[INFO] [stdout]   --> src/main.rs:47:54
[INFO] [stdout]    |
[INFO] [stdout] 47 |             Commands::FindText { text, context_size, no_highlight } => {
[INFO] [stdout]    |                                                      ^^^^^^^^^^^^ help: try ignoring the field: `no_highlight: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `search_results`
[INFO] [stdout]   --> src/main.rs:52:21
[INFO] [stdout]    |
[INFO] [stdout] 52 |                 let search_results: Vec<SearchResult> = Vec::new();
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_search_results`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `context_windows`
[INFO] [stdout]   --> src/main.rs:64:33
[INFO] [stdout]    |
[INFO] [stdout] 64 | ...                   let mut context_windows: Vec<ContextWindow> = Vec::new();
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context_windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `occurences` is assigned to, but never used
[INFO] [stdout]   --> src/main.rs:65:33
[INFO] [stdout]    |
[INFO] [stdout] 65 | ...                   let mut occurences = 0;
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider using `_occurences` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line_index`
[INFO] [stdout]   --> src/main.rs:67:33
[INFO] [stdout]    |
[INFO] [stdout] 67 | ...                   for(line_index, line) in sliced_contents.iter().enumerate() {
[INFO] [stdout]    |                           ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `find`
[INFO] [stdout]   --> src/main.rs:82:40
[INFO] [stdout]    |
[INFO] [stdout] 82 |             Commands::FindAndReplace { find, replace} => {
[INFO] [stdout]    |                                        ^^^^ help: try ignoring the field: `find: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `replace`
[INFO] [stdout]   --> src/main.rs:82:46
[INFO] [stdout]    |
[INFO] [stdout] 82 |             Commands::FindAndReplace { find, replace} => {
[INFO] [stdout]    |                                              ^^^^^^^ help: try ignoring the field: `replace: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `occurences` is never read
[INFO] [stdout]   --> src/main.rs:69:37
[INFO] [stdout]    |
[INFO] [stdout] 69 | ...                   occurences += 1;
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `file_name`, `file_path`, `number_of_occurrences`, and `context_window` are never read
[INFO] [stdout]   --> src/main.rs:90:5
[INFO] [stdout]    |
[INFO] [stdout] 89 | struct SearchResult {
[INFO] [stdout]    |        ------------ fields in this struct
[INFO] [stdout] 90 |     file_name: String,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 91 |     file_path: String,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 92 |     number_of_occurrences: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 93 |     context_window: ContextWindow
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `window_contents` is never read
[INFO] [stdout]   --> src/main.rs:97:5
[INFO] [stdout]    |
[INFO] [stdout] 96 | struct ContextWindow {
[INFO] [stdout]    |        ------------- field in this struct
[INFO] [stdout] 97 |     window_contents: Vec<String>
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_context_window` is never used
[INFO] [stdout]    --> src/main.rs:110:4
[INFO] [stdout]     |
[INFO] [stdout] 110 | fn print_context_window(window_contents: &[&str], file_name: &str, text: &str, no_highlight: bool) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `highlight_text` is never used
[INFO] [stdout]    --> src/main.rs:131:4
[INFO] [stdout]     |
[INFO] [stdout] 131 | fn highlight_text(full_text: &str, text_to_highlight: &str, color: Color) -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:64:33
[INFO] [stdout]    |
[INFO] [stdout] 64 | ...                   let mut context_windows: Vec<ContextWindow> = Vec::new();
[INFO] [stdout]    |                           ----^^^^^^^^^^^^^^^
[INFO] [stdout]    |                           |
[INFO] [stdout]    |                           help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `context_size`
[INFO] [stdout]   --> src/main.rs:47:40
[INFO] [stdout]    |
[INFO] [stdout] 47 |             Commands::FindText { text, context_size, no_highlight } => {
[INFO] [stdout]    |                                        ^^^^^^^^^^^^ help: try ignoring the field: `context_size: _`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `no_highlight`
[INFO] [stdout]   --> src/main.rs:47:54
[INFO] [stdout]    |
[INFO] [stdout] 47 |             Commands::FindText { text, context_size, no_highlight } => {
[INFO] [stdout]    |                                                      ^^^^^^^^^^^^ help: try ignoring the field: `no_highlight: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `search_results`
[INFO] [stdout]   --> src/main.rs:52:21
[INFO] [stdout]    |
[INFO] [stdout] 52 |                 let search_results: Vec<SearchResult> = Vec::new();
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_search_results`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `context_windows`
[INFO] [stdout]   --> src/main.rs:64:33
[INFO] [stdout]    |
[INFO] [stdout] 64 | ...                   let mut context_windows: Vec<ContextWindow> = Vec::new();
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context_windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `occurences` is assigned to, but never used
[INFO] [stdout]   --> src/main.rs:65:33
[INFO] [stdout]    |
[INFO] [stdout] 65 | ...                   let mut occurences = 0;
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider using `_occurences` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line_index`
[INFO] [stdout]   --> src/main.rs:67:33
[INFO] [stdout]    |
[INFO] [stdout] 67 | ...                   for(line_index, line) in sliced_contents.iter().enumerate() {
[INFO] [stdout]    |                           ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `find`
[INFO] [stdout]   --> src/main.rs:82:40
[INFO] [stdout]    |
[INFO] [stdout] 82 |             Commands::FindAndReplace { find, replace} => {
[INFO] [stdout]    |                                        ^^^^ help: try ignoring the field: `find: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `replace`
[INFO] [stdout]   --> src/main.rs:82:46
[INFO] [stdout]    |
[INFO] [stdout] 82 |             Commands::FindAndReplace { find, replace} => {
[INFO] [stdout]    |                                              ^^^^^^^ help: try ignoring the field: `replace: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `occurences` is never read
[INFO] [stdout]   --> src/main.rs:69:37
[INFO] [stdout]    |
[INFO] [stdout] 69 | ...                   occurences += 1;
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `file_name`, `file_path`, `number_of_occurrences`, and `context_window` are never read
[INFO] [stdout]   --> src/main.rs:90:5
[INFO] [stdout]    |
[INFO] [stdout] 89 | struct SearchResult {
[INFO] [stdout]    |        ------------ fields in this struct
[INFO] [stdout] 90 |     file_name: String,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 91 |     file_path: String,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 92 |     number_of_occurrences: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 93 |     context_window: ContextWindow
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `window_contents` is never read
[INFO] [stdout]   --> src/main.rs:97:5
[INFO] [stdout]    |
[INFO] [stdout] 96 | struct ContextWindow {
[INFO] [stdout]    |        ------------- field in this struct
[INFO] [stdout] 97 |     window_contents: Vec<String>
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_context_window` is never used
[INFO] [stdout]    --> src/main.rs:110:4
[INFO] [stdout]     |
[INFO] [stdout] 110 | fn print_context_window(window_contents: &[&str], file_name: &str, text: &str, no_highlight: bool) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `highlight_text` is never used
[INFO] [stdout]    --> src/main.rs:131:4
[INFO] [stdout]     |
[INFO] [stdout] 131 | fn highlight_text(full_text: &str, text_to_highlight: &str, color: Color) -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.50s
[INFO] running `Command { std: "docker" "inspect" "67f28d979f6e33368c4ae9ada56012bed1ec1082960f47f0925a9ddddc286875", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "67f28d979f6e33368c4ae9ada56012bed1ec1082960f47f0925a9ddddc286875", kill_on_drop: false }`
[INFO] [stdout] 67f28d979f6e33368c4ae9ada56012bed1ec1082960f47f0925a9ddddc286875
