[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 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeonqn%2Fleetcode-solutions" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Leonqn/leetcode-solutions 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/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-13/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: "/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-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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] 3a85ba7ddfb000266441771d8b3837c9babe07662ead7a638a872ff6ae554291 [INFO] running `Command { std: "docker" "start" "-a" "3a85ba7ddfb000266441771d8b3837c9babe07662ead7a638a872ff6ae554291", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a85ba7ddfb000266441771d8b3837c9babe07662ead7a638a872ff6ae554291", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a85ba7ddfb000266441771d8b3837c9babe07662ead7a638a872ff6ae554291", kill_on_drop: false }` [INFO] [stdout] 3a85ba7ddfb000266441771d8b3837c9babe07662ead7a638a872ff6ae554291 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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] 7ffb14b245c0bb36b0853d51cfdd5ce4ee697ba2d0216ffdd76ec3fe2e13f7e9 [INFO] running `Command { std: "docker" "start" "-a" "7ffb14b245c0bb36b0853d51cfdd5ce4ee697ba2d0216ffdd76ec3fe2e13f7e9", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking top-questions v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/medium/array_and_strings.rs (1 fix) [INFO] [stdout] warning: struct is never constructed: `Solution` [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 is never used: `set_zeroes` [INFO] [stdout] --> src/medium/array_and_strings.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn set_zeroes(matrix: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `group_anagrams` [INFO] [stdout] --> src/medium/array_and_strings.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn group_anagrams(strs: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_ch_idx` [INFO] [stdout] --> src/medium/array_and_strings.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | fn get_ch_idx(c: char) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `length_of_longest_substring` [INFO] [stdout] --> src/medium/array_and_strings.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increasing_triplet` [INFO] [stdout] --> src/medium/array_and_strings.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn increasing_triplet(_nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/medium/linked_list.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_iter` [INFO] [stdout] --> src/medium/linked_list.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn from_iter(i: impl IntoIterator) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_two_numbers` [INFO] [stdout] --> src/medium/linked_list.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum` [INFO] [stdout] --> src/medium/linked_list.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | fn sum( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `odd_even_list` [INFO] [stdout] --> src/medium/linked_list.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn odd_even_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/medium/graphs.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_iterator` [INFO] [stdout] --> src/medium/graphs.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_iterator( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inorder_traversal` [INFO] [stdout] --> src/medium/graphs.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn inorder_traversal(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rec` [INFO] [stdout] --> src/medium/graphs.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | fn rec(root: Option<&RefCell>, result: &mut Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `zigzag_level_order` [INFO] [stdout] --> src/medium/graphs.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn zigzag_level_order(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `zigzag` [INFO] [stdout] --> src/medium/graphs.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | fn zigzag(root: Option<&RefCell>, result: &mut Vec>, level: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_tree` [INFO] [stdout] --> src/medium/graphs.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn build_tree(preorder: Vec, inorder: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_tree` [INFO] [stdout] --> src/medium/graphs.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | fn build_tree( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kth_smallest` [INFO] [stdout] --> src/medium/graphs.rs:196:12 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn kth_smallest(root: Option>>, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find` [INFO] [stdout] --> src/medium/graphs.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 197 | fn find(root: Option<&RefCell>, k: usize, cur_idx: &mut usize) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_islands` [INFO] [stdout] --> src/medium/graphs.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn num_islands(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `letter_combinations` [INFO] [stdout] --> src/medium/backtracking.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn letter_combinations(digits: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `letter_combinations` [INFO] [stdout] --> src/medium/backtracking.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn letter_combinations(digits: &mut Chars, numbers: &[Vec]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_parenthesis` [INFO] [stdout] --> src/medium/backtracking.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_parenthesis` [INFO] [stdout] --> src/medium/backtracking.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | fn generate_parenthesis(n: i32) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `permute` [INFO] [stdout] --> src/medium/backtracking.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn permute(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `permute` [INFO] [stdout] --> src/medium/backtracking.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | fn permute(nums: &[i32]) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `subsets` [INFO] [stdout] --> src/medium/backtracking.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn subsets(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `subsets` [INFO] [stdout] --> src/medium/backtracking.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | fn subsets(nums: &[i32]) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exist` [INFO] [stdout] --> src/medium/backtracking.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn exist(board: Vec>, word: String) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dfs` [INFO] [stdout] --> src/medium/backtracking.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 217 | fn dfs(board: &mut [Vec], s: &[char], chard_idx: usize, x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.42s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking top-questions v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0412]: cannot find type `BTreeSet` in this scope [INFO] [stdout] --> src/medium/array_and_strings.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | let expected: BTreeSet> = vec![ [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::BTreeSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeSet` in this scope [INFO] [stdout] --> src/medium/array_and_strings.rs:105:28 [INFO] [stdout] | [INFO] [stdout] 105 | let expected: BTreeSet> = vec![ [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::BTreeSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeSet` in this scope [INFO] [stdout] --> src/medium/array_and_strings.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | let result: BTreeSet> = Solution::group_anagrams(strs) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::BTreeSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeSet` in this scope [INFO] [stdout] --> src/medium/array_and_strings.rs:116:26 [INFO] [stdout] | [INFO] [stdout] 116 | let result: BTreeSet> = Solution::group_anagrams(strs) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::BTreeSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [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 is never used: `set_zeroes` [INFO] [stdout] --> src/medium/array_and_strings.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn set_zeroes(matrix: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `group_anagrams` [INFO] [stdout] --> src/medium/array_and_strings.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn group_anagrams(strs: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_ch_idx` [INFO] [stdout] --> src/medium/array_and_strings.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | fn get_ch_idx(c: char) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `length_of_longest_substring` [INFO] [stdout] --> src/medium/array_and_strings.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increasing_triplet` [INFO] [stdout] --> src/medium/array_and_strings.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn increasing_triplet(_nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/medium/linked_list.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_iter` [INFO] [stdout] --> src/medium/linked_list.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn from_iter(i: impl IntoIterator) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_two_numbers` [INFO] [stdout] --> src/medium/linked_list.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum` [INFO] [stdout] --> src/medium/linked_list.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | fn sum( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `odd_even_list` [INFO] [stdout] --> src/medium/linked_list.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn odd_even_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/medium/graphs.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_iterator` [INFO] [stdout] --> src/medium/graphs.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_iterator( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inorder_traversal` [INFO] [stdout] --> src/medium/graphs.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn inorder_traversal(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rec` [INFO] [stdout] --> src/medium/graphs.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | fn rec(root: Option<&RefCell>, result: &mut Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `zigzag_level_order` [INFO] [stdout] --> src/medium/graphs.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn zigzag_level_order(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `zigzag` [INFO] [stdout] --> src/medium/graphs.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | fn zigzag(root: Option<&RefCell>, result: &mut Vec>, level: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_tree` [INFO] [stdout] --> src/medium/graphs.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn build_tree(preorder: Vec, inorder: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_tree` [INFO] [stdout] --> src/medium/graphs.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | fn build_tree( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kth_smallest` [INFO] [stdout] --> src/medium/graphs.rs:196:12 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn kth_smallest(root: Option>>, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find` [INFO] [stdout] --> src/medium/graphs.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 197 | fn find(root: Option<&RefCell>, k: usize, cur_idx: &mut usize) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_islands` [INFO] [stdout] --> src/medium/graphs.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn num_islands(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `letter_combinations` [INFO] [stdout] --> src/medium/backtracking.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn letter_combinations(digits: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `letter_combinations` [INFO] [stdout] --> src/medium/backtracking.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn letter_combinations(digits: &mut Chars, numbers: &[Vec]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_parenthesis` [INFO] [stdout] --> src/medium/backtracking.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_parenthesis` [INFO] [stdout] --> src/medium/backtracking.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | fn generate_parenthesis(n: i32) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `permute` [INFO] [stdout] --> src/medium/backtracking.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn permute(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `permute` [INFO] [stdout] --> src/medium/backtracking.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | fn permute(nums: &[i32]) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `subsets` [INFO] [stdout] --> src/medium/backtracking.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn subsets(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `subsets` [INFO] [stdout] --> src/medium/backtracking.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | fn subsets(nums: &[i32]) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exist` [INFO] [stdout] --> src/medium/backtracking.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn exist(board: Vec>, word: String) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dfs` [INFO] [stdout] --> src/medium/backtracking.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 217 | fn dfs(board: &mut [Vec], s: &[char], chard_idx: usize, x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `top-questions` due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "7ffb14b245c0bb36b0853d51cfdd5ce4ee697ba2d0216ffdd76ec3fe2e13f7e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ffb14b245c0bb36b0853d51cfdd5ce4ee697ba2d0216ffdd76ec3fe2e13f7e9", kill_on_drop: false }` [INFO] [stdout] 7ffb14b245c0bb36b0853d51cfdd5ce4ee697ba2d0216ffdd76ec3fe2e13f7e9