[INFO] cloning repository https://github.com/NaizDis/leetcode_rust_assets [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NaizDis/leetcode_rust_assets" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNaizDis%2Fleetcode_rust_assets", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNaizDis%2Fleetcode_rust_assets'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2e7ea22b928de327ef84e5cf9e3f92462da51410 [INFO] checking NaizDis/leetcode_rust_assets/2e7ea22b928de327ef84e5cf9e3f92462da51410 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNaizDis%2Fleetcode_rust_assets" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NaizDis/leetcode_rust_assets on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NaizDis/leetcode_rust_assets [INFO] finished tweaking git repo https://github.com/NaizDis/leetcode_rust_assets [INFO] tweaked toml for git repo https://github.com/NaizDis/leetcode_rust_assets written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/NaizDis/leetcode_rust_assets 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 40412ce6e7996a5a966e10bcb8af604cda73a5e7621eb0bc24491d93dc84e0be [INFO] running `Command { std: "docker" "start" "-a" "40412ce6e7996a5a966e10bcb8af604cda73a5e7621eb0bc24491d93dc84e0be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "40412ce6e7996a5a966e10bcb8af604cda73a5e7621eb0bc24491d93dc84e0be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40412ce6e7996a5a966e10bcb8af604cda73a5e7621eb0bc24491d93dc84e0be", kill_on_drop: false }` [INFO] [stdout] 40412ce6e7996a5a966e10bcb8af604cda73a5e7621eb0bc24491d93dc84e0be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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 -Dtail_expr_drop_order" "-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27cee2d4e623d2f29936253c6d3ecabe94a65cd250a9a99441d2e60cd67feba4 [INFO] running `Command { std: "docker" "start" "-a" "27cee2d4e623d2f29936253c6d3ecabe94a65cd250a9a99441d2e60cd67feba4", kill_on_drop: false }` [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::linklist::middle_node` [INFO] [stdout] --> src/lib/binary_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::linklist::middle_node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Output` [INFO] [stdout] --> src/lib/linklist.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::process::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `num` [INFO] [stdout] --> src/lib/sliding_win.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 3 | num, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp::Ordering` and `ops::RangeBounds` [INFO] [stdout] --> src/lib/two_pointer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp::Ordering, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 3 | collections::{HashMap, HashSet}, [INFO] [stdout] 4 | ops::RangeBounds, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::linklist::middle_node` [INFO] [stdout] --> src/lib/binary_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::linklist::middle_node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Output` [INFO] [stdout] --> src/lib/linklist.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::process::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `num` [INFO] [stdout] --> src/lib/sliding_win.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 3 | num, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp::Ordering` and `ops::RangeBounds` [INFO] [stdout] --> src/lib/two_pointer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp::Ordering, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 3 | collections::{HashMap, HashSet}, [INFO] [stdout] 4 | ops::RangeBounds, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `m` is never read [INFO] [stdout] --> src/lib/binary_search.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let mut m = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `m` is never read [INFO] [stdout] --> src/lib/binary_search.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut m = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib/binary_search.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let mut start: i32; [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/lib/binary_search.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let mut end: i32; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib/hashmap.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut res: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib/hashmap.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut res: Vec = 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/lib/two_pointer.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn sorted_squares(mut nums: Vec) -> 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/lib/two_pointer.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn max_area(mut height: Vec) -> i32 { [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/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut s = "race a car".to_string(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_alternately` is never used [INFO] [stdout] --> src/lib/array_strings.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn merge_alternately(word1: String, word2: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `roman_to_int` is never used [INFO] [stdout] --> src/lib/array_strings.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_subsequence` is never used [INFO] [stdout] --> src/lib/array_strings.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn is_subsequence(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_profit` is never used [INFO] [stdout] --> src/lib/array_strings.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn max_profit(prices: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_common_prefix` is never used [INFO] [stdout] --> src/lib/array_strings.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn longest_common_prefix(strs: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `summary_ranges` is never used [INFO] [stdout] --> src/lib/array_strings.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn summary_ranges(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `product_except_self` is never used [INFO] [stdout] --> src/lib/array_strings.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn product_except_self(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge` is never used [INFO] [stdout] --> src/lib/array_strings.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn merge(mut intervals: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_closest_number` is never used [INFO] [stdout] --> src/lib/array_strings.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn find_closest_number(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spiral_order` is never used [INFO] [stdout] --> src/lib/array_strings.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn spiral_order(matrix: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotate` is never used [INFO] [stdout] --> src/lib/array_strings.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn rotate(matrix: &mut Vec>) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `larg_arith_sub` is never used [INFO] [stdout] --> src/lib/array_strings.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn larg_arith_sub(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_sub_array` is never used [INFO] [stdout] --> src/lib/array_strings.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn max_sub_array(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/lib/binary_search.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn search(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_insert` is never used [INFO] [stdout] --> src/lib/binary_search.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn search_insert(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_perfect_square` is never used [INFO] [stdout] --> src/lib/binary_search.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn is_perfect_square(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_matrix` is never used [INFO] [stdout] --> src/lib/binary_search.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn search_matrix(matrix: Vec>, target: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_min` is never used [INFO] [stdout] --> src/lib/binary_search.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn find_min(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_rot` is never used [INFO] [stdout] --> src/lib/binary_search.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn search_rot(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_eating_speed` is never used [INFO] [stdout] --> src/lib/binary_search.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn min_eating_speed(piles: Vec, h: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `k_test` is never used [INFO] [stdout] --> src/lib/binary_search.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn k_test(pp: &Vec, hr: i32, k: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_jewels_in_stones` is never used [INFO] [stdout] --> src/lib/hashmap.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn num_jewels_in_stones(jewels: String, stones: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains_duplicate` is never used [INFO] [stdout] --> src/lib/hashmap.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn contains_duplicate(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_construct` is never used [INFO] [stdout] --> src/lib/hashmap.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn can_construct(ransom_note: String, magazine: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_anagram` is never used [INFO] [stdout] --> src/lib/hashmap.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn is_anagram(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_number_of_balloons` is never used [INFO] [stdout] --> src/lib/hashmap.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn max_number_of_balloons(text: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum` is never used [INFO] [stdout] --> src/lib/hashmap.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `group_anagrams` is never used [INFO] [stdout] --> src/lib/hashmap.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn group_anagrams(strs: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `majority_element` is never used [INFO] [stdout] --> src/lib/hashmap.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn majority_element(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_consecutive` is never used [INFO] [stdout] --> src/lib/hashmap.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn longest_consecutive(mut nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_consecutive2` is never used [INFO] [stdout] --> src/lib/hashmap.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn longest_consecutive2(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib/linklist.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 10 | #[inline] [INFO] [stdout] 11 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_duplicates` is never used [INFO] [stdout] --> src/lib/linklist.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_list` is never used [INFO] [stdout] --> src/lib/linklist.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn reverse_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_two_lists` is never used [INFO] [stdout] --> src/lib/linklist.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `middle_node` is never used [INFO] [stdout] --> src/lib/linklist.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn middle_node(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_max_average` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn find_max_average(nums: Vec, k: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_ones` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn longest_ones(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_of_longest_substring` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `character_replacement` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn character_replacement(s: String, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_sub_array_len` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn min_sub_array_len(target: i32, nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `m` is never read [INFO] [stdout] --> src/lib/binary_search.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let mut m = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_inclusion` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn check_inclusion(s1: String, s2: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `m` is never read [INFO] [stdout] --> src/lib/binary_search.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut m = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cal_points` is never used [INFO] [stdout] --> src/lib/stack.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn cal_points(operations: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid` is never used [INFO] [stdout] --> src/lib/stack.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib/binary_search.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let mut start: i32; [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/lib/binary_search.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let mut end: i32; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_rpn` is never used [INFO] [stdout] --> src/lib/stack.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn eval_rpn(tokens: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `daily_temperatures` is never used [INFO] [stdout] --> src/lib/stack.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn daily_temperatures(temperatures: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MinStack` is never constructed [INFO] [stdout] --> src/lib/stack.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | struct MinStack { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, `top`, and `get_min` are never used [INFO] [stdout] --> src/lib/stack.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 120 | impl MinStack { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 121 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | fn push(&mut self, val: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | fn top(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | fn get_min(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sorted_squares` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn sorted_squares(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_string` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn reverse_string(s: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn two_sum(numbers: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `three_sum` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn three_sum(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_area` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn max_area(mut height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trap` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn trap(height: Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib/linklist.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 40 | l1: Option>, [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 41 | l2: Option>, [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | ) -> Option> { [INFO] [stdout] 43 | match (l1, l2) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib/hashmap.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut res: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib/hashmap.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut res: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (bin "leetcode" test) due to 2 previous errors; 68 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib/two_pointer.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn sorted_squares(mut nums: Vec) -> 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/lib/two_pointer.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn max_area(mut height: Vec) -> i32 { [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/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut s = "race a car".to_string(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_alternately` is never used [INFO] [stdout] --> src/lib/array_strings.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn merge_alternately(word1: String, word2: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `roman_to_int` is never used [INFO] [stdout] --> src/lib/array_strings.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_subsequence` is never used [INFO] [stdout] --> src/lib/array_strings.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn is_subsequence(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_profit` is never used [INFO] [stdout] --> src/lib/array_strings.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn max_profit(prices: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_common_prefix` is never used [INFO] [stdout] --> src/lib/array_strings.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn longest_common_prefix(strs: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `summary_ranges` is never used [INFO] [stdout] --> src/lib/array_strings.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn summary_ranges(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `product_except_self` is never used [INFO] [stdout] --> src/lib/array_strings.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn product_except_self(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge` is never used [INFO] [stdout] --> src/lib/array_strings.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn merge(mut intervals: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_closest_number` is never used [INFO] [stdout] --> src/lib/array_strings.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn find_closest_number(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spiral_order` is never used [INFO] [stdout] --> src/lib/array_strings.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn spiral_order(matrix: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotate` is never used [INFO] [stdout] --> src/lib/array_strings.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn rotate(matrix: &mut Vec>) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `larg_arith_sub` is never used [INFO] [stdout] --> src/lib/array_strings.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn larg_arith_sub(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_sub_array` is never used [INFO] [stdout] --> src/lib/array_strings.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn max_sub_array(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/lib/binary_search.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn search(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_insert` is never used [INFO] [stdout] --> src/lib/binary_search.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn search_insert(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_perfect_square` is never used [INFO] [stdout] --> src/lib/binary_search.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn is_perfect_square(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_matrix` is never used [INFO] [stdout] --> src/lib/binary_search.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn search_matrix(matrix: Vec>, target: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_min` is never used [INFO] [stdout] --> src/lib/binary_search.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn find_min(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_rot` is never used [INFO] [stdout] --> src/lib/binary_search.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn search_rot(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_eating_speed` is never used [INFO] [stdout] --> src/lib/binary_search.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn min_eating_speed(piles: Vec, h: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `k_test` is never used [INFO] [stdout] --> src/lib/binary_search.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn k_test(pp: &Vec, hr: i32, k: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_jewels_in_stones` is never used [INFO] [stdout] --> src/lib/hashmap.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn num_jewels_in_stones(jewels: String, stones: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains_duplicate` is never used [INFO] [stdout] --> src/lib/hashmap.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn contains_duplicate(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_construct` is never used [INFO] [stdout] --> src/lib/hashmap.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn can_construct(ransom_note: String, magazine: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_anagram` is never used [INFO] [stdout] --> src/lib/hashmap.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn is_anagram(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_number_of_balloons` is never used [INFO] [stdout] --> src/lib/hashmap.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn max_number_of_balloons(text: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum` is never used [INFO] [stdout] --> src/lib/hashmap.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `group_anagrams` is never used [INFO] [stdout] --> src/lib/hashmap.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn group_anagrams(strs: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `majority_element` is never used [INFO] [stdout] --> src/lib/hashmap.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn majority_element(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_consecutive` is never used [INFO] [stdout] --> src/lib/hashmap.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn longest_consecutive(mut nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_consecutive2` is never used [INFO] [stdout] --> src/lib/hashmap.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn longest_consecutive2(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib/linklist.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 10 | #[inline] [INFO] [stdout] 11 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_duplicates` is never used [INFO] [stdout] --> src/lib/linklist.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_list` is never used [INFO] [stdout] --> src/lib/linklist.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn reverse_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_two_lists` is never used [INFO] [stdout] --> src/lib/linklist.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `middle_node` is never used [INFO] [stdout] --> src/lib/linklist.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn middle_node(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_max_average` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn find_max_average(nums: Vec, k: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_ones` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn longest_ones(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_of_longest_substring` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `character_replacement` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn character_replacement(s: String, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_sub_array_len` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn min_sub_array_len(target: i32, nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_inclusion` is never used [INFO] [stdout] --> src/lib/sliding_win.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn check_inclusion(s1: String, s2: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cal_points` is never used [INFO] [stdout] --> src/lib/stack.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn cal_points(operations: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid` is never used [INFO] [stdout] --> src/lib/stack.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_rpn` is never used [INFO] [stdout] --> src/lib/stack.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn eval_rpn(tokens: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `daily_temperatures` is never used [INFO] [stdout] --> src/lib/stack.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn daily_temperatures(temperatures: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MinStack` is never constructed [INFO] [stdout] --> src/lib/stack.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | struct MinStack { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, `top`, and `get_min` are never used [INFO] [stdout] --> src/lib/stack.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 120 | impl MinStack { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 121 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | fn push(&mut self, val: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | fn top(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | fn get_min(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sorted_squares` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn sorted_squares(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_string` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn reverse_string(s: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn two_sum(numbers: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `three_sum` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn three_sum(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_area` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn max_area(mut height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trap` is never used [INFO] [stdout] --> src/lib/two_pointer.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn trap(height: Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib/linklist.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 40 | l1: Option>, [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 41 | l2: Option>, [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | ) -> Option> { [INFO] [stdout] 43 | match (l1, l2) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (bin "leetcode") due to 2 previous errors; 68 warnings emitted [INFO] running `Command { std: "docker" "inspect" "27cee2d4e623d2f29936253c6d3ecabe94a65cd250a9a99441d2e60cd67feba4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27cee2d4e623d2f29936253c6d3ecabe94a65cd250a9a99441d2e60cd67feba4", kill_on_drop: false }` [INFO] [stdout] 27cee2d4e623d2f29936253c6d3ecabe94a65cd250a9a99441d2e60cd67feba4