[INFO] cloning repository https://github.com/Kakaluote000/rg-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kakaluote000/rg-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKakaluote000%2Frg-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKakaluote000%2Frg-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cce8d1053373e5a81984e066e3db547911c5098f [INFO] checking Kakaluote000/rg-cli against try#5ec4d3b0c83717313176eefa7d71e9d36dc83355 for pr-155501 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKakaluote000%2Frg-cli" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Kakaluote000/rg-cli [INFO] finished tweaking git repo https://github.com/Kakaluote000/rg-cli [INFO] tweaked toml for git repo https://github.com/Kakaluote000/rg-cli written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Kakaluote000/rg-cli on toolchain 5ec4d3b0c83717313176eefa7d71e9d36dc83355 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ec4d3b0c83717313176eefa7d71e9d36dc83355" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Kakaluote000/rg-cli 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" "+5ec4d3b0c83717313176eefa7d71e9d36dc83355" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+5ec4d3b0c83717313176eefa7d71e9d36dc83355" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24626b3000f000883766594d650c5d39a531c3273d891618f528ab645f003956 [INFO] running `Command { std: "docker" "start" "-a" "24626b3000f000883766594d650c5d39a531c3273d891618f528ab645f003956", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24626b3000f000883766594d650c5d39a531c3273d891618f528ab645f003956", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24626b3000f000883766594d650c5d39a531c3273d891618f528ab645f003956", kill_on_drop: false }` [INFO] [stdout] 24626b3000f000883766594d650c5d39a531c3273d891618f528ab645f003956 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+5ec4d3b0c83717313176eefa7d71e9d36dc83355" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7564163efc5725fe677d2bd67cdc8500e546a9aeabf0da580e445f3a4d9ed8e [INFO] running `Command { std: "docker" "start" "-a" "f7564163efc5725fe677d2bd67cdc8500e546a9aeabf0da580e445f3a4d9ed8e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Checking once_cell v1.21.4 [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Checking regex-syntax v0.8.10 [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle-query v1.1.5 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Checking colorchoice v1.0.5 [INFO] [stderr] Checking is_terminal_polyfill v1.70.2 [INFO] [stderr] Checking anstyle v1.0.14 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking anstyle-parse v1.0.0 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking clap_lex v1.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.17 [INFO] [stderr] Checking linux-raw-sys v0.12.1 [INFO] [stderr] Checking bitflags v2.11.0 [INFO] [stderr] Checking anstream v1.0.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking nu-ansi-term v0.50.3 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking clap_builder v4.6.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking tempfile v3.27.0 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling clap_derive v4.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking clap v4.6.0 [INFO] [stderr] Checking rg-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: enum `AppError` is never used [INFO] [stdout] --> src/error/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AppError { [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 `is_binary` is never read [INFO] [stdout] --> src/error/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct SearchResult { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | pub is_binary: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `binary` is never used [INFO] [stdout] --> src/error/mod.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl SearchResult { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn binary(path: String, line_number: Option, line: String) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `format_separator` is never used [INFO] [stdout] --> src/highlight/mod.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Highlighter { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn format_separator(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BOLD` is never used [INFO] [stdout] --> src/highlight/mod.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | pub const BOLD: &str = "\x1b[1m"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RED` is never used [INFO] [stdout] --> src/highlight/mod.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub const RED: &str = "\x1b[31m"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GREEN` is never used [INFO] [stdout] --> src/highlight/mod.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub const GREEN: &str = "\x1b[32m"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `YELLOW` is never used [INFO] [stdout] --> src/highlight/mod.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | pub const YELLOW: &str = "\x1b[33m"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAGENTA` is never used [INFO] [stdout] --> src/highlight/mod.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | pub const MAGENTA: &str = "\x1b[35m"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYAN` is never used [INFO] [stdout] --> src/highlight/mod.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub const CYAN: &str = "\x1b[36m"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WHITE` is never used [INFO] [stdout] --> src/highlight/mod.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub const WHITE: &str = "\x1b[37m"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BRIGHT_BLACK` is never used [INFO] [stdout] --> src/highlight/mod.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub const BRIGHT_BLACK: &str = "\x1b[90m"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `case_sensitive`, `use_color`, `exclude_patterns`, and `binary_mode` are never read [INFO] [stdout] --> src/search/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct SearchConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub case_sensitive: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | /// 是否启用颜色 [INFO] [stdout] 25 | pub use_color: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub exclude_patterns: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | /// 二进制模式 [INFO] [stdout] 31 | pub binary_mode: BinaryMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start_time` and `files_matched` are never read [INFO] [stdout] --> src/stats/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SearchStats { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 11 | start_time: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | files_searched: usize, [INFO] [stdout] 13 | files_matched: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/stats/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl SearchStats { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn update(&mut self, results: &[SearchResult]) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AppError` is never used [INFO] [stdout] --> src/error/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AppError { [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 `is_binary` is never read [INFO] [stdout] --> src/error/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct SearchResult { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | pub is_binary: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `binary` is never used [INFO] [stdout] --> src/error/mod.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl SearchResult { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn binary(path: String, line_number: Option, line: String) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `format_separator` is never used [INFO] [stdout] --> src/highlight/mod.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Highlighter { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn format_separator(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_results_plain` is never used [INFO] [stdout] --> src/highlight/mod.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn print_results_plain(results: &[SearchResult]) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BOLD` is never used [INFO] [stdout] --> src/highlight/mod.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | pub const BOLD: &str = "\x1b[1m"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RED` is never used [INFO] [stdout] --> src/highlight/mod.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub const RED: &str = "\x1b[31m"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GREEN` is never used [INFO] [stdout] --> src/highlight/mod.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub const GREEN: &str = "\x1b[32m"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `YELLOW` is never used [INFO] [stdout] --> src/highlight/mod.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | pub const YELLOW: &str = "\x1b[33m"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAGENTA` is never used [INFO] [stdout] --> src/highlight/mod.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | pub const MAGENTA: &str = "\x1b[35m"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYAN` is never used [INFO] [stdout] --> src/highlight/mod.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub const CYAN: &str = "\x1b[36m"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WHITE` is never used [INFO] [stdout] --> src/highlight/mod.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub const WHITE: &str = "\x1b[37m"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BRIGHT_BLACK` is never used [INFO] [stdout] --> src/highlight/mod.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub const BRIGHT_BLACK: &str = "\x1b[90m"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `case_sensitive`, `use_color`, `exclude_patterns`, and `binary_mode` are never read [INFO] [stdout] --> src/search/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct SearchConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub case_sensitive: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | /// 是否启用颜色 [INFO] [stdout] 25 | pub use_color: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub exclude_patterns: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | /// 二进制模式 [INFO] [stdout] 31 | pub binary_mode: BinaryMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start_time` and `files_matched` are never read [INFO] [stdout] --> src/stats/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SearchStats { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 11 | start_time: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | files_searched: usize, [INFO] [stdout] 13 | files_matched: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/stats/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl SearchStats { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn update(&mut self, results: &[SearchResult]) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.03s [INFO] running `Command { std: "docker" "inspect" "f7564163efc5725fe677d2bd67cdc8500e546a9aeabf0da580e445f3a4d9ed8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7564163efc5725fe677d2bd67cdc8500e546a9aeabf0da580e445f3a4d9ed8e", kill_on_drop: false }` [INFO] [stdout] f7564163efc5725fe677d2bd67cdc8500e546a9aeabf0da580e445f3a4d9ed8e