[INFO] cloning repository https://github.com/sfarqu/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/sfarqu/leetcode_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsfarqu%2Fleetcode_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsfarqu%2Fleetcode_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7ba4b0c6c89743c8c2c8661b6369e134f4f16878 [INFO] checking sfarqu/leetcode_rs against master#f21fbac535ab2c3bc50db20547f4d48477357103 for pr-143193 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsfarqu%2Fleetcode_rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sfarqu/leetcode_rs [INFO] finished tweaking git repo https://github.com/sfarqu/leetcode_rs [INFO] tweaked toml for git repo https://github.com/sfarqu/leetcode_rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sfarqu/leetcode_rs on toolchain f21fbac535ab2c3bc50db20547f4d48477357103 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sfarqu/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" "+f21fbac535ab2c3bc50db20547f4d48477357103" "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-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c38036b43de20eaf8a34b9e4dac3fef40b7d0089e4580e294dfa7e62a514ce8d [INFO] running `Command { std: "docker" "start" "-a" "c38036b43de20eaf8a34b9e4dac3fef40b7d0089e4580e294dfa7e62a514ce8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c38036b43de20eaf8a34b9e4dac3fef40b7d0089e4580e294dfa7e62a514ce8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c38036b43de20eaf8a34b9e4dac3fef40b7d0089e4580e294dfa7e62a514ce8d", kill_on_drop: false }` [INFO] [stdout] c38036b43de20eaf8a34b9e4dac3fef40b7d0089e4580e294dfa7e62a514ce8d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 528e4750ade7709d509ecc93532513e2e0b73a0f5bfed2a0f9437bcbb2babbd0 [INFO] running `Command { std: "docker" "start" "-a" "528e4750ade7709d509ecc93532513e2e0b73a0f5bfed2a0f9437bcbb2babbd0", kill_on_drop: false }` [INFO] [stderr] Checking leetcode_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `spiral_order` is never used [INFO] [stdout] --> src/spiral_order.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn spiral_order(matrix: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListNode` is never constructed [INFO] [stdout] --> src/middle_of_linked_list.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ListNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/middle_of_linked_list.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 17 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 18 | #[inline] [INFO] [stdout] 19 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `middle_node` is never used [INFO] [stdout] --> src/middle_of_linked_list.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn middle_node(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TreeNode` is never constructed [INFO] [stdout] --> src/maximum_depth_binary_tree.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/maximum_depth_binary_tree.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 16 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 17 | #[inline] [INFO] [stdout] 18 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/maximum_depth_binary_tree.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `max_depth` is never used [INFO] [stdout] --> src/maximum_depth_binary_tree.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TreeNode` is never constructed [INFO] [stdout] --> src/balancing_binary_search_tree.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/balancing_binary_search_tree.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 10 | #[inline] [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/balancing_binary_search_tree.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `balance_bst`, `get_list`, `get_list_alt`, and `build_tree` are never used [INFO] [stdout] --> src/balancing_binary_search_tree.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 23 | pub fn balance_bst(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn get_list(root: Option>>, mut list: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn get_list_alt(root: Option>>, list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn build_tree(list: &[i32]) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/maximum_depth_binary_tree.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 16 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 17 | #[inline] [INFO] [stdout] 18 | 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/balancing_binary_search_tree.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 10 | #[inline] [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_list_alt` is never used [INFO] [stdout] --> src/balancing_binary_search_tree.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | fn get_list_alt(root: Option>>, list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "528e4750ade7709d509ecc93532513e2e0b73a0f5bfed2a0f9437bcbb2babbd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "528e4750ade7709d509ecc93532513e2e0b73a0f5bfed2a0f9437bcbb2babbd0", kill_on_drop: false }` [INFO] [stdout] 528e4750ade7709d509ecc93532513e2e0b73a0f5bfed2a0f9437bcbb2babbd0