[INFO] cloning repository https://github.com/jit-y/leetcode-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jit-y/leetcode-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjit-y%2Fleetcode-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjit-y%2Fleetcode-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0c46c9992516dfb38c2af97014c54123625e3d6b [INFO] checking jit-y/leetcode-rs against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjit-y%2Fleetcode-rs" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jit-y/leetcode-rs on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jit-y/leetcode-rs [INFO] finished tweaking git repo https://github.com/jit-y/leetcode-rs [INFO] tweaked toml for git repo https://github.com/jit-y/leetcode-rs written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/jit-y/leetcode-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b8b343c43e70777572eade8500e95a0953688b79d40fa688f5c076e55f8e8cdc [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" "b8b343c43e70777572eade8500e95a0953688b79d40fa688f5c076e55f8e8cdc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b8b343c43e70777572eade8500e95a0953688b79d40fa688f5c076e55f8e8cdc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8b343c43e70777572eade8500e95a0953688b79d40fa688f5c076e55f8e8cdc", kill_on_drop: false }` [INFO] [stdout] b8b343c43e70777572eade8500e95a0953688b79d40fa688f5c076e55f8e8cdc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f348cde6bbc64a4a6be2ee6db2567539b3d3918b5a60e5a0f54a6a8a97b4c5d4 [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" "f348cde6bbc64a4a6be2ee6db2567539b3d3918b5a60e5a0f54a6a8a97b4c5d4", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking leetcode v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/replace_elements_with_greatest_element_on_the_right_side.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/number_complement.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/lemonade_change.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/convert_sorted_array_to_binary_search_tree.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/score_of_parentheses.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/daily_temperatures.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/unique_email_addresses.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/create_target_array_in_the_given_order.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/build_an_array_with_stack_operations.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/find_numbers_with_even_number_of_digits.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/friend_circles.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/increasing_order_search_tree.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/how_many_numbers_are_smaller_than_current_number.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/number_of_steps_to_reduce_a_number_to_zero.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/number_of_students_doing_homework_at_a_given_time.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/number_of_line_to_write_string.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/minimum_index_sum_of_two_lists.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/goat_latin.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/best_time_to_buy_and_sell_stock_ii.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/number_of_segments_in_a_string.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/maximum_product_of_three_numbers.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/subdomain_visit_count.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/insert_into_a_binary_search_tree.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/convert_bst_to_greater_tree.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/shortest_completing_word.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/kids_with_the_greatest_number_of_candies.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/flipping_an_image.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/minimum_ascii_delete_sum_for_two_strings.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/balanced_binary_tree.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/partition_labels.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/max_chunks_to_make_sorted.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/destination_city.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/find_n_unique_integer_sum_up_to_zero.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/binary_tree_level_order_traversal_ii.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/subtract_the_product_and_sum_of_digits_of_an_integer.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/average_of_levels_in_binary_tree.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/largest_triangle_area.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/groups_of_special_equivalent_strings.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/longest_palindrome.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/minimum_add_to_make_parentheses_valid.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/find_largest_value_in_each_tree_row.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/combination_sum.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/minimum_moves_to_equal_array_elements.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/binary_search.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/key_and_rooms.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/convert_binary_number_in_a_linked_list_to_integer.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/minimum_distance_between_bst_nodes.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/pairs_of_songs_with_total_durations_divisible_by_60.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/custom_sort_string.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/merge_two_binary_trees.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/find_lucky_number_in_an_array.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/arranging_coins.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/find_error_nums.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/count_substrings.rs from 2018 edition to 2021 [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> examples/minimum_add_to_make_parentheses_valid.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_add_to_make_valid` [INFO] [stdout] --> examples/minimum_add_to_make_parentheses_valid.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn min_add_to_make_valid(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/minimum_time_visiting_all_points.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/find_and_replace_pattern.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/optimal_division.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/digree_of_an_array.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/prime_number_of_set_bits_in_binary_representation.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/construct_the_rectangle.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/number_of_1_bits.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/bulls_and_cows.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/consecutive_characters.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/sort_characters_by_frequency.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/convert_number_to_a_hexadecimal.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/maximum_average_subarray_i.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/path_sum_iii.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/add_strings.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/rotated_digits.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/max_consecutive_ones.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/sort_integers_by_the_number_of_1_bits.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/sort_array_by_parity_ii.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/fizz_buzz.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/maximum_69_number.rs from 2018 edition to 2021 [INFO] [stdout] warning: method `hammingWeight` should have a snake case name [INFO] [stdout] --> examples/number_of_1_bits.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hammingWeight(n: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `hamming_weight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 24.98s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking leetcode v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> examples/minimum_add_to_make_parentheses_valid.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_add_to_make_valid` [INFO] [stdout] --> examples/minimum_add_to_make_parentheses_valid.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn min_add_to_make_valid(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hammingWeight` should have a snake case name [INFO] [stdout] --> examples/number_of_1_bits.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hammingWeight(n: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `hamming_weight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.47s [INFO] running `Command { std: "docker" "inspect" "f348cde6bbc64a4a6be2ee6db2567539b3d3918b5a60e5a0f54a6a8a97b4c5d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f348cde6bbc64a4a6be2ee6db2567539b3d3918b5a60e5a0f54a6a8a97b4c5d4", kill_on_drop: false }` [INFO] [stdout] f348cde6bbc64a4a6be2ee6db2567539b3d3918b5a60e5a0f54a6a8a97b4c5d4