[INFO] cloning repository https://github.com/Eimovas/algorithms_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Eimovas/algorithms_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEimovas%2Falgorithms_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEimovas%2Falgorithms_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f7b6ad613fc0c603e9a337dfe4708fde8cef000f [INFO] checking Eimovas/algorithms_rust against master#e1beee4992ad4b235fc700bf7af1ee86f894ea53 for pr-74130 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEimovas%2Falgorithms_rust" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Eimovas/algorithms_rust on toolchain e1beee4992ad4b235fc700bf7af1ee86f894ea53 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Eimovas/algorithms_rust [INFO] finished tweaking git repo https://github.com/Eimovas/algorithms_rust [INFO] tweaked toml for git repo https://github.com/Eimovas/algorithms_rust written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/Eimovas/algorithms_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 75760c6e0aef526124807218c64d39324b49c2bfadf275e558c10f86d6dc1d3a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "75760c6e0aef526124807218c64d39324b49c2bfadf275e558c10f86d6dc1d3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75760c6e0aef526124807218c64d39324b49c2bfadf275e558c10f86d6dc1d3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75760c6e0aef526124807218c64d39324b49c2bfadf275e558c10f86d6dc1d3a", kill_on_drop: false }` [INFO] [stdout] 75760c6e0aef526124807218c64d39324b49c2bfadf275e558c10f86d6dc1d3a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bf96a85ae34dc0bf1a34edbcabd17d92ff742c1294d67a318ec603398080d7d6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "bf96a85ae34dc0bf1a34edbcabd17d92ff742c1294d67a318ec603398080d7d6", kill_on_drop: false }` [INFO] [stderr] Checking algorithms v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::num` [INFO] [stdout] --> src/array_string/one_edit_away.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/array_string/is_permutation.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num` [INFO] [stdout] --> src/array_string/one_edit_away.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/array_string/is_permutation.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `counts` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/array_string/palindrome_permutation.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 22 | if let Some(value) = counts.get(&lower) { [INFO] [stdout] | ------ immutable borrow occurs here [INFO] [stdout] 23 | counts.insert(lower, value + 1); [INFO] [stdout] | ^^^^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/array_string/is_permutation.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut value = hash_map1.entry(c).or_insert(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: variable does not need to be mutable [INFO] [stdout] --> src/array_string/is_permutation.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut value = hash_map2.entry(c).or_insert(0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `encode` [INFO] [stdout] --> src/array_string/encoding.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn encode(str : String) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/array_string/one_edit_away.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_one_edit_away` [INFO] [stdout] --> src/array_string/one_edit_away.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn is_one_edit_away(str1: String, str2: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_one_edit_equal_str_length` [INFO] [stdout] --> src/array_string/one_edit_away.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn is_one_edit_equal_str_length(str1: String, str2: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_one_edit_not_equal_str_length` [INFO] [stdout] --> src/array_string/one_edit_away.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn is_one_edit_not_equal_str_length(str1: String, str2: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_true_space_count` [INFO] [stdout] --> src/array_string/urification.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_true_space_count(chars : &[char]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `urify` [INFO] [stdout] --> src/array_string/urification.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn urify(chars : &mut Vec, true_length : usize) -> &Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_permutation_array` [INFO] [stdout] --> src/array_string/is_permutation.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_permutation_array(str1 : &str, str2 : &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_permutation_sort` [INFO] [stdout] --> src/array_string/is_permutation.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn is_permutation_sort(str1 : &str, str2 : &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_permutation_hash` [INFO] [stdout] --> src/array_string/is_permutation.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn is_permutation_hash(str1 : &str, str2 : &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `has_unique_chars` [INFO] [stdout] --> src/array_string/unique_chars.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn has_unique_chars(str : String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `has_unique_chars_hash` [INFO] [stdout] --> src/array_string/unique_chars.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn has_unique_chars_hash(str : &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_nth` [INFO] [stdout] --> src/fibonacci.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_nth(n : u32) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `counts` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/array_string/palindrome_permutation.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 22 | if let Some(value) = counts.get(&lower) { [INFO] [stdout] | ------ immutable borrow occurs here [INFO] [stdout] 23 | counts.insert(lower, value + 1); [INFO] [stdout] | ^^^^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/array_string/is_permutation.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut value = hash_map1.entry(c).or_insert(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: variable does not need to be mutable [INFO] [stdout] --> src/array_string/is_permutation.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut value = hash_map2.entry(c).or_insert(0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/array_string/one_edit_away.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_true_space_count` [INFO] [stdout] --> src/array_string/urification.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_true_space_count(chars : &[char]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `urify` [INFO] [stdout] --> src/array_string/urification.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn urify(chars : &mut Vec, true_length : usize) -> &Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_permutation_array` [INFO] [stdout] --> src/array_string/is_permutation.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_permutation_array(str1 : &str, str2 : &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_permutation_sort` [INFO] [stdout] --> src/array_string/is_permutation.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn is_permutation_sort(str1 : &str, str2 : &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_permutation_hash` [INFO] [stdout] --> src/array_string/is_permutation.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn is_permutation_hash(str1 : &str, str2 : &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `has_unique_chars` [INFO] [stdout] --> src/array_string/unique_chars.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn has_unique_chars(str : String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `has_unique_chars_hash` [INFO] [stdout] --> src/array_string/unique_chars.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn has_unique_chars_hash(str : &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_nth` [INFO] [stdout] --> src/fibonacci.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_nth(n : u32) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.68s [INFO] running `Command { std: "docker" "inspect" "bf96a85ae34dc0bf1a34edbcabd17d92ff742c1294d67a318ec603398080d7d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf96a85ae34dc0bf1a34edbcabd17d92ff742c1294d67a318ec603398080d7d6", kill_on_drop: false }` [INFO] [stdout] bf96a85ae34dc0bf1a34edbcabd17d92ff742c1294d67a318ec603398080d7d6