[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 try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsfarqu%2Fleetcode_rs" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sfarqu/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/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-1/source/Cargo.toml [INFO] crate git repo https://github.com/sfarqu/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-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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] 943ea39037fd7e997239ad791309fae2a842725050c26353308966416b0d8144 [INFO] running `Command { std: "docker" "start" "-a" "943ea39037fd7e997239ad791309fae2a842725050c26353308966416b0d8144", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "943ea39037fd7e997239ad791309fae2a842725050c26353308966416b0d8144", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "943ea39037fd7e997239ad791309fae2a842725050c26353308966416b0d8144", kill_on_drop: false }` [INFO] [stdout] 943ea39037fd7e997239ad791309fae2a842725050c26353308966416b0d8144 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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] 4db9a930fddb6fbdccf449106b390532cacae32b0eed18959212c40c32462373 [INFO] running `Command { std: "docker" "start" "-a" "4db9a930fddb6fbdccf449106b390532cacae32b0eed18959212c40c32462373", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking leetcode_rs v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] warning: function is never used: `spiral_order` [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: associated function is never used: `new` [INFO] [stdout] --> src/middle_of_linked_list.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `middle_node` [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: associated function is never used: `new` [INFO] [stdout] --> src/maximum_depth_binary_tree.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [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 is never used: `max_depth` [INFO] [stdout] --> src/maximum_depth_binary_tree.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [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 function is never used: `balance_bst` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn balance_bst(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_list` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn get_list(root: Option>>, mut list: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_list_alt` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn get_list_alt(root: Option>>, list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_tree` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | fn build_tree(list: &[i32]) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/maximum_depth_binary_tree.rs:18:10 [INFO] [stdout] | [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 is never used: `new` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_list_alt` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn get_list_alt(root: Option>>, list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.77s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking leetcode_rs v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: function is never used: `spiral_order` [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: associated function is never used: `new` [INFO] [stdout] --> src/middle_of_linked_list.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `middle_node` [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: associated function is never used: `new` [INFO] [stdout] --> src/maximum_depth_binary_tree.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [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 is never used: `max_depth` [INFO] [stdout] --> src/maximum_depth_binary_tree.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [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 function is never used: `balance_bst` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn balance_bst(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_list` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn get_list(root: Option>>, mut list: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_list_alt` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn get_list_alt(root: Option>>, list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_tree` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | fn build_tree(list: &[i32]) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/maximum_depth_binary_tree.rs:18:10 [INFO] [stdout] | [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 is never used: `new` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_list_alt` [INFO] [stdout] --> src/balancing_binary_search_tree.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn get_list_alt(root: Option>>, list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "4db9a930fddb6fbdccf449106b390532cacae32b0eed18959212c40c32462373", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4db9a930fddb6fbdccf449106b390532cacae32b0eed18959212c40c32462373", kill_on_drop: false }` [INFO] [stdout] 4db9a930fddb6fbdccf449106b390532cacae32b0eed18959212c40c32462373