[INFO] cloning repository https://github.com/n3k/leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/n3k/leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fn3k%2Fleetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fn3k%2Fleetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1ce47b0adb37b0a61605cd3ebf8154e7341f17e6 [INFO] checking n3k/leetcode against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fn3k%2Fleetcode" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/n3k/leetcode on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/n3k/leetcode [INFO] finished tweaking git repo https://github.com/n3k/leetcode [INFO] tweaked toml for git repo https://github.com/n3k/leetcode written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/n3k/leetcode already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f8040bb48d6be28a796e94c27456423d9a683b076a3da6a4305747e3fd7a295e [INFO] running `Command { std: "docker" "start" "-a" "f8040bb48d6be28a796e94c27456423d9a683b076a3da6a4305747e3fd7a295e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f8040bb48d6be28a796e94c27456423d9a683b076a3da6a4305747e3fd7a295e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8040bb48d6be28a796e94c27456423d9a683b076a3da6a4305747e3fd7a295e", kill_on_drop: false }` [INFO] [stdout] f8040bb48d6be28a796e94c27456423d9a683b076a3da6a4305747e3fd7a295e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2b7db74980045c320ad6c0b3b51b440b76a83f545c8b4fbf08d44d1f2e28d33 [INFO] running `Command { std: "docker" "start" "-a" "c2b7db74980045c320ad6c0b3b51b440b76a83f545c8b4fbf08d44d1f2e28d33", kill_on_drop: false }` [INFO] [stderr] Checking interview-problems v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/leetcode_5.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | /// Test for window sizes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 68 | let mut w_size = len; [INFO] [stdout] | --------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/leetcode_5.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | /// Test for window sizes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 68 | let mut w_size = len; [INFO] [stdout] | --------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/leetcode_128.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/leetcode_167.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 29 | / loop { [INFO] [stdout] 30 | | let num1 = numbers[i]; [INFO] [stdout] 31 | | [INFO] [stdout] 32 | | let mut add = 0; [INFO] [stdout] ... | [INFO] [stdout] 50 | | i += 1; [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 52 | [INFO] [stdout] 53 | Vec::new() [INFO] [stdout] | ^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/leetcode_167.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 68 | / loop { [INFO] [stdout] 69 | | let mut right_boundary = len - 1; [INFO] [stdout] 70 | | let mut num; [INFO] [stdout] 71 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 108 | | right_boundary -= 1; [INFO] [stdout] 109 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 110 | [INFO] [stdout] 111 | Vec::new() [INFO] [stdout] | ^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/leetcode_167.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 125 | / loop { [INFO] [stdout] 126 | | addition = numbers[left] + numbers[right]; [INFO] [stdout] 127 | | if addition > target { [INFO] [stdout] 128 | | right += 1; [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] 134 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 135 | [INFO] [stdout] 136 | Vec::new() [INFO] [stdout] | ^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `l` is never read [INFO] [stdout] --> src/leetcode_5.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let mut l = 0usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> src/leetcode_5.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | let mut r = 1usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/leetcode_167.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 29 | / loop { [INFO] [stdout] 30 | | let num1 = numbers[i]; [INFO] [stdout] 31 | | [INFO] [stdout] 32 | | let mut add = 0; [INFO] [stdout] ... | [INFO] [stdout] 50 | | i += 1; [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 52 | [INFO] [stdout] 53 | Vec::new() [INFO] [stdout] | ^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/leetcode_167.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 68 | / loop { [INFO] [stdout] 69 | | let mut right_boundary = len - 1; [INFO] [stdout] 70 | | let mut num; [INFO] [stdout] 71 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 108 | | right_boundary -= 1; [INFO] [stdout] 109 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 110 | [INFO] [stdout] 111 | Vec::new() [INFO] [stdout] | ^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/leetcode_167.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 125 | / loop { [INFO] [stdout] 126 | | addition = numbers[left] + numbers[right]; [INFO] [stdout] 127 | | if addition > target { [INFO] [stdout] 128 | | right += 1; [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] 134 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 135 | [INFO] [stdout] 136 | Vec::new() [INFO] [stdout] | ^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `add` is never read [INFO] [stdout] --> src/leetcode_167.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | let mut add = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `right_boundary` is never read [INFO] [stdout] --> src/leetcode_167.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | right_boundary -= 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum_1` is never used [INFO] [stdout] --> src/leetcode_1.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn two_sum_1(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum_2` is never used [INFO] [stdout] --> src/leetcode_1.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn two_sum_2(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum_3` is never used [INFO] [stdout] --> src/leetcode_1.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn two_sum_3(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/leetcode_2.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | #[inline] [INFO] [stdout] 10 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers_x` is never used [INFO] [stdout] --> src/leetcode_2.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn add_two_numbers_x(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers_helper` is never used [INFO] [stdout] --> src/leetcode_2.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn add_two_numbers_helper(l1: Option>, l2: Option>, carry: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers` is never used [INFO] [stdout] --> src/leetcode_2.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn add_two_numbers(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers_3` is never used [INFO] [stdout] --> src/leetcode_2.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn add_two_numbers_3(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers` is never used [INFO] [stdout] --> src/leetcode_2.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn add_two_numbers(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_of_longest_substring` is never used [INFO] [stdout] --> src/leetcode_3.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_palindrome` is never used [INFO] [stdout] --> src/leetcode_5.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn is_palindrome(s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_palindrome` is never used [INFO] [stdout] --> src/leetcode_5.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn longest_palindrome(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_palindrome_2` is never used [INFO] [stdout] --> src/leetcode_5.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn longest_palindrome_2(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_subarray1` is never used [INFO] [stdout] --> src/leetcode_53.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn max_subarray1(array: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_subarray2` is never used [INFO] [stdout] --> src/leetcode_53.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn max_subarray2(array: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest_rectangle_1` is never used [INFO] [stdout] --> src/leetcode_84.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn largest_rectangle_1(heights: &[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest_rectangle_2` is never used [INFO] [stdout] --> src/leetcode_84.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn largest_rectangle_2(heights: &[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lgs_sorted2` is never used [INFO] [stdout] --> src/leetcode_128.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn lgs_sorted2(mut array: Vec) -> (Vec, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lgs_sorted` is never used [INFO] [stdout] --> src/leetcode_128.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn lgs_sorted(mut array: Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lgs_set` is never used [INFO] [stdout] --> src/leetcode_128.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn lgs_set(array: Vec) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum_sorted` is never used [INFO] [stdout] --> src/leetcode_167.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn two_sum_sorted(numbers: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum_sorted2` is never used [INFO] [stdout] --> src/leetcode_167.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn two_sum_sorted2(numbers: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum_sorted_constant` is never used [INFO] [stdout] --> src/leetcode_167.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn two_sum_sorted_constant(numbers: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_sub_array_len` is never used [INFO] [stdout] --> src/leetcode_209.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn min_sub_array_len(target: i32, nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/leetcode_445.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 19 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | #[inline] [INFO] [stdout] 21 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stack_helper` is never used [INFO] [stdout] --> src/leetcode_445.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn stack_helper(l1: Option>, l2: Option>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_helper` is never used [INFO] [stdout] --> src/leetcode_445.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | fn add_helper(mut v1: Vec, mut v2: Vec, carry: bool, l3: Option>) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers` is never used [INFO] [stdout] --> src/leetcode_445.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn add_two_numbers(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Solution` should have a snake case name [INFO] [stdout] --> src/leetcode_2.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | mod Solution { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `solution` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Solution` should have a snake case name [INFO] [stdout] --> src/leetcode_5.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod Solution { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Solution` should have a snake case name [INFO] [stdout] --> src/leetcode_209.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod Solution { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Solution` should have a snake case name [INFO] [stdout] --> src/leetcode_445.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | mod Solution { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `l` is never read [INFO] [stdout] --> src/leetcode_5.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let mut l = 0usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> src/leetcode_5.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | let mut r = 1usize; [INFO] [stdout] | ^ [INFO] [stdout] | [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/leetcode_128.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let mut v = vec![0,3,7,2,5,8,4,6,0,1]; [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: value assigned to `add` is never read [INFO] [stdout] --> src/leetcode_167.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | let mut add = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `right_boundary` is never read [INFO] [stdout] --> src/leetcode_167.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | right_boundary -= 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum_1` is never used [INFO] [stdout] --> src/leetcode_1.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn two_sum_1(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum_3` is never used [INFO] [stdout] --> src/leetcode_1.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn two_sum_3(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/leetcode_2.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | #[inline] [INFO] [stdout] 10 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers_x` is never used [INFO] [stdout] --> src/leetcode_2.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn add_two_numbers_x(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers_helper` is never used [INFO] [stdout] --> src/leetcode_2.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn add_two_numbers_helper(l1: Option>, l2: Option>, carry: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers` is never used [INFO] [stdout] --> src/leetcode_2.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn add_two_numbers(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_palindrome` is never used [INFO] [stdout] --> src/leetcode_5.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn longest_palindrome(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lgs_sorted2` is never used [INFO] [stdout] --> src/leetcode_128.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn lgs_sorted2(mut array: Vec) -> (Vec, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lgs_set` is never used [INFO] [stdout] --> src/leetcode_128.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn lgs_set(array: Vec) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum_sorted2` is never used [INFO] [stdout] --> src/leetcode_167.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn two_sum_sorted2(numbers: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum_sorted_constant` is never used [INFO] [stdout] --> src/leetcode_167.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn two_sum_sorted_constant(numbers: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/leetcode_445.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 19 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | #[inline] [INFO] [stdout] 21 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Solution` should have a snake case name [INFO] [stdout] --> src/leetcode_2.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | mod Solution { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `solution` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Solution` should have a snake case name [INFO] [stdout] --> src/leetcode_5.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod Solution { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Solution` should have a snake case name [INFO] [stdout] --> src/leetcode_209.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod Solution { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Solution` should have a snake case name [INFO] [stdout] --> src/leetcode_445.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | mod Solution { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] running `Command { std: "docker" "inspect" "c2b7db74980045c320ad6c0b3b51b440b76a83f545c8b4fbf08d44d1f2e28d33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2b7db74980045c320ad6c0b3b51b440b76a83f545c8b4fbf08d44d1f2e28d33", kill_on_drop: false }` [INFO] [stdout] c2b7db74980045c320ad6c0b3b51b440b76a83f545c8b4fbf08d44d1f2e28d33