[INFO] cloning repository https://github.com/magurotuna/leetcode-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/magurotuna/leetcode-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmagurotuna%2Fleetcode-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmagurotuna%2Fleetcode-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 25fe43e23160883aa89080d8558347f027e065a4 [INFO] checking magurotuna/leetcode-rust against try#3e22d1f9053c0fc87629b3c6d5d9567856368e5d for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmagurotuna%2Fleetcode-rust" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/magurotuna/leetcode-rust on toolchain 3e22d1f9053c0fc87629b3c6d5d9567856368e5d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-2/source/Cargo.toml [INFO] crate git repo https://github.com/magurotuna/leetcode-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a00f6175b94538b3db4dd8f1d1895d8ddff5340661b5d702101d7392e3d90700 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a00f6175b94538b3db4dd8f1d1895d8ddff5340661b5d702101d7392e3d90700", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a00f6175b94538b3db4dd8f1d1895d8ddff5340661b5d702101d7392e3d90700", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a00f6175b94538b3db4dd8f1d1895d8ddff5340661b5d702101d7392e3d90700", kill_on_drop: false }` [INFO] [stdout] a00f6175b94538b3db4dd8f1d1895d8ddff5340661b5d702101d7392e3d90700 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b8bb8fd969fbf2c9dabeea04807e31ae0153911e12c80564b38dcaf99ebcd0ac [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b8bb8fd969fbf2c9dabeea04807e31ae0153911e12c80564b38dcaf99ebcd0ac", kill_on_drop: false }` [INFO] [stderr] Checking leetcode-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function is never used: `bfs_mle_broken_calc` [INFO] [stdout] --> src/bin/991.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn bfs_mle_broken_calc(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/349.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: `intersection` [INFO] [stdout] --> src/bin/349.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn intersection(nums1: Vec, nums2: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/104.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | 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: `max_depth` [INFO] [stdout] --> src/bin/104.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dfs` [INFO] [stdout] --> src/bin/104.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn dfs(node: Option<&Rc>>, depth: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_node` [INFO] [stdout] --> src/bin/104.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn make_node(val: i32) -> Option>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_node_with` [INFO] [stdout] --> src/bin/104.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn make_node_with( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/228.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: `summary_ranges` [INFO] [stdout] --> src/bin/228.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn summary_ranges(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/238.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: `product_except_self` [INFO] [stdout] --> src/bin/238.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn product_except_self(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `constant_space_product_except_self` [INFO] [stdout] --> src/bin/238.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn constant_space_product_except_self(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/20.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: `is_valid` [INFO] [stdout] --> src/bin/20.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_close` [INFO] [stdout] --> src/bin/20.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn is_close(c: char) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_open` [INFO] [stdout] --> src/bin/20.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn is_open(c: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `close` [INFO] [stdout] --> src/bin/20.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn close(b: char) -> char { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/bin/207.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let result = Solution::can_finish(2, vec![vec![0, 1]]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/126.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: `find_ladders` [INFO] [stdout] --> src/bin/126.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn find_ladders( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/5.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 109 | loop {} [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 110 | len = max(len, right - left + 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/bin/5.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut len = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/bin/5.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | let mut left = i; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/bin/5.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | let mut right = i; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `len` is never read [INFO] [stdout] --> src/bin/5.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | len = max(len, right - left + 1); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/5.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut len = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/5.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | let mut left = i; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/5.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | let mut right = i; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tmp_longest_palindrome` [INFO] [stdout] --> src/bin/5.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn tmp_longest_palindrome(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/67.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: `add_binary` [INFO] [stdout] --> src/bin/67.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add_binary(a: String, b: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `naive_add_binary` [INFO] [stdout] --> src/bin/67.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn naive_add_binary(a: String, b: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HitCounter` [INFO] [stdout] --> src/bin/362.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct HitCounter { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/210.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: `find_order` [INFO] [stdout] --> src/bin/210.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_order(num_courses: i32, prerequisites: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/362.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit` [INFO] [stdout] --> src/bin/362.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn hit(&mut self, timestamp: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hits` [INFO] [stdout] --> src/bin/362.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn get_hits(&self, timestamp: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/102.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | 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: `level_order` [INFO] [stdout] --> src/bin/102.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn level_order(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_node` [INFO] [stdout] --> src/bin/102.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn make_node(val: i32) -> Option>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_node_with` [INFO] [stdout] --> src/bin/102.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn make_node_with( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `subarray_sum2` [INFO] [stdout] --> src/bin/560.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn subarray_sum2(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iter` [INFO] [stdout] --> src/bin/394.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut iter = substr.into_iter(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_index` is never read [INFO] [stdout] --> src/bin/394.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | let mut end_index = index; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/394.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut iter = substr.into_iter(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/153.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: `find_min` [INFO] [stdout] --> src/bin/153.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_min(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_node` [INFO] [stdout] --> src/bin/98.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn make_node(val: i32) -> Option>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_node_with` [INFO] [stdout] --> src/bin/98.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn make_node_with( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/108.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | 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: `sorted_array_to_bst` [INFO] [stdout] --> src/bin/108.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn sorted_array_to_bst(nums: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dfs` [INFO] [stdout] --> src/bin/108.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn dfs(nums: &[i32]) -> Option>> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_node` [INFO] [stdout] --> src/bin/108.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn make_node(val: i32) -> Option>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_node_with` [INFO] [stdout] --> src/bin/108.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn make_node_with( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/1391.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut h = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/1391.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut w = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/bin/776.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/bin/776.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/776.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut root = root.unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/776.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | 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: `split_bst` [INFO] [stdout] --> src/bin/776.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn split_bst(root: Node, v: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/103.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | 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: `zigzag_level_order` [INFO] [stdout] --> src/bin/103.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn zigzag_level_order(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_node` [INFO] [stdout] --> src/bin/103.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn make_node(val: i32) -> Option>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_node_with` [INFO] [stdout] --> src/bin/103.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn make_node_with( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/1392.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: `longest_prefix` [INFO] [stdout] --> src/bin/1392.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_prefix(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MOD` should have a snake case name [INFO] [stdout] --> src/bin/1397.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let MOD = 1_000_000_007; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `mod` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `1406` [INFO] [stdout] --> src/bin/1406.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | // TODO [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/1406.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [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] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/1375.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: `num_times_all_blue` [INFO] [stdout] --> src/bin/1375.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn num_times_all_blue(light: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `segtree_num_times_all_blue` [INFO] [stdout] --> src/bin/1375.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn segtree_num_times_all_blue(light: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/289.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: `game_of_life` [INFO] [stdout] --> src/bin/289.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn game_of_life(board: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_live_neighbors` [INFO] [stdout] --> src/bin/289.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn count_live_neighbors(board: &Vec>, h: usize, w: usize) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/695.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: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/1395.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: `num_teams` [INFO] [stdout] --> src/bin/1395.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn num_teams(rating: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_area_of_island` [INFO] [stdout] --> src/bin/695.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_area_of_island(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dfs` [INFO] [stdout] --> src/bin/695.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn dfs( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/bin/1380.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let width = matrix[0].len(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/617.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut n1 = n1.unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/617.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | Some(mut n2) => { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/bin/617.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | 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: `merge_trees` [INFO] [stdout] --> src/bin/617.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn merge_trees(t1: Node, t2: Node) -> Node { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dfs` [INFO] [stdout] --> src/bin/617.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn dfs(mut n1: Node, mut n2: Node) -> Node { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b8bb8fd969fbf2c9dabeea04807e31ae0153911e12c80564b38dcaf99ebcd0ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8bb8fd969fbf2c9dabeea04807e31ae0153911e12c80564b38dcaf99ebcd0ac", kill_on_drop: false }` [INFO] [stdout] b8bb8fd969fbf2c9dabeea04807e31ae0153911e12c80564b38dcaf99ebcd0ac