[INFO] cloning repository https://github.com/Leonqn/leetcode-solutions [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Leonqn/leetcode-solutions" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeonqn%2Fleetcode-solutions", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeonqn%2Fleetcode-solutions'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 464b43cf4432d3b82299ea2656b9b4bace1e3b90 [INFO] checking Leonqn/leetcode-solutions/464b43cf4432d3b82299ea2656b9b4bace1e3b90 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeonqn%2Fleetcode-solutions" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Leonqn/leetcode-solutions on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Leonqn/leetcode-solutions [INFO] finished tweaking git repo https://github.com/Leonqn/leetcode-solutions [INFO] tweaked toml for git repo https://github.com/Leonqn/leetcode-solutions written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Leonqn/leetcode-solutions 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 05dc87bacb1bf056f6da45eb866c60de766cd88229ee3a5c782a2a9effd35a82 [INFO] running `Command { std: "docker" "start" "-a" "05dc87bacb1bf056f6da45eb866c60de766cd88229ee3a5c782a2a9effd35a82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "05dc87bacb1bf056f6da45eb866c60de766cd88229ee3a5c782a2a9effd35a82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05dc87bacb1bf056f6da45eb866c60de766cd88229ee3a5c782a2a9effd35a82", kill_on_drop: false }` [INFO] [stdout] 05dc87bacb1bf056f6da45eb866c60de766cd88229ee3a5c782a2a9effd35a82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a9bb48bbd135592d0da8200b624cdb7dcb3d5dfadc1a7f6d73fd20547318f8d [INFO] running `Command { std: "docker" "start" "-a" "6a9bb48bbd135592d0da8200b624cdb7dcb3d5dfadc1a7f6d73fd20547318f8d", kill_on_drop: false }` [INFO] [stderr] Checking top-questions v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BTreeSet` [INFO] [stdout] --> src/medium/array_and_strings.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeSet, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/main.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 `set_zeroes` is never used [INFO] [stdout] --> src/medium/array_and_strings.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 13 | pub fn set_zeroes(matrix: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `group_anagrams` is never used [INFO] [stdout] --> src/medium/array_and_strings.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 76 | pub fn group_anagrams(strs: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `length_of_longest_substring` is never used [INFO] [stdout] --> src/medium/array_and_strings.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 124 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 125 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `increasing_triplet` is never used [INFO] [stdout] --> src/medium/array_and_strings.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 170 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 171 | pub fn increasing_triplet(_nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from_iter` are never used [INFO] [stdout] --> src/medium/linked_list.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl ListNode { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 10 | #[inline] [INFO] [stdout] 11 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn from_iter(i: impl IntoIterator) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_two_numbers` is never used [INFO] [stdout] --> src/medium/linked_list.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 28 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `odd_even_list` is never used [INFO] [stdout] --> src/medium/linked_list.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 87 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 88 | pub fn odd_even_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from_iterator` are never used [INFO] [stdout] --> src/medium/graphs.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl TreeNode { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 13 | #[inline] [INFO] [stdout] 14 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn from_iterator( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `inorder_traversal` is never used [INFO] [stdout] --> src/medium/graphs.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 57 | pub fn inorder_traversal(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zigzag_level_order` is never used [INFO] [stdout] --> src/medium/graphs.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 96 | pub fn zigzag_level_order(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build_tree` is never used [INFO] [stdout] --> src/medium/graphs.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 150 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 151 | pub fn build_tree(preorder: Vec, inorder: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `kth_smallest` is never used [INFO] [stdout] --> src/medium/graphs.rs:196:12 [INFO] [stdout] | [INFO] [stdout] 195 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 196 | pub fn kth_smallest(root: Option>>, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `num_islands` is never used [INFO] [stdout] --> src/medium/graphs.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 245 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 246 | pub fn num_islands(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `letter_combinations` is never used [INFO] [stdout] --> src/medium/backtracking.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn letter_combinations(digits: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate_parenthesis` is never used [INFO] [stdout] --> src/medium/backtracking.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 73 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `permute` is never used [INFO] [stdout] --> src/medium/backtracking.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 126 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 127 | pub fn permute(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `subsets` is never used [INFO] [stdout] --> src/medium/backtracking.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 178 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 179 | pub fn subsets(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `exist` is never used [INFO] [stdout] --> src/medium/backtracking.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 215 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 216 | pub fn exist(board: Vec>, word: String) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] running `Command { std: "docker" "inspect" "6a9bb48bbd135592d0da8200b624cdb7dcb3d5dfadc1a7f6d73fd20547318f8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a9bb48bbd135592d0da8200b624cdb7dcb3d5dfadc1a7f6d73fd20547318f8d", kill_on_drop: false }` [INFO] [stdout] 6a9bb48bbd135592d0da8200b624cdb7dcb3d5dfadc1a7f6d73fd20547318f8d