[INFO] cloning repository https://github.com/Kilerd/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/Kilerd/leetcode-rust" "/workspace/cache/git-repos/https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fgithub.com%2FKilerd%2Fleetcode-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fgithub.com%2FKilerd%2Fleetcode-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 187ad50d630af17e7fa02bc075d8f94e67710f15 [INFO] testing Kilerd/leetcode-rust against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fgithub.com%2FKilerd%2Fleetcode-rust" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Kilerd/leetcode-rust on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Kilerd/leetcode-rust [INFO] finished tweaking git repo https://github.com/Kilerd/leetcode-rust [INFO] tweaked toml for git repo https://github.com/Kilerd/leetcode-rust written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/Kilerd/leetcode-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 6ce83e6f01e15ff4f622bd3fd331f2f095f309071957f3848b80d06919eb0862 [INFO] running `Command { std: "docker" "start" "-a" "6ce83e6f01e15ff4f622bd3fd331f2f095f309071957f3848b80d06919eb0862", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6ce83e6f01e15ff4f622bd3fd331f2f095f309071957f3848b80d06919eb0862", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ce83e6f01e15ff4f622bd3fd331f2f095f309071957f3848b80d06919eb0862", kill_on_drop: false }` [INFO] [stdout] 6ce83e6f01e15ff4f622bd3fd331f2f095f309071957f3848b80d06919eb0862 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5725b48556d52a0792795b0ac9d7d8c65af505fbfed0b874ed10553be63335a2 [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" "5725b48556d52a0792795b0ac9d7d8c65af505fbfed0b874ed10553be63335a2", kill_on_drop: false }` [INFO] [stderr] Compiling leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/maximum_depth_of_binary_tree.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/apply_discount_every_n_orders.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ShlAssign`, `Shl`, `Shr` [INFO] [stdout] --> src/convert_a_number_to_hexadecimal.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Shl, ShlAssign, Shr}; [INFO] [stdout] | ^^^ ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hint::unreachable_unchecked` [INFO] [stdout] --> src/convert_a_number_to_hexadecimal.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hint::unreachable_unchecked; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/container_with_most_water.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | /// two pointer solution [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | [INFO] [stdout] 24 | let mut start = 0usize; [INFO] [stdout] | ----------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | 1000...std::i32::MAX => ("M", 1000), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | 900...1000 => ("CM", 900), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | 500...900 => ("D", 500), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | 400...500 => ("CD", 400), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | 100...400 => ("C", 100), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | 90...100 => ("XC", 90), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | 50...90 => ("L", 50), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | 40...50 => ("XL", 40), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | 10...40 => ("X", 10), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | 5...9 => ("V", 5), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | 1...4 => ("I", 1), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/nim_game.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | 1...3 => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::i32` [INFO] [stdout] --> src/reverse_integer.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use std::i32; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/three_sum_closest.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 15 | 1000...std::i32::MAX => ("M", 1000), [INFO] [stdout] | -------------------- this range overlaps on `1000_i32`... [INFO] [stdout] 16 | 900...1000 => ("CM", 900), [INFO] [stdout] | ^^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(overlapping_range_endpoints)]` on by default [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 16 | 900...1000 => ("CM", 900), [INFO] [stdout] | ---------- this range overlaps on `900_i32`... [INFO] [stdout] 17 | 500...900 => ("D", 500), [INFO] [stdout] | ^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 17 | 500...900 => ("D", 500), [INFO] [stdout] | --------- this range overlaps on `500_i32`... [INFO] [stdout] 18 | 400...500 => ("CD", 400), [INFO] [stdout] | ^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 18 | 400...500 => ("CD", 400), [INFO] [stdout] | --------- this range overlaps on `400_i32`... [INFO] [stdout] 19 | 100...400 => ("C", 100), [INFO] [stdout] | ^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 19 | 100...400 => ("C", 100), [INFO] [stdout] | --------- this range overlaps on `100_i32`... [INFO] [stdout] 20 | 90...100 => ("XC", 90), [INFO] [stdout] | ^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 20 | 90...100 => ("XC", 90), [INFO] [stdout] | -------- this range overlaps on `90_i32`... [INFO] [stdout] 21 | 50...90 => ("L", 50), [INFO] [stdout] | ^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 21 | 50...90 => ("L", 50), [INFO] [stdout] | ------- this range overlaps on `50_i32`... [INFO] [stdout] 22 | 40...50 => ("XL", 40), [INFO] [stdout] | ^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 22 | 40...50 => ("XL", 40), [INFO] [stdout] | ------- this range overlaps on `40_i32`... [INFO] [stdout] 23 | 10...40 => ("X", 10), [INFO] [stdout] | ^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/convert_a_number_to_hexadecimal.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | for i in 0..8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `map` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/three_sum.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 17 | let value = map.get(&x).unwrap_or(&0); [INFO] [stdout] | ----------- immutable borrow occurs here [INFO] [stdout] 18 | map.insert(x, *value + 1); [INFO] [stdout] | ^^^^^^^^^^^^^^------^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/combination_sum.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | let mut vec1 = Solution::combination_sum(candidates.clone(), target - *x); [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/binary_tree_level_order_traversal.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | 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: `new` [INFO] [stdout] --> src/binary_tree_level_order_traversal.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `level_order` [INFO] [stdout] --> src/binary_tree_level_order_traversal.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn level_order(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/maximum_depth_of_binary_tree.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/maximum_depth_of_binary_tree.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_depth` [INFO] [stdout] --> src/maximum_depth_of_binary_tree.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/invert_binary_tree.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/invert_binary_tree.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `invert_tree` [INFO] [stdout] --> src/invert_binary_tree.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn invert_tree(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/same_tree.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/same_tree.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_same_tree` [INFO] [stdout] --> src/same_tree.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn is_same_tree(p: Option>>, q: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cashier` [INFO] [stdout] --> src/apply_discount_every_n_orders.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct Cashier { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/apply_discount_every_n_orders.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | fn new(n: i32, discount: i32, products: Vec, prices: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_bill` [INFO] [stdout] --> src/apply_discount_every_n_orders.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn get_bill(&mut self, product: Vec, amount: Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/convert_a_number_to_hexadecimal.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_hex` [INFO] [stdout] --> src/convert_a_number_to_hexadecimal.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn to_hex(num: i32) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/permutations.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `permute` [INFO] [stdout] --> src/permutations.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn permute(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/add_two_number.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_two_numbers` [INFO] [stdout] --> src/add_two_number.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn add_two_numbers(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/array_partition_i.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `array_pair_sum` [INFO] [stdout] --> src/array_partition_i.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn array_pair_sum(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/big_countries.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/big_countries.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/container_with_most_water.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_area` [INFO] [stdout] --> src/container_with_most_water.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn max_area(height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/di_string_match.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `di_string_match` [INFO] [stdout] --> src/di_string_match.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn di_string_match(s: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/divide_two_integers.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `divide` [INFO] [stdout] --> src/divide_two_integers.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn divide(dividend: i32, divisor: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/flipping_an_image.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `flip_and_invert_image` [INFO] [stdout] --> src/flipping_an_image.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn flip_and_invert_image(a: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/generate_parentheses.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_parenthesis` [INFO] [stdout] --> src/generate_parentheses.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/hamming_distance.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hamming_distance` [INFO] [stdout] --> src/hamming_distance.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn hamming_distance(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/implement_strstr.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `str_str` [INFO] [stdout] --> src/implement_strstr.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn str_str(haystack: String, needle: String) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/integer_to_roman.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `int_to_roman` [INFO] [stdout] --> src/integer_to_roman.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn int_to_roman(num: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/jewels_and_stones.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_jewels_in_stones` [INFO] [stdout] --> src/jewels_and_stones.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn num_jewels_in_stones(j: String, s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/letter_combinations_of_a_phone_number.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `letter_combinations` [INFO] [stdout] --> src/letter_combinations_of_a_phone_number.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn letter_combinations(digits: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/list.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_from_vec` [INFO] [stdout] --> src/list.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn build_from_vec(vec: Vec)-> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/longest_substring_without_repeating_characters.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `length_of_longest_substring` [INFO] [stdout] --> src/longest_substring_without_repeating_characters.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/merge_two_binary_trees.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/merge_two_binary_trees.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge_trees` [INFO] [stdout] --> src/merge_two_binary_trees.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn merge_trees( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/nim_game.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_win_nim` [INFO] [stdout] --> src/nim_game.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn can_win_nim(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RecentCounter` [INFO] [stdout] --> src/number_of_recent_calls.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct RecentCounter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/number_of_recent_calls.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ping` [INFO] [stdout] --> src/number_of_recent_calls.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn ping(&mut self, t: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/palindrome_number.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_palindrome` [INFO] [stdout] --> src/palindrome_number.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn is_palindrome(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/peak_index_in_a_mountain_array.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peak_index_in_mountain_array` [INFO] [stdout] --> src/peak_index_in_a_mountain_array.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn peak_index_in_mountain_array(a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/remove_duplicates_from_sorted_array.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_duplicates` [INFO] [stdout] --> src/remove_duplicates_from_sorted_array.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_duplicates(nums: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/remove_element.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_element` [INFO] [stdout] --> src/remove_element.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_element(nums: &mut Vec, val: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/reverse_integer.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse` [INFO] [stdout] --> src/reverse_integer.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn reverse(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/robot_return_to_origin.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `judge_circle` [INFO] [stdout] --> src/robot_return_to_origin.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn judge_circle(moves: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/search_in_rotated_sorted_array.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotated_index` [INFO] [stdout] --> src/search_in_rotated_sorted_array.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn rotated_index(nums: &Vec, start: usize, end: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `search` [INFO] [stdout] --> src/search_in_rotated_sorted_array.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn search(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/self_dividing_numbers.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `self_dividing_numbers` [INFO] [stdout] --> src/self_dividing_numbers.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn self_dividing_numbers(left: i32, right: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/sort_array_by_parity.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `self_dividing_numbers` [INFO] [stdout] --> src/sort_array_by_parity.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn self_dividing_numbers(left: i32, right: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/sort_array_by_parity_ii.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sort_array_by_parity_ii` [INFO] [stdout] --> src/sort_array_by_parity_ii.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn sort_array_by_parity_ii(a: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/sort_colors.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sort_colors` [INFO] [stdout] --> src/sort_colors.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn sort_colors(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/string_to_integer_atoi.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `my_atoi` [INFO] [stdout] --> src/string_to_integer_atoi.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn my_atoi(str_: String) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/sudoku_solver.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `solve_sudoku` [INFO] [stdout] --> src/sudoku_solver.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn solve_sudoku(board: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `invalid` [INFO] [stdout] --> src/sudoku_solver.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn invalid(board: &Vec>, x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/three_sum.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `three_sum` [INFO] [stdout] --> src/three_sum.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn three_sum(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/three_sum_closest.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `three_sum_closest` [INFO] [stdout] --> src/three_sum_closest.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn three_sum_closest(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/to_lower_case.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_lower_case` [INFO] [stdout] --> src/to_lower_case.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn to_lower_case(str: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/two_sum.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `two_sum` [INFO] [stdout] --> src/two_sum.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/unique_email_addresses.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_unique_emails` [INFO] [stdout] --> src/unique_email_addresses.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn num_unique_emails(emails: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/unique_morse_code_words.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unique_morse_representations` [INFO] [stdout] --> src/unique_morse_code_words.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn unique_morse_representations(words: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/valid_parentheses.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/valid_parentheses.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/valid_sudoku.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid_sudoku` [INFO] [stdout] --> src/valid_sudoku.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn is_valid_sudoku(board: Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/zigzag_conversion.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `convert` [INFO] [stdout] --> src/zigzag_conversion.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn convert(s: String, num_rows: i32) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/combination_sum.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `combination_sum` [INFO] [stdout] --> src/combination_sum.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn combination_sum(candidates: Vec, target: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/sort_colors.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | let value = if 0 <= i && i < counts[0] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 136 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.19s [INFO] running `Command { std: "docker" "inspect" "5725b48556d52a0792795b0ac9d7d8c65af505fbfed0b874ed10553be63335a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5725b48556d52a0792795b0ac9d7d8c65af505fbfed0b874ed10553be63335a2", kill_on_drop: false }` [INFO] [stdout] 5725b48556d52a0792795b0ac9d7d8c65af505fbfed0b874ed10553be63335a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c261ebd99631ce9ae849542a5d58307e9fd12c78a19eb1951865a4b3a7e177c [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" "9c261ebd99631ce9ae849542a5d58307e9fd12c78a19eb1951865a4b3a7e177c", kill_on_drop: false }` [INFO] [stderr] Compiling leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/maximum_depth_of_binary_tree.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/apply_discount_every_n_orders.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ShlAssign`, `Shl`, `Shr` [INFO] [stdout] --> src/convert_a_number_to_hexadecimal.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Shl, ShlAssign, Shr}; [INFO] [stdout] | ^^^ ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hint::unreachable_unchecked` [INFO] [stdout] --> src/convert_a_number_to_hexadecimal.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hint::unreachable_unchecked; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/container_with_most_water.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | /// two pointer solution [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | [INFO] [stdout] 24 | let mut start = 0usize; [INFO] [stdout] | ----------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | 1000...std::i32::MAX => ("M", 1000), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | 900...1000 => ("CM", 900), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | 500...900 => ("D", 500), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | 400...500 => ("CD", 400), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | 100...400 => ("C", 100), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | 90...100 => ("XC", 90), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | 50...90 => ("L", 50), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | 40...50 => ("XL", 40), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | 10...40 => ("X", 10), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | 5...9 => ("V", 5), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/integer_to_roman.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | 1...4 => ("I", 1), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/nim_game.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | 1...3 => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::i32` [INFO] [stdout] --> src/reverse_integer.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use std::i32; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/three_sum_closest.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 15 | 1000...std::i32::MAX => ("M", 1000), [INFO] [stdout] | -------------------- this range overlaps on `1000_i32`... [INFO] [stdout] 16 | 900...1000 => ("CM", 900), [INFO] [stdout] | ^^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(overlapping_range_endpoints)]` on by default [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 16 | 900...1000 => ("CM", 900), [INFO] [stdout] | ---------- this range overlaps on `900_i32`... [INFO] [stdout] 17 | 500...900 => ("D", 500), [INFO] [stdout] | ^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 17 | 500...900 => ("D", 500), [INFO] [stdout] | --------- this range overlaps on `500_i32`... [INFO] [stdout] 18 | 400...500 => ("CD", 400), [INFO] [stdout] | ^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 18 | 400...500 => ("CD", 400), [INFO] [stdout] | --------- this range overlaps on `400_i32`... [INFO] [stdout] 19 | 100...400 => ("C", 100), [INFO] [stdout] | ^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 19 | 100...400 => ("C", 100), [INFO] [stdout] | --------- this range overlaps on `100_i32`... [INFO] [stdout] 20 | 90...100 => ("XC", 90), [INFO] [stdout] | ^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 20 | 90...100 => ("XC", 90), [INFO] [stdout] | -------- this range overlaps on `90_i32`... [INFO] [stdout] 21 | 50...90 => ("L", 50), [INFO] [stdout] | ^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 21 | 50...90 => ("L", 50), [INFO] [stdout] | ------- this range overlaps on `50_i32`... [INFO] [stdout] 22 | 40...50 => ("XL", 40), [INFO] [stdout] | ^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/integer_to_roman.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 22 | 40...50 => ("XL", 40), [INFO] [stdout] | ------- this range overlaps on `40_i32`... [INFO] [stdout] 23 | 10...40 => ("X", 10), [INFO] [stdout] | ^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/convert_a_number_to_hexadecimal.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | for i in 0..8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `map` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/three_sum.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 17 | let value = map.get(&x).unwrap_or(&0); [INFO] [stdout] | ----------- immutable borrow occurs here [INFO] [stdout] 18 | map.insert(x, *value + 1); [INFO] [stdout] | ^^^^^^^^^^^^^^------^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/combination_sum.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | let mut vec1 = Solution::combination_sum(candidates.clone(), target - *x); [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/sudoku_solver.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut expected_solution = vec![ [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/sudoku_solver.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let mut expected_solution = vec![ [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/invert_binary_tree.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | 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: `new` [INFO] [stdout] --> src/invert_binary_tree.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `invert_tree` [INFO] [stdout] --> src/invert_binary_tree.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn invert_tree(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/big_countries.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/big_countries.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/list.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/merge_two_binary_trees.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/merge_two_binary_trees.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge_trees` [INFO] [stdout] --> src/merge_two_binary_trees.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn merge_trees( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RecentCounter` [INFO] [stdout] --> src/number_of_recent_calls.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct RecentCounter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/number_of_recent_calls.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ping` [INFO] [stdout] --> src/number_of_recent_calls.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn ping(&mut self, t: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/sort_colors.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | let value = if 0 <= i && i < counts[0] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: erroneous constant used [INFO] [stdout] --> src/three_sum.rs:17:47 [INFO] [stdout] | [INFO] [stdout] 17 | let value = map.get(&x).unwrap_or(&0); [INFO] [stdout] | ^^ referenced constant has errors [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_err)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #71800 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: erroneous constant used [INFO] [stdout] --> src/three_sum.rs:31:43 [INFO] [stdout] | [INFO] [stdout] 31 | if map.get(&i1).unwrap_or(&0) > &except_size { [INFO] [stdout] | ^^ referenced constant has errors [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #71800 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] thread 'rustc' panicked at 'Box', /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/compiler/rustc_errors/src/lib.rs:1106:9 [INFO] [stdout] error: internal compiler error: /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/compiler/rustc_codegen_ssa/src/mir/constant.rs:42:20: encountered bad ConstKind after monomorphizing: Error(DelaySpanBugEmitted(())) [INFO] [stdout] --> src/three_sum.rs:17:47 [INFO] [stdout] | [INFO] [stdout] 17 | let value = map.get(&x).unwrap_or(&0); [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x7f6f95a6884c - std::backtrace_rs::backtrace::libunwind::trace::h02555d7ca8aa068a [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stderr] 1: 0x7f6f95a6884c - std::backtrace_rs::backtrace::trace_unsynchronized::h8555a46024147da8 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stderr] 2: 0x7f6f95a6884c - std::sys_common::backtrace::_print_fmt::h4c7f50b4f105da1e [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stderr] 3: 0x7f6f95a6884c - ::fmt::ha305a40dbc030444 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stderr] 4: 0x7f6f95ac82ec - core::fmt::write::hadd15acf4d6ce273 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/fmt/mod.rs:1190:17 [INFO] [stderr] 5: 0x7f6f95a58a18 - std::io::Write::write_fmt::h0f87f6c0c21ec48a [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/io/mod.rs:1657:15 [INFO] [stderr] 6: 0x7f6f95a6c817 - std::sys_common::backtrace::_print::h0dd5c0810675bd8c [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stderr] 7: 0x7f6f95a6c817 - std::sys_common::backtrace::print::h20a2155fa0a22ca6 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stderr] 8: 0x7f6f95a6c817 - std::panicking::default_hook::{{closure}}::habb3b6f3ccdfe00a [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:295:22 [INFO] [stderr] 9: 0x7f6f95a6c4df - std::panicking::default_hook::h1c5cf4d5063a38e4 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:314:9 [INFO] [stderr] 10: 0x7f6f961f8d01 - rustc_driver[6bef90fb01cd5c5b]::DEFAULT_HOOK::{closure#0}::{closure#0} [INFO] [stderr] 11: 0x7f6f95a6d0e5 - std::panicking::rust_panic_with_hook::hb5de7a3072d2cf59 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:702:17 [INFO] [stderr] 12: 0x7f6f9632ad91 - std[f28d7f26b77e9927]::panicking::begin_panic::::{closure#0} [INFO] [stderr] 13: 0x7f6f9632ab46 - std[f28d7f26b77e9927]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> [INFO] [stderr] 14: 0x7f6f9635b7ef - std[f28d7f26b77e9927]::panicking::begin_panic:: [INFO] [stderr] 15: 0x7f6f96371b6d - std[f28d7f26b77e9927]::panic::panic_any:: [INFO] [stderr] 16: 0x7f6f9636eca8 - ::span_bug:: [INFO] [stderr] 17: 0x7f6f9636e980 - ::span_bug:: [INFO] [stderr] 18: 0x7f6f963436e8 - rustc_middle[35226b2a2d959981]::ty::context::tls::with_opt::::{closure#0}, ()> [INFO] [stderr] 19: 0x7f6f963439a0 - rustc_middle[35226b2a2d959981]::util::bug::opt_span_bug_fmt:: [INFO] [stderr] 20: 0x7f6f9634396c - rustc_middle[35226b2a2d959981]::util::bug::span_bug_fmt:: [INFO] [stderr] 21: 0x7f6f9747d659 - >::codegen_rvalue_operand [INFO] [stderr] 22: 0x7f6f97485861 - rustc_codegen_ssa[97459cfbebab0e68]::mir::codegen_mir:: [INFO] [stderr] 23: 0x7f6f974421e2 - rustc_codegen_llvm[b55d4a142e2be4d5]::base::compile_codegen_unit::module_codegen [INFO] [stderr] 24: 0x7f6f980caaa6 - >::with_task::> [INFO] [stderr] 25: 0x7f6f980c82bf - rustc_codegen_llvm[b55d4a142e2be4d5]::base::compile_codegen_unit [INFO] [stderr] 26: 0x7f6f980f6495 - rustc_codegen_ssa[97459cfbebab0e68]::base::codegen_crate:: [INFO] [stderr] 27: 0x7f6f980b707a - ::codegen_crate [INFO] [stderr] 28: 0x7f6f980a8de7 - ::time::, rustc_interface[b2fc20e59d639e2e]::passes::start_codegen::{closure#0}> [INFO] [stderr] 29: 0x7f6f9808f336 - ::enter::<::ongoing_codegen::{closure#0}::{closure#0}, core[c37c5d1d9572cc31]::result::Result, rustc_errors[67cbba2d4402017b]::ErrorReported>> [INFO] [stderr] 30: 0x7f6f980856af - ::ongoing_codegen [INFO] [stderr] 31: 0x7f6f9805d183 - rustc_interface[b2fc20e59d639e2e]::interface::create_compiler_and_run::, rustc_driver[6bef90fb01cd5c5b]::run_compiler::{closure#1}> [INFO] [stderr] 32: 0x7f6f98042804 - std[f28d7f26b77e9927]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver[6bef90fb01cd5c5b]::run_compiler::{closure#1}>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>> [INFO] [stderr] 33: 0x7f6f98075a99 - <::spawn_unchecked_, rustc_driver[6bef90fb01cd5c5b]::run_compiler::{closure#1}>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>>::{closure#1} as core[c37c5d1d9572cc31]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stderr] 34: 0x7f6f95a78bd3 - as core::ops::function::FnOnce>::call_once::h82a18723295373b7 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stderr] 35: 0x7f6f95a78bd3 - as core::ops::function::FnOnce>::call_once::h4b9b8634f7a2a5a4 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stderr] 36: 0x7f6f95a78bd3 - std::sys::unix::thread::Thread::new::thread_start::h3dc341aa024c6852 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stderr] 37: 0x7f6f9598a609 - start_thread [INFO] [stderr] 38: 0x7f6f958a4293 - clone [INFO] [stderr] 39: 0x0 - [INFO] [stderr] [INFO] [stderr] note: the compiler unexpectedly panicked. this is a bug. [INFO] [stderr] [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md [INFO] [stderr] [INFO] [stderr] note: rustc 1.60.0-beta.1 (0a4f984a8 2022-02-22) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: -C embed-bitcode=no -C debuginfo=2 [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] end of query stack [INFO] [stdout] error: aborting due to previous error; 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` due to previous error; 47 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9c261ebd99631ce9ae849542a5d58307e9fd12c78a19eb1951865a4b3a7e177c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c261ebd99631ce9ae849542a5d58307e9fd12c78a19eb1951865a4b3a7e177c", kill_on_drop: false }` [INFO] [stdout] 9c261ebd99631ce9ae849542a5d58307e9fd12c78a19eb1951865a4b3a7e177c