[INFO] cloning repository https://github.com/Mouradif/codecrafters-grep-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Mouradif/codecrafters-grep-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMouradif%2Fcodecrafters-grep-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMouradif%2Fcodecrafters-grep-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c1c7a99d350d7bcbd82496d9df969a7d19813eef [INFO] linting Mouradif/codecrafters-grep-rust against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMouradif%2Fcodecrafters-grep-rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Mouradif/codecrafters-grep-rust [INFO] finished tweaking git repo https://github.com/Mouradif/codecrafters-grep-rust [INFO] tweaked toml for git repo https://github.com/Mouradif/codecrafters-grep-rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Mouradif/codecrafters-grep-rust on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Mouradif/codecrafters-grep-rust 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b329d41a78a603f57c83c05e0ed93dacff4fe4e7e37f3e0d3179e518d538b8f7 [INFO] running `Command { std: "docker" "start" "-a" "b329d41a78a603f57c83c05e0ed93dacff4fe4e7e37f3e0d3179e518d538b8f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b329d41a78a603f57c83c05e0ed93dacff4fe4e7e37f3e0d3179e518d538b8f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b329d41a78a603f57c83c05e0ed93dacff4fe4e7e37f3e0d3179e518d538b8f7", kill_on_drop: false }` [INFO] [stdout] b329d41a78a603f57c83c05e0ed93dacff4fe4e7e37f3e0d3179e518d538b8f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96d1cf7a1eb1e34069246779dbc692d5ef231358f1bda3ef3911fc90bb016640 [INFO] running `Command { std: "docker" "start" "-a" "96d1cf7a1eb1e34069246779dbc692d5ef231358f1bda3ef3911fc90bb016640", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking codecrafters-grep v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/patterns.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | if !found && !matches.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `matches.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/patterns.rs:110:62 [INFO] [stdout] | [INFO] [stdout] 110 | if let Some(pos) = haystack.chars().position(|c| c.is_digit(10)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix [INFO] [stdout] = note: `#[warn(clippy::is_digit_ascii_radix)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/patterns.rs:119:31 [INFO] [stdout] | [INFO] [stdout] 119 | .position(|c| c.is_digit(10) || c.is_alphabetic() || c == '_') { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/patterns.rs:137:73 [INFO] [stdout] | [INFO] [stdout] 137 | let capture: Vec = capture_str.chars().map(|c| Pattern::SingleCharacter(c)).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Pattern::SingleCharacter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/patterns.rs:285:17 [INFO] [stdout] | [INFO] [stdout] 285 | / if index == count - 1 && !is_escaping { [INFO] [stdout] 286 | | match_end = true; [INFO] [stdout] 287 | | } else { [INFO] [stdout] 288 | | let p = Pattern::single_character(char); [INFO] [stdout] ... | [INFO] [stdout] 299 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 284 ~ '$' [INFO] [stdout] 285 ~ if index == count - 1 && !is_escaping => { [INFO] [stdout] 286 | match_end = true; [INFO] [stdout] 287 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/patterns.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | if !found && !matches.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `matches.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/patterns.rs:110:62 [INFO] [stdout] | [INFO] [stdout] 110 | if let Some(pos) = haystack.chars().position(|c| c.is_digit(10)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix [INFO] [stdout] = note: `#[warn(clippy::is_digit_ascii_radix)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/patterns.rs:119:31 [INFO] [stdout] | [INFO] [stdout] 119 | .position(|c| c.is_digit(10) || c.is_alphabetic() || c == '_') { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/patterns.rs:137:73 [INFO] [stdout] | [INFO] [stdout] 137 | let capture: Vec = capture_str.chars().map(|c| Pattern::SingleCharacter(c)).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Pattern::SingleCharacter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/patterns.rs:285:17 [INFO] [stdout] | [INFO] [stdout] 285 | / if index == count - 1 && !is_escaping { [INFO] [stdout] 286 | | match_end = true; [INFO] [stdout] 287 | | } else { [INFO] [stdout] 288 | | let p = Pattern::single_character(char); [INFO] [stdout] ... | [INFO] [stdout] 299 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 284 ~ '$' [INFO] [stdout] 285 ~ if index == count - 1 && !is_escaping => { [INFO] [stdout] 286 | match_end = true; [INFO] [stdout] 287 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.43s [INFO] running `Command { std: "docker" "inspect" "96d1cf7a1eb1e34069246779dbc692d5ef231358f1bda3ef3911fc90bb016640", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96d1cf7a1eb1e34069246779dbc692d5ef231358f1bda3ef3911fc90bb016640", kill_on_drop: false }` [INFO] [stdout] 96d1cf7a1eb1e34069246779dbc692d5ef231358f1bda3ef3911fc90bb016640