[INFO] cloning repository https://github.com/michael-jaquier/rust-ffi-leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/michael-jaquier/rust-ffi-leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmichael-jaquier%2Frust-ffi-leetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmichael-jaquier%2Frust-ffi-leetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 45b069f0f843aff01293f4f40621b0601c073b64 [INFO] checking michael-jaquier/rust-ffi-leetcode against master#c9af9c1dc85a55e309345030ff9cb7ea247953fa for pr-151146 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmichael-jaquier%2Frust-ffi-leetcode" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/michael-jaquier/rust-ffi-leetcode [INFO] finished tweaking git repo https://github.com/michael-jaquier/rust-ffi-leetcode [INFO] tweaked toml for git repo https://github.com/michael-jaquier/rust-ffi-leetcode written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/michael-jaquier/rust-ffi-leetcode on toolchain c9af9c1dc85a55e309345030ff9cb7ea247953fa [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/michael-jaquier/rust-ffi-leetcode already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.2.37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 23668cb7147ce84537b53d037a639eedcd3ed988597bf8d1896c5f590e20e5dd [INFO] running `Command { std: "docker" "start" "-a" "23668cb7147ce84537b53d037a639eedcd3ed988597bf8d1896c5f590e20e5dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23668cb7147ce84537b53d037a639eedcd3ed988597bf8d1896c5f590e20e5dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23668cb7147ce84537b53d037a639eedcd3ed988597bf8d1896c5f590e20e5dd", kill_on_drop: false }` [INFO] [stdout] 23668cb7147ce84537b53d037a639eedcd3ed988597bf8d1896c5f590e20e5dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e561fbde83e8f172b684f46e901783964b033ffba2687fbcd0b2076473aa5501 [INFO] running `Command { std: "docker" "start" "-a" "e561fbde83e8f172b684f46e901783964b033ffba2687fbcd0b2076473aa5501", kill_on_drop: false }` [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling cc v1.2.37 [INFO] [stderr] Compiling ffi_leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr` and `CString` [INFO] [stdout] --> src/lib.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `c_char` and `c_int` [INFO] [stdout] --> src/lib.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::{c_char, c_int}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/problems/easy/stack/valid_parentheses.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ptr::slice_from_raw_parts` [INFO] [stdout] --> src/problems/easy/stack/valid_parentheses.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, ptr::slice_from_raw_parts}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/problems/easy/dynamic_programming/max_subarray.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `null_mut` and `self` [INFO] [stdout] --> src/problems/medium/linked_list/add_two_numbers.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ptr::{self, null_mut}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/problems/medium/sliding_window/longest_substring.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/problems/medium/hash_map/group_anagrams.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr` and `CString` [INFO] [stdout] --> src/problems/medium/hash_map/group_anagrams.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::raw::c_char` [INFO] [stdout] --> src/problems/medium/hash_map/group_anagrams.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::os::raw::c_char; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BinaryHeap` and `HashMap` [INFO] [stdout] --> src/problems/medium/hash_map_heap/top_k_frequent_words.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | use std::collections::{HashMap, BinaryHeap}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/problems/hard/bfs_tree/level_order.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/problems/mod.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | pub use easy::*; [INFO] [stdout] | ^^^^^^^ the name `hash_map` in the type namespace is first re-exported here [INFO] [stdout] 116 | pub use hard::*; [INFO] [stdout] 117 | pub use medium::*; [INFO] [stdout] | --------- but the name `hash_map` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/problems/mod.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | pub use easy::*; [INFO] [stdout] | ^^^^^^^ the name `two_pointers` in the type namespace is first re-exported here [INFO] [stdout] 116 | pub use hard::*; [INFO] [stdout] 117 | pub use medium::*; [INFO] [stdout] | --------- but the name `two_pointers` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/problems/easy/binary_search/binary_search.rs:127:67 [INFO] [stdout] | [INFO] [stdout] 127 | pub extern "C" fn search_insert(nums: *const i32, nums_size: i32, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_slice` [INFO] [stdout] --> src/problems/medium/sliding_window/longest_substring.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let str_slice = match c_str.to_str() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | user_id: i32, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time_seconds` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | current_time_seconds: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time_seconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `limiter_ref` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let limiter_ref = unsafe { &mut *limiter }; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_limiter_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | user_id: i32, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time_seconds` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | current_time_seconds: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time_seconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | user_id: i32, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time_seconds` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | current_time_seconds: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time_seconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height_slice` [INFO] [stdout] --> src/problems/medium/two_pointers/max_area.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let height_slice = unsafe { std::slice::from_raw_parts(height, height_size as usize) }; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_height_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intervals_slice` [INFO] [stdout] --> src/problems/medium/intervals/merge_intervals.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let intervals_slice = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intervals_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intervals_size` [INFO] [stdout] --> src/problems/medium/intervals/merge_intervals.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | intervals_size: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intervals_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_interval` [INFO] [stdout] --> src/problems/medium/intervals/merge_intervals.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | new_interval: Interval, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intervals_col_size` [INFO] [stdout] --> src/problems/medium/heap/meeting_rooms.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | intervals_col_size: *const i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intervals_col_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_str` [INFO] [stdout] --> src/problems/medium/hash_map_heap/top_k_frequent_words.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let text_str = match std::str::from_utf8(text) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> src/problems/medium/hash_map_heap/top_k_frequent_words.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | word: *const u8, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_len` [INFO] [stdout] --> src/problems/medium/hash_map_heap/top_k_frequent_words.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | word_len: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_word_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global_frequencies` [INFO] [stdout] --> src/problems/medium/hash_map_heap/top_k_frequent_words.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | global_frequencies: *mut std::ffi::c_void, // Opaque pointer to internal state [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_frequencies` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_str` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let path_str = match std::str::from_utf8(path_bytes) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_path_len` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | root_path_len: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_path_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follow_symlinks` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 162 | follow_symlinks: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_follow_symlinks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_path` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 187 | root_path: *const u8, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_path_len` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | root_path_len: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_path_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_depth` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | max_depth: i32, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prerequisites_col_size` [INFO] [stdout] --> src/problems/medium/graph_dfs/course_schedule.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | prerequisites_col_size: *const i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prerequisites_col_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/problems/hard/hash_map_linked_list/lru_cache.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get(&mut self, key: i32) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/problems/hard/hash_map_linked_list/lru_cache.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn put(&mut self, key: i32, value: i32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/problems/hard/hash_map_linked_list/lru_cache.rs:65:37 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn put(&mut self, key: i32, value: i32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr` and `CString` [INFO] [stdout] --> src/lib.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `c_char` and `c_int` [INFO] [stdout] --> src/lib.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::{c_char, c_int}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/problems/easy/hash_map/two_sum.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/problems/easy/stack/valid_parentheses.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ptr::slice_from_raw_parts` [INFO] [stdout] --> src/problems/easy/stack/valid_parentheses.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, ptr::slice_from_raw_parts}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/problems/easy/dynamic_programming/max_subarray.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HeapEntry` is never constructed [INFO] [stdout] --> src/problems/medium/hash_map_heap/top_k_frequent_words.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct HeapEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `capacity`, `cache`, and `usage_order` are never read [INFO] [stdout] --> src/problems/hard/hash_map_linked_list/lru_cache.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct LRUCache { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 38 | capacity: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 39 | cache: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | usage_order: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `null_mut` and `self` [INFO] [stdout] --> src/problems/medium/linked_list/add_two_numbers.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ptr::{self, null_mut}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::data_structures::*` [INFO] [stdout] --> src/problems/medium/linked_list/add_two_numbers.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | use crate::data_structures::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/problems/medium/sliding_window/longest_substring.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/problems/medium/hash_map/group_anagrams.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr` and `CString` [INFO] [stdout] --> src/problems/medium/hash_map/group_anagrams.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::raw::c_char` [INFO] [stdout] --> src/problems/medium/hash_map/group_anagrams.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::os::raw::c_char; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BinaryHeap` and `HashMap` [INFO] [stdout] --> src/problems/medium/hash_map_heap/top_k_frequent_words.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | use std::collections::{HashMap, BinaryHeap}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/problems/hard/bfs_tree/level_order.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/problems/mod.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | pub use easy::*; [INFO] [stdout] | ^^^^^^^ the name `hash_map` in the type namespace is first re-exported here [INFO] [stdout] 116 | pub use hard::*; [INFO] [stdout] 117 | pub use medium::*; [INFO] [stdout] | --------- but the name `hash_map` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/problems/mod.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | pub use easy::*; [INFO] [stdout] | ^^^^^^^ the name `two_pointers` in the type namespace is first re-exported here [INFO] [stdout] 116 | pub use hard::*; [INFO] [stdout] 117 | pub use medium::*; [INFO] [stdout] | --------- but the name `two_pointers` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> tests/integration_tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | let result = unsafe { length_of_longest_substring(c_string.as_ptr()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | let result1 = unsafe { max_area(height1.as_ptr(), height1.len() as i32) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | let result2 = unsafe { max_area(height2.as_ptr(), height2.len() as i32) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | let result3 = unsafe { max_area(height3.as_ptr(), height3.len() as i32) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | let result = unsafe { add_two_numbers(l1, l2) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | let cache = unsafe { lru_cache_new(2) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | let int_arr = unsafe { int_array_new(10) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:111:23 [INFO] [stdout] | [INFO] [stdout] 111 | let str_arr = unsafe { string_array_new(5) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | let list_node = unsafe { list_node_new(42) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | let tree_node = unsafe { tree_node_new(100) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 142 | let result1 = unsafe { can_finish(2, prereqs1.as_ptr(), 1, col_sizes1.as_ptr()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:151:23 [INFO] [stdout] | [INFO] [stdout] 151 | let result2 = unsafe { can_finish(2, prereqs2.as_ptr(), 2, col_sizes2.as_ptr()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:164:23 [INFO] [stdout] | [INFO] [stdout] 164 | let result1 = unsafe { min_meeting_rooms(intervals1.as_ptr(), 3, col_sizes1.as_ptr()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/integration_tests.rs:173:23 [INFO] [stdout] | [INFO] [stdout] 173 | let result2 = unsafe { min_meeting_rooms(intervals2.as_ptr(), 2, col_sizes2.as_ptr()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/problems/easy/binary_search/binary_search.rs:127:67 [INFO] [stdout] | [INFO] [stdout] 127 | pub extern "C" fn search_insert(nums: *const i32, nums_size: i32, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/problems/medium/linked_list/add_two_numbers.rs:138:18 [INFO] [stdout] | [INFO] [stdout] 138 | let l2 = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_slice` [INFO] [stdout] --> src/problems/medium/sliding_window/longest_substring.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let str_slice = match c_str.to_str() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | user_id: i32, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time_seconds` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | current_time_seconds: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time_seconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `limiter_ref` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let limiter_ref = unsafe { &mut *limiter }; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_limiter_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | user_id: i32, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time_seconds` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | current_time_seconds: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time_seconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | user_id: i32, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time_seconds` [INFO] [stdout] --> src/problems/medium/sliding_window/rate_limiter.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | current_time_seconds: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time_seconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height_slice` [INFO] [stdout] --> src/problems/medium/two_pointers/max_area.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let height_slice = unsafe { std::slice::from_raw_parts(height, height_size as usize) }; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_height_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intervals_slice` [INFO] [stdout] --> src/problems/medium/intervals/merge_intervals.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let intervals_slice = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intervals_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intervals_size` [INFO] [stdout] --> src/problems/medium/intervals/merge_intervals.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | intervals_size: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intervals_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_interval` [INFO] [stdout] --> src/problems/medium/intervals/merge_intervals.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | new_interval: Interval, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/problems/medium/intervals/merge_intervals.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | let result = merge_intervals( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/problems/medium/intervals/merge_intervals.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | let result = insert_interval( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intervals_col_size` [INFO] [stdout] --> src/problems/medium/heap/meeting_rooms.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | intervals_col_size: *const i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intervals_col_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_str` [INFO] [stdout] --> src/problems/medium/hash_map_heap/top_k_frequent_words.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let text_str = match std::str::from_utf8(text) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> src/problems/medium/hash_map_heap/top_k_frequent_words.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | word: *const u8, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_len` [INFO] [stdout] --> src/problems/medium/hash_map_heap/top_k_frequent_words.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | word_len: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_word_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global_frequencies` [INFO] [stdout] --> src/problems/medium/hash_map_heap/top_k_frequent_words.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | global_frequencies: *mut std::ffi::c_void, // Opaque pointer to internal state [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_frequencies` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_str` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let path_str = match std::str::from_utf8(path_bytes) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_path_len` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | root_path_len: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_path_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follow_symlinks` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 162 | follow_symlinks: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_follow_symlinks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_path` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 187 | root_path: *const u8, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_path_len` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | root_path_len: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_path_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_depth` [INFO] [stdout] --> src/problems/medium/dfs_tree/directory_size_calculator.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | max_depth: i32, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prerequisites_col_size` [INFO] [stdout] --> src/problems/medium/graph_dfs/course_schedule.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | prerequisites_col_size: *const i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prerequisites_col_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/problems/hard/hash_map_linked_list/lru_cache.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get(&mut self, key: i32) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/problems/hard/hash_map_linked_list/lru_cache.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn put(&mut self, key: i32, value: i32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/problems/hard/hash_map_linked_list/lru_cache.rs:65:37 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn put(&mut self, key: i32, value: i32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `capacity`, `cache`, and `usage_order` are never read [INFO] [stdout] --> src/problems/hard/hash_map_linked_list/lru_cache.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct LRUCache { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 38 | capacity: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 39 | cache: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | usage_order: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.39s [INFO] running `Command { std: "docker" "inspect" "e561fbde83e8f172b684f46e901783964b033ffba2687fbcd0b2076473aa5501", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e561fbde83e8f172b684f46e901783964b033ffba2687fbcd0b2076473aa5501", kill_on_drop: false }` [INFO] [stdout] e561fbde83e8f172b684f46e901783964b033ffba2687fbcd0b2076473aa5501