[INFO] cloning repository https://github.com/LgnMs/my-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/LgnMs/my-leetcode-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLgnMs%2Fmy-leetcode-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLgnMs%2Fmy-leetcode-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1510c4a229239e22d30000124dd90f19b5a44a60 [INFO] checking LgnMs/my-leetcode-rust/1510c4a229239e22d30000124dd90f19b5a44a60 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%2FLgnMs%2Fmy-leetcode-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LgnMs/my-leetcode-rust 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/LgnMs/my-leetcode-rust [INFO] finished tweaking git repo https://github.com/LgnMs/my-leetcode-rust [INFO] tweaked toml for git repo https://github.com/LgnMs/my-leetcode-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/LgnMs/my-leetcode-rust 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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] d17e33360e59360e0c3e28f4c4db2d212b6881afcf3b8700b05363c7f1790804 [INFO] running `Command { std: "docker" "start" "-a" "d17e33360e59360e0c3e28f4c4db2d212b6881afcf3b8700b05363c7f1790804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d17e33360e59360e0c3e28f4c4db2d212b6881afcf3b8700b05363c7f1790804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d17e33360e59360e0c3e28f4c4db2d212b6881afcf3b8700b05363c7f1790804", kill_on_drop: false }` [INFO] [stdout] d17e33360e59360e0c3e28f4c4db2d212b6881afcf3b8700b05363c7f1790804 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 4f8751b1695375ef4bccb8200c81639c0797ee290b5a72f3d6bd8ce49565c4b7 [INFO] running `Command { std: "docker" "start" "-a" "4f8751b1695375ef4bccb8200c81639c0797ee290b5a72f3d6bd8ce49565c4b7", kill_on_drop: false }` [INFO] [stderr] Checking tree v0.1.0 (/opt/rustwide/workdir/tree) [INFO] [stderr] Checking string v0.1.0 (/opt/rustwide/workdir/string) [INFO] [stderr] Checking sort v0.1.0 (/opt/rustwide/workdir/sort) [INFO] [stderr] Checking greedy v0.1.0 (/opt/rustwide/workdir/greedy) [INFO] [stderr] Checking math v0.1.0 (/opt/rustwide/workdir/math) [INFO] [stderr] Checking hash_table v0.1.0 (/opt/rustwide/workdir/hash_table) [INFO] [stderr] Checking linked_list v0.1.0 (/opt/rustwide/workdir/linked_list) [INFO] [stderr] Checking binary_search v0.1.0 (/opt/rustwide/workdir/binary_search) [INFO] [stderr] Checking dynamic_programming v0.1.0 (/opt/rustwide/workdir/dynamic_programming) [INFO] [stderr] Checking two_pointers v0.1.0 (/opt/rustwide/workdir/two_pointers) [INFO] [stderr] Checking bit_manipulation v0.1.0 (/opt/rustwide/workdir/bit_manipulation) [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> dynamic_programming/count_bits.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_palindrome` is never used [INFO] [stdout] --> math/is_palindrome.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn is_palindrome(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_one` is never used [INFO] [stdout] --> math/plus_one.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn plus_one(mut digits: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `roman_to_int` is never used [INFO] [stdout] --> math/roman_to_int.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotate` is never used [INFO] [stdout] --> math/rotate.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn rotate(nums: &mut Vec, k: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_profit2` is never used [INFO] [stdout] --> greedy/max_profit2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn max_profit2(prices: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> dynamic_programming/count_bits.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | fn count_one(mut x: i32) -> 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: function `climb_stairs` is never used [INFO] [stdout] --> dynamic_programming/climb_stairs.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn climb_stairs(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_palindrome` is never used [INFO] [stdout] --> dynamic_programming/longest_palindrome.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn is_palindrome(s: &[char]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_palindrome` is never used [INFO] [stdout] --> dynamic_programming/longest_palindrome.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn longest_palindrome(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_profit` is never used [INFO] [stdout] --> dynamic_programming/max_profit.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn max_profit(prices: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_sub_array` is never used [INFO] [stdout] --> dynamic_programming/max_sub_array.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn max_sub_array(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rob` is never used [INFO] [stdout] --> dynamic_programming/rob.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn rob(nums: Vec) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_jump` is never used [INFO] [stdout] --> dynamic_programming/can_jump.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn can_jump(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NumArray` is never constructed [INFO] [stdout] --> dynamic_programming/num_array.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct NumArray { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `sum_range` are never used [INFO] [stdout] --> dynamic_programming/num_array.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl NumArray { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 17 | [INFO] [stdout] 18 | fn new(nums: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn sum_range(&self, left: i32, right: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_bits_1` is never used [INFO] [stdout] --> dynamic_programming/count_bits.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn count_bits_1(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_bits` is never used [INFO] [stdout] --> dynamic_programming/count_bits.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn count_bits(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `intersect` is never used [INFO] [stdout] --> hash_table/intersect.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn intersect(nums1: Vec, nums2: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_of_longest_substring` is never used [INFO] [stdout] --> hash_table/length_of_longest_substring.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum` is never used [INFO] [stdout] --> hash_table/two_sum.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_uniq_char` is never used [INFO] [stdout] --> string/first_uniq_char.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn first_uniq_char(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_anagram` is never used [INFO] [stdout] --> string/is_anagram.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn is_anagram(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_palindrome` is never used [INFO] [stdout] --> string/is_palindrome.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn is_palindrome(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse` is never used [INFO] [stdout] --> string/reverse.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn reverse(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_string` is never used [INFO] [stdout] --> string/reverse_string.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn reverse_string(s: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers` is never used [INFO] [stdout] --> linked_list/add_two_numbers.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_palindrome` is never used [INFO] [stdout] --> linked_list/is_palindrome.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn is_palindrome(head: Option>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> linked_list/linked_list_utils.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | #[inline] [INFO] [stdout] 10 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_list_node` is never used [INFO] [stdout] --> linked_list/linked_list_utils.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn generate_list_node(vecs: Vec) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_two_lists` is never used [INFO] [stdout] --> linked_list/merge_two_lists.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_list` is never used [INFO] [stdout] --> linked_list/reverse_list.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn reverse_list(head: Option>) -> Option> { [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] --> linked_list/merge_two_lists.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 10 | l1: Option>, [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 11 | l2: Option>, [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | ) -> Option> { [INFO] [stdout] 13 | 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; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `linked_list` (lib) due to 2 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 3 warnings emitted [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] --> linked_list/merge_two_lists.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 10 | l1: Option>, [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 11 | l2: Option>, [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | ) -> Option> { [INFO] [stdout] 13 | 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 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_bst` is never used [INFO] [stdout] --> tree/is_valid_bst.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn is_valid_bst(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_bst2` is never used [INFO] [stdout] --> tree/is_valid_bst.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn is_valid_bst2(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Rt` is never used [INFO] [stdout] --> tree/max_depth.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type Rt = Rc>; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_depth` is never used [INFO] [stdout] --> tree/max_depth.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn max_depth(root: Option) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `preorder_traversal` is never used [INFO] [stdout] --> tree/preorder_traversal.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn preorder_traversal(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Node` is never used [INFO] [stdout] --> tree/is_symmetric.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub type Node = Rc>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_symmetric` is never used [INFO] [stdout] --> tree/is_symmetric.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn is_symmetric(root: Option) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `linked_list` (lib test) due to 2 previous errors [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> dynamic_programming/count_bits.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_area` is never used [INFO] [stdout] --> two_pointers/max_area.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn max_area(height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge` is never used [INFO] [stdout] --> two_pointers/merge.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn merge(nums1: &mut Vec, m: i32, nums2: &mut Vec, n: i32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_zeroes` is never used [INFO] [stdout] --> two_pointers/move_zeroes.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn move_zeroes(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `three_sum` is never used [INFO] [stdout] --> two_pointers/three_sum.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn three_sum(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `three_sum_closest` is never used [INFO] [stdout] --> two_pointers/three_sum_closest.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn three_sum_closest(mut nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_common_prefix` is never used [INFO] [stdout] --> binary_search/longest_common_prefix.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn longest_common_prefix(strs: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> dynamic_programming/count_bits.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | fn count_one(mut x: i32) -> 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: function `count_bits_1` is never used [INFO] [stdout] --> dynamic_programming/count_bits.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn count_bits_1(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4f8751b1695375ef4bccb8200c81639c0797ee290b5a72f3d6bd8ce49565c4b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f8751b1695375ef4bccb8200c81639c0797ee290b5a72f3d6bd8ce49565c4b7", kill_on_drop: false }` [INFO] [stdout] 4f8751b1695375ef4bccb8200c81639c0797ee290b5a72f3d6bd8ce49565c4b7