[INFO] cloning repository https://github.com/MateuszSapala/rust-leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MateuszSapala/rust-leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMateuszSapala%2Frust-leetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMateuszSapala%2Frust-leetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6540fa831e43247cf8e739a17f9ff19bfb877fb9 [INFO] checking MateuszSapala/rust-leetcode against master#b0696a5160711c068cb1f01b7437db7990d15750 for pr-121848 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMateuszSapala%2Frust-leetcode" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MateuszSapala/rust-leetcode on toolchain b0696a5160711c068cb1f01b7437db7990d15750 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MateuszSapala/rust-leetcode [INFO] finished tweaking git repo https://github.com/MateuszSapala/rust-leetcode [INFO] tweaked toml for git repo https://github.com/MateuszSapala/rust-leetcode written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MateuszSapala/rust-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" "+b0696a5160711c068cb1f01b7437db7990d15750" "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] checking MateuszSapala/rust-leetcode against try#bfe97fcae016881ad333f0ff8cea2cadb9cf136c for pr-121848 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMateuszSapala%2Frust-leetcode" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MateuszSapala/rust-leetcode on toolchain bfe97fcae016881ad333f0ff8cea2cadb9cf136c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MateuszSapala/rust-leetcode [INFO] finished tweaking git repo https://github.com/MateuszSapala/rust-leetcode [INFO] tweaked toml for git repo https://github.com/MateuszSapala/rust-leetcode written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MateuszSapala/rust-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" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking MateuszSapala/rust-leetcode against try#bfe97fcae016881ad333f0ff8cea2cadb9cf136c for pr-121848 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMateuszSapala%2Frust-leetcode" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MateuszSapala/rust-leetcode on toolchain bfe97fcae016881ad333f0ff8cea2cadb9cf136c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MateuszSapala/rust-leetcode [INFO] finished tweaking git repo https://github.com/MateuszSapala/rust-leetcode [INFO] tweaked toml for git repo https://github.com/MateuszSapala/rust-leetcode written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MateuszSapala/rust-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" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1e6cf7c9940a8c48c33432fe5cd038b2ecac0cdfc40f3771653c49c155ccfe8f [INFO] running `Command { std: "docker" "start" "-a" "1e6cf7c9940a8c48c33432fe5cd038b2ecac0cdfc40f3771653c49c155ccfe8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1e6cf7c9940a8c48c33432fe5cd038b2ecac0cdfc40f3771653c49c155ccfe8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e6cf7c9940a8c48c33432fe5cd038b2ecac0cdfc40f3771653c49c155ccfe8f", kill_on_drop: false }` [INFO] [stdout] 1e6cf7c9940a8c48c33432fe5cd038b2ecac0cdfc40f3771653c49c155ccfe8f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6dcbdc4183df82712988c3580b747eb3b8d2f8178d16483a697dddbf4fb55bae [INFO] running `Command { std: "docker" "start" "-a" "6dcbdc4183df82712988c3580b747eb3b8d2f8178d16483a697dddbf4fb55bae", kill_on_drop: false }` [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/find_all_groups_of_farmland.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/find_all_groups_of_farmland.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_palindrome` is never used [INFO] [stdout] --> src/valid_palindrome.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_palindrome(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_binary` is never used [INFO] [stdout] --> src/add_binary.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add_binary(a: String, b: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `single_number` is never used [INFO] [stdout] --> src/single_number.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn single_number(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_win_nim` is never used [INFO] [stdout] --> src/nim_game.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn can_win_nim(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `word_pattern` is never used [INFO] [stdout] --> src/word_pattern.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn word_pattern(pattern: String, s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_max_consecutive_ones` is never used [INFO] [stdout] --> src/max_consecutive_ones.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_max_consecutive_ones(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_length_of_lcis` is never used [INFO] [stdout] --> src/longest_continuous_increasing_subsequence.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_length_of_lcis(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_product` is never used [INFO] [stdout] --> src/maximum_product_of_two_elements_in_an_array.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_product(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_ones_segment` is never used [INFO] [stdout] --> src/check_if_binary_string_has_at_most_one_segment_of_ones.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn check_ones_segment(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_quadruplets` is never used [INFO] [stdout] --> src/count_special_quadruplets.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn count_quadruplets(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `four_sum` is never used [INFO] [stdout] --> src/four_sum.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn four_sum(mut nums: Vec, target: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FOREST` is never used [INFO] [stdout] --> src/find_all_groups_of_farmland.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const FOREST: i32 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FARMLAND` is never used [INFO] [stdout] --> src/find_all_groups_of_farmland.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const FARMLAND: i32 = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_farmland` is never used [INFO] [stdout] --> src/find_all_groups_of_farmland.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn find_farmland(land: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/docode_string.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `decode_string` is never used [INFO] [stdout] --> src/docode_string.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn decode_string(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/valid_parenthesis_string.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_valid_string` is never used [INFO] [stdout] --> src/valid_parenthesis_string.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | pub fn check_valid_string(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/group_the_people_given_the_group_size_they_belong_to.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `group_the_people` is never used [INFO] [stdout] --> src/group_the_people_given_the_group_size_they_belong_to.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | pub fn group_the_people(group_sizes: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/equal_sum_arrays_with_minimum_number_of_operations.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `min_operations`, `vec_sum`, and `subtract_from_sum` are never used [INFO] [stdout] --> src/equal_sum_arrays_with_minimum_number_of_operations.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 9 | pub fn min_operations(nums1: Vec, nums2: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn vec_sum(nums: Vec) -> (Vec, i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn subtract_from_sum(nums: &mut Vec, nums_sum: &mut i32, diff: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/valid_triangle_number.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `triangle_number` is never used [INFO] [stdout] --> src/valid_triangle_number.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | pub fn triangle_number(mut nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/minimum_suffix_flips.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `min_flips` is never used [INFO] [stdout] --> src/minimum_suffix_flips.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn min_flips(target: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/rotate_image.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `rotate` is never used [INFO] [stdout] --> src/rotate_image.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn rotate(matrix: &mut Vec>) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/reverse_substrings_between_each_pair_of_parentheses.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `reverse_parentheses` is never used [INFO] [stdout] --> src/reverse_substrings_between_each_pair_of_parentheses.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn reverse_parentheses(mut s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "6dcbdc4183df82712988c3580b747eb3b8d2f8178d16483a697dddbf4fb55bae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6dcbdc4183df82712988c3580b747eb3b8d2f8178d16483a697dddbf4fb55bae", kill_on_drop: false }` [INFO] [stdout] 6dcbdc4183df82712988c3580b747eb3b8d2f8178d16483a697dddbf4fb55bae