[INFO] cloning repository https://github.com/Zapix/leetcode-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Zapix/leetcode-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZapix%2Fleetcode-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZapix%2Fleetcode-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 83ed42c8827ca09576ad362cc3f0c4f3c7fa494c [INFO] checking Zapix/leetcode-rust/83ed42c8827ca09576ad362cc3f0c4f3c7fa494c against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZapix%2Fleetcode-rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Zapix/leetcode-rust on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Zapix/leetcode-rust [INFO] finished tweaking git repo https://github.com/Zapix/leetcode-rust [INFO] tweaked toml for git repo https://github.com/Zapix/leetcode-rust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Zapix/leetcode-rust 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 563d5335c82b9335ad621e2cc5196cc635543f39a63fe8546a904590a6247b2a [INFO] running `Command { std: "docker" "start" "-a" "563d5335c82b9335ad621e2cc5196cc635543f39a63fe8546a904590a6247b2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "563d5335c82b9335ad621e2cc5196cc635543f39a63fe8546a904590a6247b2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "563d5335c82b9335ad621e2cc5196cc635543f39a63fe8546a904590a6247b2a", kill_on_drop: false }` [INFO] [stdout] 563d5335c82b9335ad621e2cc5196cc635543f39a63fe8546a904590a6247b2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29fb40d886397b4901a3fd0724de6941ddc23d1966f4094027d7e0ce522f679f [INFO] running `Command { std: "docker" "start" "-a" "29fb40d886397b4901a3fd0724de6941ddc23d1966f4094027d7e0ce522f679f", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking leetcode v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/problems/bus_routes.rs (1 fix) [INFO] [stderr] Fixed src/problems/uncommon_words_from_two_sentences.rs (1 fix) [INFO] [stderr] Fixed src/problems/binary_tree_postorder_traversal.rs (1 fix) [INFO] [stderr] Fixed src/problems/maximum_element_after_decrementing_and_rearranging.rs (1 fix) [INFO] [stderr] Fixed src/problems/range_sum_of_sorted_sub_arrays_sums.rs (1 fix) [INFO] [stderr] Fixed src/problems/spiral_matrix_iv.rs (1 fix) [INFO] [stderr] Fixed src/problems/kth_smallest_pair_distance.rs (1 fix) [INFO] [stderr] Fixed src/problems/find_closest_palindrome.rs (1 fix) [INFO] [stderr] Fixed src/problems/find_unique_binary_string.rs (1 fix) [INFO] [stderr] Fixed src/problems/split_linked_list_into_parts.rs (1 fix) [INFO] [stderr] Fixed src/problems/longest_substring_with_even_vowels.rs (2 fixes) [INFO] [stderr] Fixed src/problems/modify_graph_edge_weights.rs (1 fix) [INFO] [stderr] Fixed src/problems/sum_of_digits_of_string.rs (1 fix) [INFO] [stderr] Fixed src/problems/stranger_printer.rs (3 fixes) [INFO] [stderr] Fixed src/problems/find_the_length_of_the_longest_common_prefix.rs (1 fix) [INFO] [stderr] Fixed src/problems/max_distance_in_array_v2.rs (1 fix) [INFO] [stdout] warning: unknown lint: `daed_code` [INFO] [stdout] --> src/problems/find_closest_palindrome.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | #[allow(daed_code)] [INFO] [stdout] | ^^^^^^^^^ help: did you mean: `dead_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `daed_code` [INFO] [stdout] --> src/problems/integer_to_english_words.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | #[allow(daed_code)] [INFO] [stdout] | ^^^^^^^^^ help: did you mean: `dead_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnt` [INFO] [stdout] --> src/problems/minimum_number_of_days_to_disconnect_islinad.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let cnt= Self::count_islands(&grid); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cnt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problems/remove_stones_to_minimize_total.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | for i in 0..k { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problems/ugly_number_ii.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | for i in 0..n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/binary_tree_inorder_traversal.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 15 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 16 | #[inline] [INFO] [stdout] 17 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/binary_tree_postorder_traversal.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 16 | #[inline] [INFO] [stdout] 17 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `generate_palindrome` and `nearest_palindromic` are never used [INFO] [stdout] --> src/problems/find_closest_palindrome.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 6 | [INFO] [stdout] 7 | fn generate_palindrome(half: i64, even: bool) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn nearest_palindromic(n: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `parse_binary` and `find_different_binary_string` are never used [INFO] [stdout] --> src/problems/find_unique_binary_string.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 5 | pub fn parse_binary(s: &String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn find_different_binary_string(nums: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_counter`, `includes`, and `count_characters` are never used [INFO] [stdout] --> src/problems/find_words_than_can_be_formed.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 7 | [INFO] [stdout] 8 | pub fn get_counter(chars: &String) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn includes(a: &HashMap, b: &HashMap) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn count_characters(words: Vec, chars: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/problems/integer_to_english_words.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 8 | [INFO] [stdout] 9 | fn by_digits(num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn by_group_of_3(digits: Vec) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn get_digit_word(value: &i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn get_teen_word(value: &i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn get_tens_word(value: &i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn group_by_3_to_words(group: Ref>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn number_to_words(num: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/linked_list_in_binary_tree.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/linked_list_in_binary_tree.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 25 | #[inline] [INFO] [stdout] 26 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `maximum_element_after_decrementing_and_rearranging` is never used [INFO] [stdout] --> src/problems/maximum_element_after_decrementing_and_rearranging.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn maximum_element_after_decrementing_and_rearranging(arr: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `min_pair_sum` is never used [INFO] [stdout] --> src/problems/minimize_maximum_pair_sum_in_array.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn min_pair_sum(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/spiral_matrix_iv.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListNode` is never constructed [INFO] [stdout] --> src/problems/split_linked_list_into_parts.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct ListNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/split_linked_list_into_parts.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `split_list_to_parts` is never used [INFO] [stdout] --> src/problems/split_linked_list_into_parts.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 19 | pub fn split_list_to_parts(head: Option>, k: i32) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/problems/delete_nodes_form_linked_list.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | while let Some(next_box) = curr.next.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^---------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/problems/delete_nodes_form_linked_list.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/problems/spiral_matrix_iv.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | while let Some(node) = current { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/problems/spiral_matrix_iv.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Solution` [INFO] [stdout] --> src/problems/sum_of_digits_of_string.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | let result = Solution::get_lucky(s, k); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Solution` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::array_pair_sum::Solution; [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::longest_common_prefix::Solution; [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::reverse_string::Solution; [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::sum_of_digits_of_string::Solution; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Solution` [INFO] [stdout] --> src/problems/sum_of_digits_of_string.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | let result = Solution::get_lucky(s, k); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Solution` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::array_pair_sum::Solution; [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::longest_common_prefix::Solution; [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::reverse_string::Solution; [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::sum_of_digits_of_string::Solution; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Solution` [INFO] [stdout] --> src/problems/sum_of_digits_of_string.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | let result = Solution::get_lucky(s, k); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Solution` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::array_pair_sum::Solution; [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::longest_common_prefix::Solution; [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::reverse_string::Solution; [INFO] [stdout] | [INFO] [stdout] 41 + use crate::problems::sum_of_digits_of_string::Solution; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `daed_code` [INFO] [stdout] --> src/problems/find_closest_palindrome.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | #[allow(daed_code)] [INFO] [stdout] | ^^^^^^^^^ help: did you mean: `dead_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `daed_code` [INFO] [stdout] --> src/problems/integer_to_english_words.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | #[allow(daed_code)] [INFO] [stdout] | ^^^^^^^^^ help: did you mean: `dead_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problems/insert_gcd_in_linked_list.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let mut current = &mut head; [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: `cnt` [INFO] [stdout] --> src/problems/minimum_number_of_days_to_disconnect_islinad.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let cnt= Self::count_islands(&grid); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cnt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problems/remove_stones_to_minimize_total.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | for i in 0..k { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problems/ugly_number_ii.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | for i in 0..n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (bin "leetcode" test) due to 4 previous errors; 6 warnings emitted [INFO] [stdout] error: aborting due to 3 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [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" "29fb40d886397b4901a3fd0724de6941ddc23d1966f4094027d7e0ce522f679f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29fb40d886397b4901a3fd0724de6941ddc23d1966f4094027d7e0ce522f679f", kill_on_drop: false }` [INFO] [stdout] 29fb40d886397b4901a3fd0724de6941ddc23d1966f4094027d7e0ce522f679f