[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#c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 for pr-141352 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffankane%2Frust_practice" "/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/fankane/rust_practice on toolchain c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "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-6-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" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4231e1a5a7c25c7890216552126cf4c1c3edafcc40ab42fe82ab77e2a82b60c [INFO] running `Command { std: "docker" "start" "-a" "a4231e1a5a7c25c7890216552126cf4c1c3edafcc40ab42fe82ab77e2a82b60c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4231e1a5a7c25c7890216552126cf4c1c3edafcc40ab42fe82ab77e2a82b60c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4231e1a5a7c25c7890216552126cf4c1c3edafcc40ab42fe82ab77e2a82b60c", kill_on_drop: false }` [INFO] [stdout] a4231e1a5a7c25c7890216552126cf4c1c3edafcc40ab42fe82ab77e2a82b60c [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 062ae80c515a3cc96049714548cd1e3352cd314d8dc8f6ed1a380cb533ee8ef7 [INFO] running `Command { std: "docker" "start" "-a" "062ae80c515a3cc96049714548cd1e3352cd314d8dc8f6ed1a380cb533ee8ef7", 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: 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: 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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "062ae80c515a3cc96049714548cd1e3352cd314d8dc8f6ed1a380cb533ee8ef7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "062ae80c515a3cc96049714548cd1e3352cd314d8dc8f6ed1a380cb533ee8ef7", kill_on_drop: false }` [INFO] [stdout] 062ae80c515a3cc96049714548cd1e3352cd314d8dc8f6ed1a380cb533ee8ef7