[INFO] cloning repository https://github.com/fankane/rust_practice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fankane/rust_practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffankane%2Frust_practice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffankane%2Frust_practice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 314c8de4131a6685f2dfa22864b79c68db04fa50 [INFO] checking fankane/rust_practice against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffankane%2Frust_practice" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fankane/rust_practice on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fankane/rust_practice [INFO] finished tweaking git repo https://github.com/fankane/rust_practice [INFO] tweaked toml for git repo https://github.com/fankane/rust_practice written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/fankane/rust_practice 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0bc2ebb4059662430cb3bf63dec952b524de01c3c64dd184e2957e05802888d1 [INFO] running `Command { std: "docker" "start" "-a" "0bc2ebb4059662430cb3bf63dec952b524de01c3c64dd184e2957e05802888d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0bc2ebb4059662430cb3bf63dec952b524de01c3c64dd184e2957e05802888d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bc2ebb4059662430cb3bf63dec952b524de01c3c64dd184e2957e05802888d1", kill_on_drop: false }` [INFO] [stdout] 0bc2ebb4059662430cb3bf63dec952b524de01c3c64dd184e2957e05802888d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35700c63b3a41a7ec82368ea11f35b82ee9227ba71faca888f512b9f0f3170de [INFO] running `Command { std: "docker" "start" "-a" "35700c63b3a41a7ec82368ea11f35b82ee9227ba71faca888f512b9f0f3170de", kill_on_drop: false }` [INFO] [stderr] Checking minigrep v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/grep.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/p_sort.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | for (i, j) in Iterator::enumerate(0..n) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/p_sort.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | for (k, l) in Iterator::enumerate(i + 1..n) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InputConfig` is never constructed [INFO] [stdout] --> src/grep.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct InputConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputConfig` 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: associated function `build` is never used [INFO] [stdout] --> src/grep.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl InputConfig { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn build(mut args: impl Iterator) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_msg` is never used [INFO] [stdout] --> src/grep.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn read_msg(conf: InputConfig) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/grep.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn search<'a>(query:&'a str, content: &'a str) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/p_sort.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn add(a: i32, b:i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/p_sort.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bubble_sort` is never used [INFO] [stdout] --> src/p_sort.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn bubble_sort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_maopao` is never used [INFO] [stdout] --> src/p_sort.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn sort_maopao(a: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `testsHF` should have a snake case name [INFO] [stdout] --> src/grep.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | mod testsHF { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tests_hf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `aLen` should have a snake case name [INFO] [stdout] --> src/p_sort.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let aLen = a.len(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `a_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/p_sort.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | for (i, j) in Iterator::enumerate(0..n) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/p_sort.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | for (k, l) in Iterator::enumerate(i + 1..n) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/p_sort.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let r = bubble_sort(br); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InputConfig` is never constructed [INFO] [stdout] --> src/grep.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct InputConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputConfig` 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: associated function `build` is never used [INFO] [stdout] --> src/grep.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl InputConfig { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn build(mut args: impl Iterator) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_msg` is never used [INFO] [stdout] --> src/grep.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn read_msg(conf: InputConfig) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `testsHF` should have a snake case name [INFO] [stdout] --> src/grep.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | mod testsHF { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tests_hf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `aLen` should have a snake case name [INFO] [stdout] --> src/p_sort.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let aLen = a.len(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `a_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `aLen` should have a snake case name [INFO] [stdout] --> src/p_sort.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let aLen = a.len(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `a_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/grep.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `testsHF` should have a snake case name [INFO] [stdout] --> src/grep.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | mod testsHF { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tests_hf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `testsHF` should have a snake case name [INFO] [stdout] --> src/grep.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | mod testsHF { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tests_hf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] running `Command { std: "docker" "inspect" "35700c63b3a41a7ec82368ea11f35b82ee9227ba71faca888f512b9f0f3170de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35700c63b3a41a7ec82368ea11f35b82ee9227ba71faca888f512b9f0f3170de", kill_on_drop: false }` [INFO] [stdout] 35700c63b3a41a7ec82368ea11f35b82ee9227ba71faca888f512b9f0f3170de [INFO] checking fankane/rust_practice against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffankane%2Frust_practice" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fankane/rust_practice on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fankane/rust_practice [INFO] finished tweaking git repo https://github.com/fankane/rust_practice [INFO] tweaked toml for git repo https://github.com/fankane/rust_practice written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/fankane/rust_practice 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c9d75244ec458920dbecf859905eaf681a32b5244084a26d50ff0edb7a9bcf4a [INFO] running `Command { std: "docker" "start" "-a" "c9d75244ec458920dbecf859905eaf681a32b5244084a26d50ff0edb7a9bcf4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c9d75244ec458920dbecf859905eaf681a32b5244084a26d50ff0edb7a9bcf4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9d75244ec458920dbecf859905eaf681a32b5244084a26d50ff0edb7a9bcf4a", kill_on_drop: false }` [INFO] [stdout] c9d75244ec458920dbecf859905eaf681a32b5244084a26d50ff0edb7a9bcf4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd245e14fbc82ed4f9c5babd27cccf0824ba78597571e4d71d55313af51933b1 [INFO] running `Command { std: "docker" "start" "-a" "bd245e14fbc82ed4f9c5babd27cccf0824ba78597571e4d71d55313af51933b1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking minigrep v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/grep.rs (1 fix) [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/p_sort.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | for (i, j) in Iterator::enumerate(0..n) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/p_sort.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | for (k, l) in Iterator::enumerate(i + 1..n) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InputConfig` is never constructed [INFO] [stdout] --> src/grep.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct InputConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputConfig` 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: associated function `build` is never used [INFO] [stdout] --> src/grep.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl InputConfig { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn build(mut args: impl Iterator) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_msg` is never used [INFO] [stdout] --> src/grep.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn read_msg(conf: InputConfig) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/grep.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn search<'a>(query:&'a str, content: &'a str) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/p_sort.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn add(a: i32, b:i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/p_sort.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bubble_sort` is never used [INFO] [stdout] --> src/p_sort.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn bubble_sort(arr: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_maopao` is never used [INFO] [stdout] --> src/p_sort.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn sort_maopao(a: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `testsHF` should have a snake case name [INFO] [stdout] --> src/grep.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | mod testsHF { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tests_hf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `aLen` should have a snake case name [INFO] [stdout] --> src/p_sort.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let aLen = a.len(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `a_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] error[E0425]: cannot find function `search` in this scope [INFO] [stdout] --> src/grep.rs:75:53 [INFO] [stdout] | [INFO] [stdout] 75 | assert_eq!(vec!["safe, fast, productive."], search(query, contents)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 67 + use crate::grep::search; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/p_sort.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | for (i, j) in Iterator::enumerate(0..n) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/p_sort.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | for (k, l) in Iterator::enumerate(i + 1..n) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/p_sort.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let r = bubble_sort(br); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `minigrep` (lib test) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find function `search` in this scope [INFO] [stdout] --> src/grep.rs:75:53 [INFO] [stdout] | [INFO] [stdout] 75 | assert_eq!(vec!["safe, fast, productive."], search(query, contents)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 67 + use crate::grep::search; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `minigrep` (bin "minigrep" test) due to 2 previous errors [INFO] [stdout] warning: module `testsHF` should have a snake case name [INFO] [stdout] --> src/grep.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | mod testsHF { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tests_hf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "bd245e14fbc82ed4f9c5babd27cccf0824ba78597571e4d71d55313af51933b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd245e14fbc82ed4f9c5babd27cccf0824ba78597571e4d71d55313af51933b1", kill_on_drop: false }` [INFO] [stdout] bd245e14fbc82ed4f9c5babd27cccf0824ba78597571e4d71d55313af51933b1