[INFO] updating cached repository https://github.com/magurotuna/leetcode-rust [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 25fe43e23160883aa89080d8558347f027e065a4 [INFO] checking magurotuna/leetcode-rust against try#96b3c169cd2d8959926fa240f10342f1659f8ae3 for pr-71896 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmagurotuna%2Fleetcode-rust" "/workspace/builds/worker-4/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/magurotuna/leetcode-rust on toolchain 96b3c169cd2d8959926fa240f10342f1659f8ae3 [INFO] running `"/workspace/cargo-home/bin/cargo" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/magurotuna/leetcode-rust [INFO] finished tweaking git repo https://github.com/magurotuna/leetcode-rust [INFO] tweaked toml for git repo https://github.com/magurotuna/leetcode-rust written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/magurotuna/leetcode-rust already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 16d4b7a2368943c7e48828f3b8ac03db2f02abbd4ab52614f335fa7bf0a3a575 [INFO] running `"docker" "start" "-a" "16d4b7a2368943c7e48828f3b8ac03db2f02abbd4ab52614f335fa7bf0a3a575"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking leetcode-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/49.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `group_anagrams` [INFO] [stderr] --> src/bin/49.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn group_anagrams(strs: Vec) -> Vec> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `bfs_mle_broken_calc` [INFO] [stderr] --> src/bin/991.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn bfs_mle_broken_calc(x: i32, y: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/438.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `find_anagrams` [INFO] [stderr] --> src/bin/438.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn find_anagrams(s: String, p: String) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `char2index` [INFO] [stderr] --> src/bin/438.rs:36:4 [INFO] [stderr] | [INFO] [stderr] 36 | fn char2index(c: char) -> usize { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `identical` [INFO] [stderr] --> src/bin/438.rs:40:4 [INFO] [stderr] | [INFO] [stderr] 40 | fn identical(cur: &[i32], p: &[i32]) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/213.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `rob` [INFO] [stderr] --> src/bin/213.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn rob(nums: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/986.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `interval_intersection` [INFO] [stderr] --> src/bin/986.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn interval_intersection(a: Vec>, b: Vec>) -> Vec> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/238.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `product_except_self` [INFO] [stderr] --> src/bin/238.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn product_except_self(nums: Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `constant_space_product_except_self` [INFO] [stderr] --> src/bin/238.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn constant_space_product_except_self(nums: Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `UndergroundSystem` [INFO] [stderr] --> src/bin/1396.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | struct UndergroundSystem { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/bin/1396.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | fn new() -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `check_in` [INFO] [stderr] --> src/bin/1396.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | fn check_in(&mut self, id: i32, station_name: String, t: i32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `check_out` [INFO] [stderr] --> src/bin/1396.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | fn check_out(&mut self, id: i32, station_name: String, t: i32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_average_time` [INFO] [stderr] --> src/bin/1396.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | fn get_average_time(&self, start_station: String, end_station: String) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/412.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `fizz_buzz` [INFO] [stderr] --> src/bin/412.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn fizz_buzz(n: i32) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 5 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/1048.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `longest_str_chain` [INFO] [stderr] --> src/bin/1048.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn longest_str_chain(words: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `dp_longest_str_chain` [INFO] [stderr] --> src/bin/1048.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn dp_longest_str_chain(words: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `dfs` [INFO] [stderr] --> src/bin/1048.rs:62:4 [INFO] [stderr] | [INFO] [stderr] 62 | fn dfs( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `is_chain` [INFO] [stderr] --> src/bin/1048.rs:85:4 [INFO] [stderr] | [INFO] [stderr] 85 | fn is_chain(prev: &[char], next: &[char]) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/33.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `search` [INFO] [stderr] --> src/bin/33.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn search(nums: Vec, target: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 5 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `math_unique_paths` [INFO] [stderr] --> src/bin/62.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn math_unique_paths(m: i32, n: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `factorial` [INFO] [stderr] --> src/bin/62.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | fn factorial(n: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/108.rs:21:8 [INFO] [stderr] | [INFO] [stderr] 21 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `sorted_array_to_bst` [INFO] [stderr] --> src/bin/108.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn sorted_array_to_bst(nums: Vec) -> Option>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `dfs` [INFO] [stderr] --> src/bin/108.rs:29:4 [INFO] [stderr] | [INFO] [stderr] 29 | fn dfs(nums: &[i32]) -> Option>> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `make_node` [INFO] [stderr] --> src/bin/108.rs:54:4 [INFO] [stderr] | [INFO] [stderr] 54 | fn make_node(val: i32) -> Option>> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `make_node_with` [INFO] [stderr] --> src/bin/108.rs:58:4 [INFO] [stderr] | [INFO] [stderr] 58 | fn make_node_with( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/1391.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | let mut h = 0; [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/1391.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | let mut w = 0; [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: 5 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/227.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `calculate` [INFO] [stderr] --> src/bin/227.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn calculate(s: String) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calc` [INFO] [stderr] --> src/bin/227.rs:11:4 [INFO] [stderr] | [INFO] [stderr] 11 | fn calc(s: &[char], index: &mut usize) -> i32 { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `read_and_calc_high_precedence` [INFO] [stderr] --> src/bin/227.rs:40:4 [INFO] [stderr] | [INFO] [stderr] 40 | fn read_and_calc_high_precedence(s: &[char], index: &mut usize) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `read_val` [INFO] [stderr] --> src/bin/227.rs:59:4 [INFO] [stderr] | [INFO] [stderr] 59 | fn read_val(s: &[char], index: &mut usize) -> i32 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 5 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/199.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `right_side_view` [INFO] [stderr] --> src/bin/199.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn right_side_view(root: Node) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `dfs` [INFO] [stderr] --> src/bin/199.rs:15:4 [INFO] [stderr] | [INFO] [stderr] 15 | fn dfs(node: Node, vec: &mut Vec, depth: usize) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `iter` [INFO] [stderr] --> src/bin/394.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | let mut iter = substr.into_iter(); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iter` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `end_index` is never read [INFO] [stderr] --> src/bin/394.rs:32:17 [INFO] [stderr] | [INFO] [stderr] 32 | let mut end_index = index; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/394.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | let mut iter = substr.into_iter(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/929.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `num_unique_emails` [INFO] [stderr] --> src/bin/929.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn num_unique_emails(emails: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/881.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `num_rescue_boats` [INFO] [stderr] --> src/bin/881.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn num_rescue_boats(people: Vec, limit: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/739.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `daily_temperatures` [INFO] [stderr] --> src/bin/739.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn daily_temperatures(t: Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/392.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_subsequence` [INFO] [stderr] --> src/bin/392.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn is_subsequence(s: String, t: String) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_subsequence2` [INFO] [stderr] --> src/bin/392.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | pub fn is_subsequence2(s: String, t: String) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: function is never used: `make_node` [INFO] [stderr] --> src/bin/98.rs:47:4 [INFO] [stderr] | [INFO] [stderr] 47 | fn make_node(val: i32) -> Option>> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `make_node_with` [INFO] [stderr] --> src/bin/98.rs:51:4 [INFO] [stderr] | [INFO] [stderr] 51 | fn make_node_with( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `num_calculated` [INFO] [stderr] --> src/bin/264.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | let mut num_calculated = 0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_calculated` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/264.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | let mut num_calculated = 0; [INFO] [stderr] | ----^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/105.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `build_tree` [INFO] [stderr] --> src/bin/105.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn build_tree(preorder: Vec, inorder: Vec) -> Option>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `dfs` [INFO] [stderr] --> src/bin/105.rs:33:4 [INFO] [stderr] | [INFO] [stderr] 33 | fn dfs(preorder: &mut VecDeque, inorder: &[i32]) -> Option>> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `make_node` [INFO] [stderr] --> src/bin/105.rs:60:4 [INFO] [stderr] | [INFO] [stderr] 60 | fn make_node(val: i32) -> Option>> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `make_node_with` [INFO] [stderr] --> src/bin/105.rs:64:4 [INFO] [stderr] | [INFO] [stderr] 64 | fn make_node_with( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `min` [INFO] [stderr] --> src/bin/300.rs:35:29 [INFO] [stderr] | [INFO] [stderr] 35 | use std::cmp::{max, min}; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 5 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: value assigned to `valley` is never read [INFO] [stderr] --> src/bin/122.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | let mut valley = prices[0]; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `peek` is never read [INFO] [stderr] --> src/bin/122.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | let mut peek = prices[0]; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `valley` is never read [INFO] [stderr] --> src/bin/122.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | valley = peek; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/547.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `find_circle_num` [INFO] [stderr] --> src/bin/547.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn find_circle_num(m: Vec>) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `next_max` [INFO] [stderr] --> src/bin/53.rs:33:17 [INFO] [stderr] | [INFO] [stderr] 33 | let next_max = max(cur.0, sum); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_max` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/bin/1390.rs:8:17 [INFO] [stderr] | [INFO] [stderr] 8 | let mut s = 0; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cnt` [INFO] [stderr] --> src/bin/1390.rs:9:17 [INFO] [stderr] | [INFO] [stderr] 9 | let mut cnt = 1; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cnt` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/1390.rs:8:17 [INFO] [stderr] | [INFO] [stderr] 8 | let mut s = 0; [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/1390.rs:9:17 [INFO] [stderr] | [INFO] [stderr] 9 | let mut cnt = 1; [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/counting_elements.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `count_elements` [INFO] [stderr] --> src/bin/counting_elements.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn count_elements(arr: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/63.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `unique_paths_with_obstacles` [INFO] [stderr] --> src/bin/63.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn unique_paths_with_obstacles(obstacle_grid: Vec>) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/50.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | let mut even_n = if is_odd { n - 1 } else { n }; [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: function is never used: `is_open` [INFO] [stderr] --> src/bin/20.rs:42:4 [INFO] [stderr] | [INFO] [stderr] 42 | fn is_open(c: char) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/1395.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `num_teams` [INFO] [stderr] --> src/bin/1395.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn num_teams(rating: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around method argument [INFO] [stderr] --> src/bin/6.rs:20:50 [INFO] [stderr] | [INFO] [stderr] 20 | if let Some(&cn) = chars.get((cur_r + (room_in_block as usize) - 2 * r)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/3.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `length_of_longest_substring` [INFO] [stderr] --> src/bin/3.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/bin/5.rs:110:13 [INFO] [stderr] | [INFO] [stderr] 109 | loop {} [INFO] [stderr] | ------- any code following this expression is unreachable [INFO] [stderr] 110 | len = max(len, right - left + 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `slow_length_of_longest_substring` [INFO] [stderr] --> src/bin/3.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn slow_length_of_longest_substring(s: String) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_blocks` [INFO] [stderr] --> src/bin/6.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | let n_blocks = chars.len() as i32 / room_in_block; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_blocks` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/6.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `convert` [INFO] [stderr] --> src/bin/6.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn convert(s: String, num_rows: i32) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `num_calculated` [INFO] [stderr] --> src/bin/264.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | let mut num_calculated = 0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_calculated` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/264.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | let mut num_calculated = 0; [INFO] [stderr] | ----^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `len` [INFO] [stderr] --> src/bin/5.rs:105:13 [INFO] [stderr] | [INFO] [stderr] 105 | let mut len = 0; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `left` [INFO] [stderr] --> src/bin/5.rs:107:17 [INFO] [stderr] | [INFO] [stderr] 107 | let mut left = i; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `right` [INFO] [stderr] --> src/bin/5.rs:108:17 [INFO] [stderr] | [INFO] [stderr] 108 | let mut right = i; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `len` is never read [INFO] [stderr] --> src/bin/5.rs:110:13 [INFO] [stderr] | [INFO] [stderr] 110 | len = max(len, right - left + 1); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/5.rs:105:13 [INFO] [stderr] | [INFO] [stderr] 105 | let mut len = 0; [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/5.rs:107:17 [INFO] [stderr] | [INFO] [stderr] 107 | let mut left = i; [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/5.rs:108:17 [INFO] [stderr] | [INFO] [stderr] 108 | let mut right = i; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `longest_palindrome` [INFO] [stderr] --> src/bin/5.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn longest_palindrome(s: String) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `tmp_longest_palindrome` [INFO] [stderr] --> src/bin/5.rs:87:5 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn tmp_longest_palindrome(s: String) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/1377.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `frog_position` [INFO] [stderr] --> src/bin/1377.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn frog_position(n: i32, edges: Vec>, t: i32, target: i32) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 10 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/bin/206.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | fn new(val: i32) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/206.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reverse_list` [INFO] [stderr] --> src/bin/206.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn reverse_list(head: Option>) -> Option> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `make_linked_list` [INFO] [stderr] --> src/bin/206.rs:33:4 [INFO] [stderr] | [INFO] [stderr] 33 | fn make_linked_list(values: &[i32]) -> Option> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/126.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `find_ladders` [INFO] [stderr] --> src/bin/126.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | / pub fn find_ladders( [INFO] [stderr] 6 | | begin_word: String, [INFO] [stderr] 7 | | end_word: String, [INFO] [stderr] 8 | | word_list: Vec, [INFO] [stderr] ... | [INFO] [stderr] 57 | | ret [INFO] [stderr] 58 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/617.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | let mut n1 = n1.unwrap(); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/617.rs:26:14 [INFO] [stderr] | [INFO] [stderr] 26 | Some(mut n2) => { [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/617.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `merge_trees` [INFO] [stderr] --> src/bin/617.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn merge_trees(t1: Node, t2: Node) -> Node { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `dfs` [INFO] [stderr] --> src/bin/617.rs:14:4 [INFO] [stderr] | [INFO] [stderr] 14 | fn dfs(mut n1: Node, mut n2: Node) -> Node { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 5 warnings emitted [INFO] [stderr] [INFO] [stderr] error[E0601]: `main` function not found in crate `1406` [INFO] [stderr] --> src/bin/1406.rs:1:9 [INFO] [stderr] | [INFO] [stderr] 1 | // TODO [INFO] [stderr] | ^ consider adding a `main` function to `src/bin/1406.rs` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0601`. [INFO] [stderr] error: could not compile `leetcode-rust`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/79.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `exist` [INFO] [stderr] --> src/bin/79.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn exist(board: Vec>, word: String) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `dfs` [INFO] [stderr] --> src/bin/79.rs:11:4 [INFO] [stderr] | [INFO] [stderr] 11 | fn dfs(board: &Vec>, s: &[char], h: usize, w: usize) -> bool { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/136.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `single_number` [INFO] [stderr] --> src/bin/136.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn single_number(nums: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `bit_manipulation` [INFO] [stderr] --> src/bin/136.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn bit_manipulation(nums: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/7.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reverse` [INFO] [stderr] --> src/bin/7.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn reverse(x: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/529.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `find_min_difference` [INFO] [stderr] --> src/bin/529.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn find_min_difference(time_points: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/323.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `count_components` [INFO] [stderr] --> src/bin/323.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn count_components(n: i32, edges: Vec>) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `dfs` [INFO] [stderr] --> src/bin/323.rs:28:4 [INFO] [stderr] | [INFO] [stderr] 28 | fn dfs(visited: &mut std::collections::HashSet, links: &Vec>, start: usize) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused variable: `width` [INFO] [stderr] --> src/bin/1380.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | let width = matrix[0].len(); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Solution` [INFO] [stderr] --> src/bin/111.rs:21:8 [INFO] [stderr] | [INFO] [stderr] 21 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `min_depth` [INFO] [stderr] --> src/bin/111.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn min_depth(root: Option>>) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `make_node` [INFO] [stderr] --> src/bin/111.rs:57:4 [INFO] [stderr] | [INFO] [stderr] 57 | fn make_node(val: i32) -> Option>> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `make_node_with` [INFO] [stderr] --> src/bin/111.rs:61:4 [INFO] [stderr] | [INFO] [stderr] 61 | fn make_node_with( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/bin/5.rs:110:13 [INFO] [stderr] | [INFO] [stderr] 109 | loop {} [INFO] [stderr] | ------- any code following this expression is unreachable [INFO] [stderr] 110 | len = max(len, right - left + 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `len` [INFO] [stderr] --> src/bin/5.rs:105:13 [INFO] [stderr] | [INFO] [stderr] 105 | let mut len = 0; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `left` [INFO] [stderr] --> src/bin/5.rs:107:17 [INFO] [stderr] | [INFO] [stderr] 107 | let mut left = i; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `right` [INFO] [stderr] --> src/bin/5.rs:108:17 [INFO] [stderr] | [INFO] [stderr] 108 | let mut right = i; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `len` is never read [INFO] [stderr] --> src/bin/5.rs:110:13 [INFO] [stderr] | [INFO] [stderr] 110 | len = max(len, right - left + 1); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/5.rs:105:13 [INFO] [stderr] | [INFO] [stderr] 105 | let mut len = 0; [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/5.rs:107:17 [INFO] [stderr] | [INFO] [stderr] 107 | let mut left = i; [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/5.rs:108:17 [INFO] [stderr] | [INFO] [stderr] 108 | let mut right = i; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `tmp_longest_palindrome` [INFO] [stderr] --> src/bin/5.rs:87:5 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn tmp_longest_palindrome(s: String) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `MOD` should have a snake case name [INFO] [stderr] --> src/bin/1397.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | let MOD = 1_000_000_007; [INFO] [stderr] | ^^^ help: convert the identifier to snake case: `mod` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: 9 warnings emitted [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "16d4b7a2368943c7e48828f3b8ac03db2f02abbd4ab52614f335fa7bf0a3a575"` [INFO] running `"docker" "rm" "-f" "16d4b7a2368943c7e48828f3b8ac03db2f02abbd4ab52614f335fa7bf0a3a575"` [INFO] [stdout] 16d4b7a2368943c7e48828f3b8ac03db2f02abbd4ab52614f335fa7bf0a3a575