[INFO] cloning repository https://github.com/ForInfinity/rgrep [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ForInfinity/rgrep" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FForInfinity%2Frgrep", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FForInfinity%2Frgrep'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56c127c513ec62ef8381ac69f28c64b174486377 [INFO] checking ForInfinity/rgrep/56c127c513ec62ef8381ac69f28c64b174486377 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FForInfinity%2Frgrep" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ForInfinity/rgrep on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ForInfinity/rgrep [INFO] finished tweaking git repo https://github.com/ForInfinity/rgrep [INFO] tweaked toml for git repo https://github.com/ForInfinity/rgrep written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ForInfinity/rgrep 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded globset v0.4.8 [INFO] [stderr] Downloaded clap_derive v3.1.4 [INFO] [stderr] Downloaded syn v1.0.89 [INFO] [stderr] Downloaded clap v3.1.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df10c9267e740c5d4fccafa691815024558838ae20642fcbac50098a90fe40c8 [INFO] running `Command { std: "docker" "start" "-a" "df10c9267e740c5d4fccafa691815024558838ae20642fcbac50098a90fe40c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df10c9267e740c5d4fccafa691815024558838ae20642fcbac50098a90fe40c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df10c9267e740c5d4fccafa691815024558838ae20642fcbac50098a90fe40c8", kill_on_drop: false }` [INFO] [stdout] df10c9267e740c5d4fccafa691815024558838ae20642fcbac50098a90fe40c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 347f7795590e525d468f39b8cab92548e419e7a3fc4b14e90ea048fe385caa98 [INFO] running `Command { std: "docker" "start" "-a" "347f7795590e525d468f39b8cab92548e419e7a3fc4b14e90ea048fe385caa98", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.120 [INFO] [stderr] Compiling syn v1.0.89 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking os_str_bytes v6.0.0 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking mio v0.8.1 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Checking globset v0.4.8 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap_derive v3.1.4 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking clap v3.1.6 [INFO] [stderr] Checking rgrep v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/fs/tokio_fs_reader.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DirEntry` [INFO] [stdout] --> src/fs/tokio_fs_reader.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::fs::{DirEntry, File, read_dir, ReadDir}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/fs/tokio_fs_reader.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `full_match::FullMatch` [INFO] [stdout] --> src/pattern/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use full_match::FullMatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ColoredString` and `Style` [INFO] [stdout] --> src/format/colored_formatter.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use colored::{ColoredString, Colorize, Style}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArgEnum` and `Subcommand` [INFO] [stdout] --> src/main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use clap::{ArgEnum, Parser, Subcommand}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/fs/tokio_fs_reader.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DirEntry` [INFO] [stdout] --> src/fs/tokio_fs_reader.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::fs::{DirEntry, File, read_dir, ReadDir}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/fs/tokio_fs_reader.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `full_match::FullMatch` [INFO] [stdout] --> src/pattern/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use full_match::FullMatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ColoredString` and `Style` [INFO] [stdout] --> src/format/colored_formatter.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use colored::{ColoredString, Colorize, Style}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArgEnum` and `Subcommand` [INFO] [stdout] --> src/main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use clap::{ArgEnum, Parser, Subcommand}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/fs/tokio_fs_reader.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | Err(err) => None, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/fs/tokio_fs_reader.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | Err(err) => None, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/pattern/wildcard_match.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | fn match_result(&self, text: &str) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/pattern/wildcard_match.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | fn match_result(&self, text: &str) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/format/colored_formatter.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | _ => self.error_notice(&format!("Unknown Notice Command: {:?}", notice), None, None) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/format/colored_formatter.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 111 | Notice::FileNotice(notice) => self.file_notice(notice.path), [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] 112 | Notice::LineMatchNotice(notice) => self.line_match_notice(notice.line_number, notice.content, ¬ice.colored_positions), [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] 113 | Notice::ErrorNotice(notice) => self.error_notice(notice.error, notice.line_number, notice.path), [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 114 | Notice::PlainNotice(str) => self.plain_notice(str), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 115 | _ => self.error_notice(&format!("Unknown Notice Command: {:?}", notice), None, None) [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/format/colored_formatter.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | _ => self.error_notice(&format!("Unknown Notice Command: {:?}", notice), None, None) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/format/colored_formatter.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 111 | Notice::FileNotice(notice) => self.file_notice(notice.path), [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] 112 | Notice::LineMatchNotice(notice) => self.line_match_notice(notice.line_number, notice.content, ¬ice.colored_positions), [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] 113 | Notice::ErrorNotice(notice) => self.error_notice(notice.error, notice.line_number, notice.path), [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 114 | Notice::PlainNotice(str) => self.plain_notice(str), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 115 | _ => self.error_notice(&format!("Unknown Notice Command: {:?}", notice), None, None) [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/fs/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MFile>{ [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 10 | pub path: P, [INFO] [stdout] 11 | pub filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PlainNotice` is never constructed [INFO] [stdout] --> src/format/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Notice<'a>{ [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | PlainNotice(&'a str) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Notice` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Verbose` is never constructed [INFO] [stdout] --> src/format/colored_formatter.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | enum ColorType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 6 | Verbose, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print_text` and `print_notice` are never used [INFO] [stdout] --> src/printer.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl> Printer { [INFO] [stdout] | ---------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn print_text(&self,text: &str) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn print_notice(&self,text: &str) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/fs/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MFile>{ [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 10 | pub path: P, [INFO] [stdout] 11 | pub filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PlainNotice` is never constructed [INFO] [stdout] --> src/format/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Notice<'a>{ [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | PlainNotice(&'a str) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Notice` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Verbose` is never constructed [INFO] [stdout] --> src/format/colored_formatter.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | enum ColorType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 6 | Verbose, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print_text` and `print_notice` are never used [INFO] [stdout] --> src/printer.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl> Printer { [INFO] [stdout] | ---------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn print_text(&self,text: &str) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn print_notice(&self,text: &str) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.91s [INFO] running `Command { std: "docker" "inspect" "347f7795590e525d468f39b8cab92548e419e7a3fc4b14e90ea048fe385caa98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "347f7795590e525d468f39b8cab92548e419e7a3fc4b14e90ea048fe385caa98", kill_on_drop: false }` [INFO] [stdout] 347f7795590e525d468f39b8cab92548e419e7a3fc4b14e90ea048fe385caa98