[INFO] cloning repository https://github.com/EvGem7/l33tcode-solutions [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EvGem7/l33tcode-solutions" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvGem7%2Fl33tcode-solutions", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvGem7%2Fl33tcode-solutions'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 18ba666db220da437f0d6953f7d1bde6a43bb5ca [INFO] checking EvGem7/l33tcode-solutions/18ba666db220da437f0d6953f7d1bde6a43bb5ca against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvGem7%2Fl33tcode-solutions" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/EvGem7/l33tcode-solutions on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/EvGem7/l33tcode-solutions [INFO] finished tweaking git repo https://github.com/EvGem7/l33tcode-solutions [INFO] tweaked toml for git repo https://github.com/EvGem7/l33tcode-solutions written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/EvGem7/l33tcode-solutions already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b12a0e847af29e8d316a6de3b64d4cfe29c0e8e275b3c648fbe5d26c90abffc5 [INFO] running `Command { std: "docker" "start" "-a" "b12a0e847af29e8d316a6de3b64d4cfe29c0e8e275b3c648fbe5d26c90abffc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b12a0e847af29e8d316a6de3b64d4cfe29c0e8e275b3c648fbe5d26c90abffc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b12a0e847af29e8d316a6de3b64d4cfe29c0e8e275b3c648fbe5d26c90abffc5", kill_on_drop: false }` [INFO] [stdout] b12a0e847af29e8d316a6de3b64d4cfe29c0e8e275b3c648fbe5d26c90abffc5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf10a52ecdf95869bbe829715b5537dda76d95157b3d95479a93abf5b366698b [INFO] running `Command { std: "docker" "start" "-a" "cf10a52ecdf95869bbe829715b5537dda76d95157b3d95479a93abf5b366698b", kill_on_drop: false }` [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/problems/longest_substring_without_repeating_characters.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ordering` [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{min, Ordering}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/problems/longest_substring_without_repeating_characters.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Formatter, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ordering` [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{min, Ordering}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Formatter, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut finder1 = &mut Finder::new(nums1, cd); [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/problems/median_of_two_sorted_arrays.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut finder1 = &mut Finder::new(nums1, cd); [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/problems/median_of_two_sorted_arrays.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut finder2 = &mut Finder::new(nums2, cd); [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/problems/median_of_two_sorted_arrays.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut finder2 = &mut Finder::new(nums2, cd); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/add_two_numbers.rs:10:8 [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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/problems/add_two_numbers.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `add_two_numbers` and `add_two_numbers_with_carry` are never used [INFO] [stdout] --> src/problems/add_two_numbers.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 21 | pub fn add_two_numbers(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn add_two_numbers_with_carry(l1: Option>, l2: Option>, carry: bool) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `of` is never used [INFO] [stdout] --> src/problems/add_two_numbers.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 40 | fn of(val: i32, next: Option>) -> Option> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ListNodeOption` is never used [INFO] [stdout] --> src/problems/add_two_numbers.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | trait ListNodeOption { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/problems/longest_substring_without_repeating_characters.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `length_of_longest_substring` is never used [INFO] [stdout] --> src/problems/longest_substring_without_repeating_characters.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | [INFO] [stdout] 8 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `find_median_sorted_arrays` and `check_candidates` are never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 10 | pub fn find_median_sorted_arrays(nums1: Vec, nums2: Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn check_candidates(primary: &mut Finder, secondary: &mut Finder) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommonData` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct CommonData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `before_l_median_size` and `before_r_median_size` are never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl CommonData { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 47 | fn before_l_median_size(&self) -> usize { (self.final_arr_size - 1) / 2 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 48 | fn before_r_median_size(&self) -> usize { (self.final_arr_size - 0) / 2 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Indices` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Indices { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl Indices { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 58 | fn new(start: usize, end_exclusive: usize) -> Indices { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Candidate` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Candidate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 75 | impl Candidate { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 76 | fn new(num: i32, source_indices: Indices) -> Candidate { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CheckResult` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct CheckResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl CheckResult { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 86 | fn new(indices: Indices) -> CheckResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Finder` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | struct Finder { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, `find_indices`, `check`, `put_check_result`, and `get_median` are never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 101 | impl Finder { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 102 | fn new(nums: Vec, cd: CommonData) -> Finder { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn find_indices(&self, num: i32) -> Indices { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | fn check(&mut self, candidate: &Candidate) -> CheckResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn put_check_result(&mut self, candidate: &Candidate, result: &CheckResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn get_median(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NumStats` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | struct NumStats { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:188:8 [INFO] [stdout] | [INFO] [stdout] 187 | impl NumStats { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 188 | fn contains(&self, size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/problems/find_all_palindromes.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_all_palindromes` is never used [INFO] [stdout] --> src/problems/find_all_palindromes.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn find_all_palindromes(s: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StateTable` is never constructed [INFO] [stdout] --> src/problems/find_all_palindromes.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct StateTable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, `set`, `byte_index`, and `bit_index` are never used [INFO] [stdout] --> src/problems/find_all_palindromes.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl StateTable { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 40 | fn new(size: usize) -> StateTable { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn get(&self, i: usize, j: usize) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn set(&mut self, i: usize, j: usize, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn byte_index(&self, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn bit_index(&self, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/add_two_numbers.rs:10:8 [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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/problems/add_two_numbers.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `add_two_numbers` and `add_two_numbers_with_carry` are never used [INFO] [stdout] --> src/problems/add_two_numbers.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 21 | pub fn add_two_numbers(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn add_two_numbers_with_carry(l1: Option>, l2: Option>, carry: bool) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `of` is never used [INFO] [stdout] --> src/problems/add_two_numbers.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 40 | fn of(val: i32, next: Option>) -> Option> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ListNodeOption` is never used [INFO] [stdout] --> src/problems/add_two_numbers.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | trait ListNodeOption { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/problems/longest_substring_without_repeating_characters.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `length_of_longest_substring` is never used [INFO] [stdout] --> src/problems/longest_substring_without_repeating_characters.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | [INFO] [stdout] 8 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `find_median_sorted_arrays` and `check_candidates` are never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 10 | pub fn find_median_sorted_arrays(nums1: Vec, nums2: Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn check_candidates(primary: &mut Finder, secondary: &mut Finder) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommonData` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct CommonData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `before_l_median_size` and `before_r_median_size` are never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl CommonData { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 47 | fn before_l_median_size(&self) -> usize { (self.final_arr_size - 1) / 2 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 48 | fn before_r_median_size(&self) -> usize { (self.final_arr_size - 0) / 2 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Indices` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Indices { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl Indices { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 58 | fn new(start: usize, end_exclusive: usize) -> Indices { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Candidate` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Candidate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 75 | impl Candidate { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 76 | fn new(num: i32, source_indices: Indices) -> Candidate { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CheckResult` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct CheckResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl CheckResult { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 86 | fn new(indices: Indices) -> CheckResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Finder` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | struct Finder { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, `find_indices`, `check`, `put_check_result`, and `get_median` are never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 101 | impl Finder { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 102 | fn new(nums: Vec, cd: CommonData) -> Finder { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn find_indices(&self, num: i32) -> Indices { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | fn check(&mut self, candidate: &Candidate) -> CheckResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn put_check_result(&mut self, candidate: &Candidate, result: &CheckResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn get_median(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NumStats` is never constructed [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | struct NumStats { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> src/problems/median_of_two_sorted_arrays.rs:188:8 [INFO] [stdout] | [INFO] [stdout] 187 | impl NumStats { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 188 | fn contains(&self, size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/problems/find_all_palindromes.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_all_palindromes` is never used [INFO] [stdout] --> src/problems/find_all_palindromes.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn find_all_palindromes(s: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StateTable` is never constructed [INFO] [stdout] --> src/problems/find_all_palindromes.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct StateTable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, `set`, `byte_index`, and `bit_index` are never used [INFO] [stdout] --> src/problems/find_all_palindromes.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl StateTable { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 40 | fn new(size: usize) -> StateTable { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn get(&self, i: usize, j: usize) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn set(&mut self, i: usize, j: usize, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn byte_index(&self, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn bit_index(&self, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] running `Command { std: "docker" "inspect" "cf10a52ecdf95869bbe829715b5537dda76d95157b3d95479a93abf5b366698b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf10a52ecdf95869bbe829715b5537dda76d95157b3d95479a93abf5b366698b", kill_on_drop: false }` [INFO] [stdout] cf10a52ecdf95869bbe829715b5537dda76d95157b3d95479a93abf5b366698b