[INFO] cloning repository https://github.com/xiaoniaoyouhuajiang/hacker_rank [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xiaoniaoyouhuajiang/hacker_rank" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiaoniaoyouhuajiang%2Fhacker_rank", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiaoniaoyouhuajiang%2Fhacker_rank'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] de400a1bb49defd49fbe75cf6175d3a827c55524 [INFO] checking xiaoniaoyouhuajiang/hacker_rank against try#ef5216c337126ffe24d074826f4023948c4a9b8e for pr-137033 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiaoniaoyouhuajiang%2Fhacker_rank" "/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/xiaoniaoyouhuajiang/hacker_rank on toolchain ef5216c337126ffe24d074826f4023948c4a9b8e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xiaoniaoyouhuajiang/hacker_rank [INFO] finished tweaking git repo https://github.com/xiaoniaoyouhuajiang/hacker_rank [INFO] tweaked toml for git repo https://github.com/xiaoniaoyouhuajiang/hacker_rank written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/xiaoniaoyouhuajiang/hacker_rank 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" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tailcall-impl v1.0.1 [INFO] [stderr] Downloaded loro-thunderdome v0.6.2 [INFO] [stderr] Downloaded tailcall v1.0.1 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd2322702911cadeae7235e5305fbcd8f2a05bee76784e2bafbe523dc7107925 [INFO] running `Command { std: "docker" "start" "-a" "cd2322702911cadeae7235e5305fbcd8f2a05bee76784e2bafbe523dc7107925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd2322702911cadeae7235e5305fbcd8f2a05bee76784e2bafbe523dc7107925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd2322702911cadeae7235e5305fbcd8f2a05bee76784e2bafbe523dc7107925", kill_on_drop: false }` [INFO] [stdout] cd2322702911cadeae7235e5305fbcd8f2a05bee76784e2bafbe523dc7107925 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 82c59ab6830dcf1d906a3e00f5933f0f5235980f3d4fff4424b3457f1304978b [INFO] running `Command { std: "docker" "start" "-a" "82c59ab6830dcf1d906a3e00f5933f0f5235980f3d4fff4424b3457f1304978b", kill_on_drop: false }` [INFO] [stderr] Checking loro-thunderdome v0.6.2 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking utils v0.1.0 (/opt/rustwide/workdir/utils) [INFO] [stderr] Checking queen_attack v0.1.0 (/opt/rustwide/workdir/queen_attack) [INFO] [stderr] Checking nd_subset v0.1.0 (/opt/rustwide/workdir/nd_subset) [INFO] [stderr] Checking hacker_rank v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> queen_attack/src/lib.rs:23:29 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn queensAttack(n: i32, k: i32, r_q: i32, c_q: i32, obstacles: &[Vec]) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> queen_attack/src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | struct Obstacle{ [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 17 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 18 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Obstacle` 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: function `queensAttack` should have a snake case name [INFO] [stdout] --> queen_attack/src/lib.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn queensAttack(n: i32, k: i32, r_q: i32, c_q: i32, obstacles: &[Vec]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `queens_attack` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> queen_attack/src/lib.rs:23:29 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn queensAttack(n: i32, k: i32, r_q: i32, c_q: i32, obstacles: &[Vec]) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> queen_attack/src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | struct Obstacle{ [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 17 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 18 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Obstacle` 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: function `queensAttack` should have a snake case name [INFO] [stdout] --> queen_attack/src/lib.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn queensAttack(n: i32, k: i32, r_q: i32, c_q: i32, obstacles: &[Vec]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `queens_attack` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_queensAttack` should have a snake case name [INFO] [stdout] --> queen_attack/src/lib.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn test_queensAttack() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_queens_attack` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling tailcall-impl v1.0.1 [INFO] [stderr] Checking tailcall v1.0.1 [INFO] [stderr] Checking ashton_string v0.1.0 (/opt/rustwide/workdir/ashton_string) [INFO] [stdout] warning: unused variable: `total_len` [INFO] [stdout] --> ashton_string/src/lib.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut total_len = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_len` [INFO] [stdout] --> ashton_string/src/lib.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut total_len = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> ashton_string/src/lib.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut total_len = 0; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> ashton_string/src/lib.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | for (c, indices) in &char_map { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> ashton_string/src/lib.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | fn ashtonString3(s: &str, k: i32) -> char { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> ashton_string/src/lib.rs:93:27 [INFO] [stdout] | [INFO] [stdout] 93 | fn ashtonString3(s: &str, k: i32) -> char { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ashtonString3` is never used [INFO] [stdout] --> ashton_string/src/lib.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn ashtonString3(s: &str, k: i32) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ashtonString` should have a snake case name [INFO] [stdout] --> ashton_string/src/lib.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn ashtonString(s: &str, k: i32) -> char { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `ashton_string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ashtonString2` should have a snake case name [INFO] [stdout] --> ashton_string/src/lib.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn ashtonString2(s: &str, k: i32) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `ashton_string2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ashtonString3` should have a snake case name [INFO] [stdout] --> ashton_string/src/lib.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn ashtonString3(s: &str, k: i32) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `ashton_string3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ashtonString2` should have a snake case name [INFO] [stdout] --> ashton_string/src/lib.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | fn test_ashtonString2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_ashton_string2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ashtonString2_complex` should have a snake case name [INFO] [stdout] --> ashton_string/src/lib.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | fn test_ashtonString2_complex() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_ashton_string2_complex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> ashton_string/src/lib.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut total_len = 0; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> ashton_string/src/lib.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | for (c, indices) in &char_map { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> ashton_string/src/lib.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | fn ashtonString3(s: &str, k: i32) -> char { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> ashton_string/src/lib.rs:93:27 [INFO] [stdout] | [INFO] [stdout] 93 | fn ashtonString3(s: &str, k: i32) -> char { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ashtonString` is never used [INFO] [stdout] --> ashton_string/src/lib.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn ashtonString(s: &str, k: i32) -> char { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `construct_substring` is never used [INFO] [stdout] --> ashton_string/src/lib.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn construct_substring(k: i32, mut prefix: String, indices: &Vec, map: &BTreeMap>, original: &str, concat_value: ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ashtonString2` is never used [INFO] [stdout] --> ashton_string/src/lib.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn ashtonString2(s: &str, k: i32) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ashtonString3` is never used [INFO] [stdout] --> ashton_string/src/lib.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn ashtonString3(s: &str, k: i32) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ashtonString` should have a snake case name [INFO] [stdout] --> ashton_string/src/lib.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn ashtonString(s: &str, k: i32) -> char { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `ashton_string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ashtonString2` should have a snake case name [INFO] [stdout] --> ashton_string/src/lib.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn ashtonString2(s: &str, k: i32) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `ashton_string2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ashtonString3` should have a snake case name [INFO] [stdout] --> ashton_string/src/lib.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn ashtonString3(s: &str, k: i32) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `ashton_string3` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.09s [INFO] running `Command { std: "docker" "inspect" "82c59ab6830dcf1d906a3e00f5933f0f5235980f3d4fff4424b3457f1304978b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82c59ab6830dcf1d906a3e00f5933f0f5235980f3d4fff4424b3457f1304978b", kill_on_drop: false }` [INFO] [stdout] 82c59ab6830dcf1d906a3e00f5933f0f5235980f3d4fff4424b3457f1304978b