[INFO] cloning repository https://github.com/just-mitch/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/just-mitch/leetcode-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjust-mitch%2Fleetcode-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjust-mitch%2Fleetcode-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8b4ff5f8f11adf77460b1909a621df3ef5b80e4e [INFO] testing just-mitch/leetcode-rs against 1.76.0 for beta-1.77-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjust-mitch%2Fleetcode-rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/just-mitch/leetcode-rs on toolchain 1.76.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.76.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/just-mitch/leetcode-rs [INFO] finished tweaking git repo https://github.com/just-mitch/leetcode-rs [INFO] tweaked toml for git repo https://github.com/just-mitch/leetcode-rs written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/just-mitch/leetcode-rs 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" "+1.76.0" "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] testing just-mitch/leetcode-rs against beta-2024-02-10 for beta-1.77-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjust-mitch%2Fleetcode-rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/just-mitch/leetcode-rs on toolchain beta-2024-02-10 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-02-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/just-mitch/leetcode-rs [INFO] finished tweaking git repo https://github.com/just-mitch/leetcode-rs [INFO] tweaked toml for git repo https://github.com/just-mitch/leetcode-rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/just-mitch/leetcode-rs 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" "+beta-2024-02-10" "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] testing just-mitch/leetcode-rs against beta-2024-02-10 for beta-1.77-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjust-mitch%2Fleetcode-rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/just-mitch/leetcode-rs on toolchain beta-2024-02-10 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-02-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/just-mitch/leetcode-rs [INFO] finished tweaking git repo https://github.com/just-mitch/leetcode-rs [INFO] tweaked toml for git repo https://github.com/just-mitch/leetcode-rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/just-mitch/leetcode-rs 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" "+beta-2024-02-10" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+beta-2024-02-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b019eaff17d506b10c0607d8b66ea1a56df765dd35f01b62b81595986123b25f [INFO] running `Command { std: "docker" "start" "-a" "b019eaff17d506b10c0607d8b66ea1a56df765dd35f01b62b81595986123b25f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b019eaff17d506b10c0607d8b66ea1a56df765dd35f01b62b81595986123b25f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b019eaff17d506b10c0607d8b66ea1a56df765dd35f01b62b81595986123b25f", kill_on_drop: false }` [INFO] [stdout] b019eaff17d506b10c0607d8b66ea1a56df765dd35f01b62b81595986123b25f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2024-02-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7100dbc39414a022b4295f1166fcdf9ce5e5fbe3b35bd49cf2663110513c3292 [INFO] running `Command { std: "docker" "start" "-a" "7100dbc39414a022b4295f1166fcdf9ce5e5fbe3b35bd49cf2663110513c3292", kill_on_drop: false }` [INFO] [stderr] Compiling leetcode-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated items `new`, `append`, and `from_vec` are never used [INFO] [stdout] --> src/data_structures/list_node.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 7 | impl ListNode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 8 | #[inline] [INFO] [stdout] 9 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn append(&mut self, val: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn from_vec(vec: Vec) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/two_sum/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/two_sum/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/merge_two_sorted_lists/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `merge_two_lists` is never used [INFO] [stdout] --> src/merge_two_sorted_lists/mod.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn merge_two_lists(list1: Option>, list2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/generate_parentheses/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate_parenthesis` is never used [INFO] [stdout] --> src/generate_parentheses/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/swap_nodes_in_pairs/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `swap_pairs` is never used [INFO] [stdout] --> src/swap_nodes_in_pairs/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn swap_pairs(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/remove_element/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_element` is never used [INFO] [stdout] --> src/remove_element/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn remove_element(nums: &mut Vec, val: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/find_the_index_of_the_first_occurrence_in_a_string/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `str_str` is never used [INFO] [stdout] --> src/find_the_index_of_the_first_occurrence_in_a_string/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn str_str(haystack: String, needle: String) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/next_permutation/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `next_permutation` is never used [INFO] [stdout] --> src/next_permutation/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn next_permutation(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/unique_paths/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `unique_paths` is never used [INFO] [stdout] --> src/unique_paths/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn unique_paths(m: i32, n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.12s [INFO] running `Command { std: "docker" "inspect" "7100dbc39414a022b4295f1166fcdf9ce5e5fbe3b35bd49cf2663110513c3292", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7100dbc39414a022b4295f1166fcdf9ce5e5fbe3b35bd49cf2663110513c3292", kill_on_drop: false }` [INFO] [stdout] 7100dbc39414a022b4295f1166fcdf9ce5e5fbe3b35bd49cf2663110513c3292 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2024-02-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4fcbc87102550c44a3bfefb5cb81e574f60adb5b7e845ebeb9e9917035daa430 [INFO] running `Command { std: "docker" "start" "-a" "4fcbc87102550c44a3bfefb5cb81e574f60adb5b7e845ebeb9e9917035daa430", kill_on_drop: false }` [INFO] [stdout] warning: associated items `new`, `append`, and `from_vec` are never used [INFO] [stdout] --> src/data_structures/list_node.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 7 | impl ListNode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 8 | #[inline] [INFO] [stdout] 9 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn append(&mut self, val: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn from_vec(vec: Vec) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/two_sum/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/two_sum/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/merge_two_sorted_lists/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `merge_two_lists` is never used [INFO] [stdout] --> src/merge_two_sorted_lists/mod.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn merge_two_lists(list1: Option>, list2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/generate_parentheses/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate_parenthesis` is never used [INFO] [stdout] --> src/generate_parentheses/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/swap_nodes_in_pairs/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `swap_pairs` is never used [INFO] [stdout] --> src/swap_nodes_in_pairs/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn swap_pairs(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/remove_element/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_element` is never used [INFO] [stdout] --> src/remove_element/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn remove_element(nums: &mut Vec, val: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/find_the_index_of_the_first_occurrence_in_a_string/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `str_str` is never used [INFO] [stdout] --> src/find_the_index_of_the_first_occurrence_in_a_string/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn str_str(haystack: String, needle: String) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/next_permutation/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `next_permutation` is never used [INFO] [stdout] --> src/next_permutation/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn next_permutation(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/unique_paths/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `unique_paths` is never used [INFO] [stdout] --> src/unique_paths/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn unique_paths(m: i32, n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling leetcode-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.64s [INFO] running `Command { std: "docker" "inspect" "4fcbc87102550c44a3bfefb5cb81e574f60adb5b7e845ebeb9e9917035daa430", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fcbc87102550c44a3bfefb5cb81e574f60adb5b7e845ebeb9e9917035daa430", kill_on_drop: false }` [INFO] [stdout] 4fcbc87102550c44a3bfefb5cb81e574f60adb5b7e845ebeb9e9917035daa430 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2024-02-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f7960ec50ef5d8e1a82e23957184f2f1e600ca72cc3fc8d3129a4d22a016b501 [INFO] running `Command { std: "docker" "start" "-a" "f7960ec50ef5d8e1a82e23957184f2f1e600ca72cc3fc8d3129a4d22a016b501", kill_on_drop: false }` [INFO] [stderr] warning: associated items `new`, `append`, and `from_vec` are never used [INFO] [stderr] --> src/data_structures/list_node.rs:9:10 [INFO] [stderr] | [INFO] [stderr] 7 | impl ListNode { [INFO] [stderr] | ------------- associated items in this implementation [INFO] [stderr] 8 | #[inline] [INFO] [stderr] 9 | pub fn new(val: i32) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 16 | pub fn append(&mut self, val: i32) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 24 | pub fn from_vec(vec: Vec) -> Option> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Solution` is never constructed [INFO] [stderr] --> src/two_sum/mod.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `two_sum` is never used [INFO] [stderr] --> src/two_sum/mod.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 4 | impl Solution { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 5 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Solution` is never constructed [INFO] [stderr] --> src/merge_two_sorted_lists/mod.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct Solution {} [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `merge_two_lists` is never used [INFO] [stderr] --> src/merge_two_sorted_lists/mod.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 6 | impl Solution { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 7 | pub fn merge_two_lists(list1: Option>, list2: Option>) -> Option> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Solution` is never constructed [INFO] [stderr] --> src/generate_parentheses/mod.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `generate_parenthesis` is never used [INFO] [stderr] --> src/generate_parentheses/mod.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 4 | impl Solution { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 5 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Solution` is never constructed [INFO] [stderr] --> src/swap_nodes_in_pairs/mod.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `swap_pairs` is never used [INFO] [stderr] --> src/swap_nodes_in_pairs/mod.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 3 | impl Solution { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 4 | pub fn swap_pairs(head: Option>) -> Option> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Solution` is never constructed [INFO] [stderr] --> src/remove_element/mod.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `remove_element` is never used [INFO] [stderr] --> src/remove_element/mod.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 4 | impl Solution { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 5 | pub fn remove_element(nums: &mut Vec, val: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Solution` is never constructed [INFO] [stderr] --> src/find_the_index_of_the_first_occurrence_in_a_string/mod.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `str_str` is never used [INFO] [stderr] --> src/find_the_index_of_the_first_occurrence_in_a_string/mod.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 3 | impl Solution { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 4 | pub fn str_str(haystack: String, needle: String) -> i32 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Solution` is never constructed [INFO] [stderr] --> src/next_permutation/mod.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `next_permutation` is never used [INFO] [stderr] --> src/next_permutation/mod.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 3 | impl Solution { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 4 | pub fn next_permutation(nums: &mut Vec) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Solution` is never constructed [INFO] [stderr] --> src/unique_paths/mod.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `unique_paths` is never used [INFO] [stderr] --> src/unique_paths/mod.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 3 | impl Solution { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 4 | pub fn unique_paths(m: i32, n: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `leetcode-rs` (lib) generated 17 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/leetcode_rs-4bf55fea8a9fc0cd) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test find_the_index_of_the_first_occurrence_in_a_string::tests::test_28 ... ok [INFO] [stdout] test merge_two_sorted_lists::tests::test_1 ... ok [INFO] [stdout] test next_permutation::tests::test_2 ... ok [INFO] [stdout] test next_permutation::tests::test_1 ... ok [INFO] [stdout] test two_sum::tests::test_3 ... ok [INFO] [stdout] test two_sum::tests::test_4 ... ok [INFO] [stdout] test next_permutation::tests::test_4 ... ok [INFO] [stdout] test unique_paths::tests::test_62 ... ok [INFO] [stdout] test two_sum::tests::test_1 ... ok [INFO] [stdout] test generate_parentheses::tests::test_22 ... ok [INFO] [stdout] test swap_nodes_in_pairs::tests::test_1 ... ok [INFO] [stdout] test next_permutation::tests::test_3 ... ok [INFO] [stdout] test remove_element::tests::test_27 ... ok [INFO] [stdout] test two_sum::tests::test_2 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Doc-tests leetcode-rs [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f7960ec50ef5d8e1a82e23957184f2f1e600ca72cc3fc8d3129a4d22a016b501", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7960ec50ef5d8e1a82e23957184f2f1e600ca72cc3fc8d3129a4d22a016b501", kill_on_drop: false }` [INFO] [stdout] f7960ec50ef5d8e1a82e23957184f2f1e600ca72cc3fc8d3129a4d22a016b501