[INFO] cloning repository https://github.com/kalinavladd/leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kalinavladd/leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkalinavladd%2Fleetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkalinavladd%2Fleetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c52f29e1c813abb9448abd3754884635567db336 [INFO] building kalinavladd/leetcode against master#70591dc15db32941fe3595fdbf98e58d6975f95e for pr-127731 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkalinavladd%2Fleetcode" "/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/kalinavladd/leetcode on toolchain 70591dc15db32941fe3595fdbf98e58d6975f95e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kalinavladd/leetcode [INFO] finished tweaking git repo https://github.com/kalinavladd/leetcode [INFO] tweaked toml for git repo https://github.com/kalinavladd/leetcode written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kalinavladd/leetcode 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" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] building kalinavladd/leetcode against try#7587ff3622fbec0abf6ac551eab5226f22f5d958 for pr-127731 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkalinavladd%2Fleetcode" "/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/kalinavladd/leetcode on toolchain 7587ff3622fbec0abf6ac551eab5226f22f5d958 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7587ff3622fbec0abf6ac551eab5226f22f5d958" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kalinavladd/leetcode [INFO] finished tweaking git repo https://github.com/kalinavladd/leetcode [INFO] tweaked toml for git repo https://github.com/kalinavladd/leetcode written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kalinavladd/leetcode 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" "+7587ff3622fbec0abf6ac551eab5226f22f5d958" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+7587ff3622fbec0abf6ac551eab5226f22f5d958" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf003693a132c6e0fb2698a92cfa4832576303db46c06deb4c14bee31ecc2524 [INFO] running `Command { std: "docker" "start" "-a" "bf003693a132c6e0fb2698a92cfa4832576303db46c06deb4c14bee31ecc2524", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf003693a132c6e0fb2698a92cfa4832576303db46c06deb4c14bee31ecc2524", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf003693a132c6e0fb2698a92cfa4832576303db46c06deb4c14bee31ecc2524", kill_on_drop: false }` [INFO] [stdout] bf003693a132c6e0fb2698a92cfa4832576303db46c06deb4c14bee31ecc2524 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+7587ff3622fbec0abf6ac551eab5226f22f5d958" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6260935afa26298f0438e43b0845b18e5169dda0c2df9fc93f750611eb832116 [INFO] running `Command { std: "docker" "start" "-a" "6260935afa26298f0438e43b0845b18e5169dda0c2df9fc93f750611eb832116", kill_on_drop: false }` [INFO] [stderr] Compiling leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::iter::zip` [INFO] [stdout] --> src/leetcode_easy/arrays/shuffle_array.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::zip; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/leetcode_easy/arrays/decompress_run_length.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | for i in 0..nums[freq_index] { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/leetcode_easy/arrays/difference_of_sum.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut result = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sent` is never read [INFO] [stdout] --> src/leetcode_easy/arrays/max_number_of_word.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut sent = Vec::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/leetcode_easy/arrays/sum_odd_length_subarrays.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut result = (1..=arr.len()).step_by(2).fold(0, |acc, curr_len| { [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: function `array_strings_are_equal` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/array_strings_are_equal.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn array_strings_are_equal(word1: Vec, word2: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `array_strings_are_equal2` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/array_strings_are_equal.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn array_strings_are_equal2(word1: Vec, word2: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `balanced_string_split` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/balanced_strings.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn balanced_string_split(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_array` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/build_array_from_permutation.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn build_array(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_build_array` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/build_array_from_permutation.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn test_build_array() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_concatenation` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/concatenation_array.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_concatenation(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_concatenation2` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/concatenation_array.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn get_concatenation2(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_concatenation3` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/concatenation_array.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn get_concatenation3(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_consistent_strings` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/count_consistent_strings.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn count_consistent_strings(allowed: String, words: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_k_difference` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/count_k_difference.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn count_k_difference(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_matches` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/count_matches.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn count_matches(items: Vec>, rule_key: String, rule_value: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_target_array` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/create_target_array.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn create_target_array(nums: Vec, index: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_target_array2` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/create_target_array.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn create_target_array2(nums: Vec, index: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decompress_rl_elist` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/decompress_run_length.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn decompress_rl_elist(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `defang_i_paddr` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/defanging_ip_address.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn defang_i_paddr(address: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `difference_of_sum` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/difference_of_sum.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn difference_of_sum(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `difference_of_sum_2` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/difference_of_sum.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn difference_of_sum_2(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `final_value_after_operations` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/final_value_after_performing_operations.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn final_value_after_operations(operations: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/goal_parser.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn interpret(command: String) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `smaller_numbers_than_current` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/how_many_numbers_smaller_than_current_number.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn smaller_numbers_than_current(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_jewels_in_stones` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/jewels_and_stones.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn num_jewels_in_stones(jewels: String, stones: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `kids_with_candies` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/kids_with_greatest_number_candies.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn kids_with_candies(candies: Vec, extra_candies: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_of_last_word` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/length_of_last_word.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn length_of_last_word(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `most_words_found` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/max_number_of_word.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn most_words_found(sentences: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_identical_pairs` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/number_good_pairs.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn num_identical_pairs(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_one` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/plus_one.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn plus_one(mut digits: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_element` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/remove_value.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn remove_element(nums: &mut Vec, val: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `restore_string` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/restore_string.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn restore_string(s: String, indices: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `restore_string_2` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/restore_string.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn restore_string_2(s: String, indices: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maximum_wealth` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/richest_customer_wealth.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn maximum_wealth(accounts: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `running_sum` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/running_sum_array.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn running_sum(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shuffle` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/shuffle_array.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn shuffle(nums: Vec, n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_odd_length_subarrays` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/sum_odd_length_subarrays.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn sum_odd_length_subarrays(arr: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_odd_length_subarrays2` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/sum_odd_length_subarrays.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn sum_odd_length_subarrays2(arr: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `truncate_sentence` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/truncate_sentence.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn truncate_sentence(s: String, k: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/two_nums.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/valid_parentheses.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "6260935afa26298f0438e43b0845b18e5169dda0c2df9fc93f750611eb832116", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6260935afa26298f0438e43b0845b18e5169dda0c2df9fc93f750611eb832116", kill_on_drop: false }` [INFO] [stdout] 6260935afa26298f0438e43b0845b18e5169dda0c2df9fc93f750611eb832116 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+7587ff3622fbec0abf6ac551eab5226f22f5d958" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5c4576a22ae2ca46f6efce1c4c41542fd22ce128127b0124317b8ce29b249da [INFO] running `Command { std: "docker" "start" "-a" "d5c4576a22ae2ca46f6efce1c4c41542fd22ce128127b0124317b8ce29b249da", kill_on_drop: false }` [INFO] [stderr] Compiling leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::iter::zip` [INFO] [stdout] --> src/leetcode_easy/arrays/shuffle_array.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::zip; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/leetcode_easy/arrays/decompress_run_length.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | for i in 0..nums[freq_index] { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/leetcode_easy/arrays/difference_of_sum.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut result = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sent` is never read [INFO] [stdout] --> src/leetcode_easy/arrays/max_number_of_word.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut sent = Vec::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/leetcode_easy/arrays/sum_odd_length_subarrays.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut result = (1..=arr.len()).step_by(2).fold(0, |acc, curr_len| { [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: function `build_array` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/build_array_from_permutation.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn build_array(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_build_array` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/build_array_from_permutation.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn test_build_array() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `restore_string_2` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/restore_string.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn restore_string_2(s: String, indices: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/two_nums.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid` is never used [INFO] [stdout] --> src/leetcode_easy/arrays/valid_parentheses.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "d5c4576a22ae2ca46f6efce1c4c41542fd22ce128127b0124317b8ce29b249da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5c4576a22ae2ca46f6efce1c4c41542fd22ce128127b0124317b8ce29b249da", kill_on_drop: false }` [INFO] [stdout] d5c4576a22ae2ca46f6efce1c4c41542fd22ce128127b0124317b8ce29b249da