[INFO] cloning repository https://github.com/gandeevan/onebrc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gandeevan/onebrc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgandeevan%2Fonebrc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgandeevan%2Fonebrc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7fb37ad3508b8c6083e1af1948cb88fbf94c9e8b [INFO] checking gandeevan/onebrc/7fb37ad3508b8c6083e1af1948cb88fbf94c9e8b against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgandeevan%2Fonebrc" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gandeevan/onebrc on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/gandeevan/onebrc [INFO] finished tweaking git repo https://github.com/gandeevan/onebrc [INFO] tweaked toml for git repo https://github.com/gandeevan/onebrc written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/gandeevan/onebrc 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 846df90b1d3bffdd8bb6ebada84d6c78b72099b40c33e6d72c741d8c79867b1a [INFO] running `Command { std: "docker" "start" "-a" "846df90b1d3bffdd8bb6ebada84d6c78b72099b40c33e6d72c741d8c79867b1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "846df90b1d3bffdd8bb6ebada84d6c78b72099b40c33e6d72c741d8c79867b1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "846df90b1d3bffdd8bb6ebada84d6c78b72099b40c33e6d72c741d8c79867b1a", kill_on_drop: false }` [INFO] [stdout] 846df90b1d3bffdd8bb6ebada84d6c78b72099b40c33e6d72c741d8c79867b1a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94a1a7c2a941621a9b89601c8a3a337c2d5fdcacc497acde172fea8f9376bc41 [INFO] running `Command { std: "docker" "start" "-a" "94a1a7c2a941621a9b89601c8a3a337c2d5fdcacc497acde172fea8f9376bc41", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking anstream v0.6.11 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking memmap2 v0.9.4 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.0 [INFO] [stderr] Checking onebrc v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/attempt1.rs (1 fix) [INFO] [stderr] Fixed src/attempt10.rs (10 fixes) [INFO] [stderr] Fixed src/attempt7.rs (4 fixes) [INFO] [stderr] Fixed src/attempt2.rs (1 fix) [INFO] [stderr] Fixed src/attempt8.rs (7 fixes) [INFO] [stderr] Fixed src/attempt6.rs (6 fixes) [INFO] [stderr] Fixed src/attempt9.rs (9 fixes) [INFO] [stderr] Fixed src/utils.rs (3 fixes) [INFO] [stderr] Fixed src/attempt5.rs (5 fixes) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/utils.rs:71:15 [INFO] [stdout] | [INFO] [stdout] 71 | for (key, value) in table { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/utils.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | for (key, value) in table { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread_id` [INFO] [stdout] --> src/attempt3.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 67 | fn thread_run(thread_id: usize, filepath: &str, start_offset: usize, size: usize) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/attempt5.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/attempt6.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/attempt6.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/attempt7.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread_id` [INFO] [stdout] --> src/attempt8.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | fn compute(thread_id: usize, filepath: &str, offset_counter: Arc, file_size: usize) -> LPTable { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/attempt8.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | let file = File::open(filepath).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/attempt8.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/attempt9.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut result: usize = 1; [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 `station_name_len` is never read [INFO] [stdout] --> src/attempt9.rs:293:17 [INFO] [stdout] | [INFO] [stdout] 293 | let mut station_name_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/attempt9.rs:329:13 [INFO] [stdout] | [INFO] [stdout] 329 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_slot` [INFO] [stdout] --> src/attempt10.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let initial_slot = slot; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_slot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/attempt10.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | let mut result: usize = 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `station_name_len` is never read [INFO] [stdout] --> src/attempt10.rs:285:17 [INFO] [stdout] | [INFO] [stdout] 285 | let mut station_name_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt5::LPTable` is more private than the item `attempt5::distribute_work` [INFO] [stdout] --> src/attempt5.rs:215:1 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn distribute_work(path: &'static str, thread_count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt5::distribute_work` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt5::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt5.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt5::LPTable` is more private than the item `attempt5::aggregate_result` [INFO] [stdout] --> src/attempt5.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn aggregate_result(handles: Vec>) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt5::aggregate_result` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt5::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt5.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt6::LPTable` is more private than the item `attempt6::distribute_work` [INFO] [stdout] --> src/attempt6.rs:186:1 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn distribute_work(path: &'static str, thread_count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt6::distribute_work` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt6::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt6.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt6::LPTable` is more private than the item `attempt6::aggregate_result` [INFO] [stdout] --> src/attempt6.rs:198:1 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn aggregate_result(handles: Vec>) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt6::aggregate_result` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt6::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt6.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt7::LPTable` is more private than the item `attempt7::distribute_work` [INFO] [stdout] --> src/attempt7.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn distribute_work(path: &'static str, thread_count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt7::distribute_work` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt7::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt7.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt7::LPTable` is more private than the item `attempt7::aggregate_result` [INFO] [stdout] --> src/attempt7.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn aggregate_result(handles: Vec>) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt7::aggregate_result` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt7::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt7.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt8::LPTable` is more private than the item `attempt8::distribute_work` [INFO] [stdout] --> src/attempt8.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn distribute_work(path: &'static str, thread_count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt8::distribute_work` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt8::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt8.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt8::LPTable` is more private than the item `attempt8::aggregate_result` [INFO] [stdout] --> src/attempt8.rs:259:1 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn aggregate_result(handles: Vec>) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt8::aggregate_result` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt8::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt8.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt9::LPTable` is more private than the item `attempt9::distribute_work` [INFO] [stdout] --> src/attempt9.rs:316:1 [INFO] [stdout] | [INFO] [stdout] 316 | pub fn distribute_work(path: &'static str, thread_count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt9::distribute_work` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt9::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt9.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt9::LPTable` is more private than the item `attempt9::aggregate_result` [INFO] [stdout] --> src/attempt9.rs:328:1 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn aggregate_result(handles: Vec>) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt9::aggregate_result` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt9::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt9.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt10::LPTable` is more private than the item `attempt10::distribute_work` [INFO] [stdout] --> src/attempt10.rs:309:1 [INFO] [stdout] | [INFO] [stdout] 309 | pub fn distribute_work(path: &'static str, thread_count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt10::distribute_work` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt10::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt10.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `attempt10::LPTable` is more private than the item `attempt10::aggregate_result` [INFO] [stdout] --> src/attempt10.rs:321:1 [INFO] [stdout] | [INFO] [stdout] 321 | pub fn aggregate_result(handles: Vec>) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `attempt10::aggregate_result` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `attempt10::LPTable` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/attempt10.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct LPTable { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIMD_WIDTH` is never used [INFO] [stdout] --> src/utils.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const SIMD_WIDTH: usize = 32; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LINE_COUNT` is never used [INFO] [stdout] --> src/utils.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const LINE_COUNT: usize = 1_000_000_000; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_LINE_SIZE` is never used [INFO] [stdout] --> src/utils.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const MAX_LINE_SIZE: usize = 107; //<100_BYTE_NAME><1_BYTE_SEMICOLON><6_BYTE_TEMPRATURE>, temprature is atmost 6 bytes since -99.9 >=... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stat` is never constructed [INFO] [stdout] --> src/utils.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Stat { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_result_hashmap` is never used [INFO] [stdout] --> src/utils.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn print_result_hashmap(table: &HashMap) where S: std::hash::BuildHasher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_result_btreemap_stat` is never used [INFO] [stdout] --> src/utils.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn print_result_btreemap_stat(table: &BTreeMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/attempt1.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn read_file(path: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_to_hashmap` is never used [INFO] [stdout] --> src/attempt1.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn compute_to_hashmap(contents: String) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_to_btree_stat` is never used [INFO] [stdout] --> src/attempt1.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn compute_to_btree_stat(contents: String) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_to_btree_kstat` is never used [INFO] [stdout] --> src/attempt1.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn compute_to_btree_kstat(contents: String) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `naive_hashmap` is never used [INFO] [stdout] --> src/attempt1.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn naive_hashmap(path: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `naive_btree_stat` is never used [INFO] [stdout] --> src/attempt1.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn naive_btree_stat(path: &str) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `naive_btree_kstat` is never used [INFO] [stdout] --> src/attempt1.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn naive_btree_kstat(path: &str) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_file_part` is never used [INFO] [stdout] --> src/attempt2.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn process_file_part<'a>(thread_id: usize, contents: Arc) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/attempt2.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn read_file(filepath: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute` is never used [INFO] [stdout] --> src/attempt2.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn compute(thread_count: usize, contents: Arc) -> HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/attempt2.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute` is never used [INFO] [stdout] --> src/attempt3.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn compute(contents: String) -> HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/attempt3.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn read_file(filepath: &str, start_offset: usize, size: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thread_run` is never used [INFO] [stdout] --> src/attempt3.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn thread_run(thread_id: usize, filepath: &str, start_offset: usize, size: usize) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/attempt3.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LPTable` is never constructed [INFO] [stdout] --> src/attempt5.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct LPTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_collision_count`, and `insert_or_update` are never used [INFO] [stdout] --> src/attempt5.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl LPTable { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 23 | fn new(num_slots: usize, min_slot_size: usize) -> LPTable { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn get_collision_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn insert_or_update(&mut self, station: &[u8; 100], len: usize, hash: usize, temp: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reset_temp_vars` is never used [INFO] [stdout] --> src/attempt5.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn reset_temp_vars(temp_int_part: &mut u8, temp_fraction_part: &mut u8, temp_multiplier: &mut f32, parsing_int_part: &mut bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reset_station_vars` is never used [INFO] [stdout] --> src/attempt5.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn reset_station_vars(station: &mut [u8; 100], station_idx: &mut usize, hash: &mut usize, parsing_name: &mut bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_station` is never used [INFO] [stdout] --> src/attempt5.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn update_station(station: &mut [u8; 100], station_idx: &mut usize, hash: &mut usize, byte: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_temp_vars` is never used [INFO] [stdout] --> src/attempt5.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn update_temp_vars(byte: u8, temp_int_part: &mut u8, temp_fraction_part: &mut u8, parsing_int_part: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute` is never used [INFO] [stdout] --> src/attempt5.rs:118:4 [INFO] [stdout] | [INFO] [stdout] 118 | fn compute(contents: &str, thread_id: usize, min_bytes_to_process: usize) -> LPTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/attempt5.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn read_file(filepath: &str, start_offset: usize, size: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thread_run` is never used [INFO] [stdout] --> src/attempt5.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn thread_run(thread_id: usize, filepath: &str, start_offset: usize, file_size_per_thread: usize) -> LPTable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distribute_work` is never used [INFO] [stdout] --> src/attempt5.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn distribute_work(path: &'static str, thread_count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aggregate_result` is never used [INFO] [stdout] --> src/attempt5.rs:227:8 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn aggregate_result(handles: Vec>) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/attempt5.rs:256:8 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn run(path: &'static str) -> BTreeMap { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LPTable` is never constructed [INFO] [stdout] --> src/attempt6.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct LPTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_collision_count`, `len`, and `insert_or_update` are never used [INFO] [stdout] --> src/attempt6.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl LPTable { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 24 | fn new(num_slots: usize, min_slot_size: usize) -> LPTable { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn get_collision_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn insert_or_update(&mut self, station: &[u8; 100], len: usize, hash: usize, temp: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reset_temp_vars` is never used [INFO] [stdout] --> src/attempt6.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn reset_temp_vars(temp_int_part: &mut u8, temp_fraction_part: &mut u8, temp_multiplier: &mut f32, parsing_int_part: &mut bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reset_station_vars` is never used [INFO] [stdout] --> src/attempt6.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn reset_station_vars(station: &mut [u8; 100], station_idx: &mut usize, hash: &mut usize, parsing_name: &mut bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_station` is never used [INFO] [stdout] --> src/attempt6.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn update_station(station: &mut [u8; 100], station_idx: &mut usize, hash: &mut usize, byte: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_temp_vars` is never used [INFO] [stdout] --> src/attempt6.rs:110:4 [INFO] [stdout] | [INFO] [stdout] 110 | fn update_temp_vars(byte: u8, temp_int_part: &mut u8, temp_fraction_part: &mut u8, parsing_int_part: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute` is never used [INFO] [stdout] --> src/attempt6.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn compute(contents: &mut Mmap, thread_id: usize, min_bytes_to_process: usize) -> LPTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thread_run` is never used [INFO] [stdout] --> src/attempt6.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn thread_run(thread_id: usize, filepath: &str, start_offset: usize, file_size_per_thread: usize) -> LPTable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distribute_work` is never used [INFO] [stdout] --> src/attempt6.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn distribute_work(path: &'static str, thread_count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aggregate_result` is never used [INFO] [stdout] --> src/attempt6.rs:198:8 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn aggregate_result(handles: Vec>) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/attempt6.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn run(path: &'static str, thread_count: usize) -> BTreeMap { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LPTable` is never constructed [INFO] [stdout] --> src/attempt7.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct LPTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_collision_count`, `len`, and `insert_or_update` are never used [INFO] [stdout] --> src/attempt7.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl LPTable { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 28 | fn new(num_slots: usize, min_slot_size: usize) -> LPTable { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn get_collision_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn insert_or_update(&mut self, station: &[u8; 100], len: usize, hash: usize, temp: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cursor` is never constructed [INFO] [stdout] --> src/attempt7.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | struct Cursor { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/attempt7.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 108 | impl Cursor { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 109 | fn new() -> Cursor { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `temprature` is never used [INFO] [stdout] --> src/attempt7.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn temprature(c: &mut Cursor) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reset` is never used [INFO] [stdout] --> src/attempt7.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | fn reset(c: &mut Cursor) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_temprature` is never used [INFO] [stdout] --> src/attempt7.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn update_temprature(c: &mut Cursor, byte: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_station` is never used [INFO] [stdout] --> src/attempt7.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn update_station(c: &mut Cursor, byte: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute` is never used [INFO] [stdout] --> src/attempt7.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn compute(contents: &mut Mmap, thread_id: usize, min_bytes_to_process: usize) -> LPTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thread_run` is never used [INFO] [stdout] --> src/attempt7.rs:199:4 [INFO] [stdout] | [INFO] [stdout] 199 | fn thread_run(thread_id: usize, filepath: &str, start_offset: usize, file_size_per_thread: usize) -> LPTable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distribute_work` is never used [INFO] [stdout] --> src/attempt7.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn distribute_work(path: &'static str, thread_count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aggregate_result` is never used [INFO] [stdout] --> src/attempt7.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn aggregate_result(handles: Vec>) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/attempt7.rs:249:8 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn run(path: &'static str, thread_count: usize) -> BTreeMap { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LPTable` is never constructed [INFO] [stdout] --> src/attempt8.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct LPTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_collision_count`, `len`, and `insert_or_update` are never used [INFO] [stdout] --> src/attempt8.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl LPTable { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 18 | fn new(num_slots: usize, min_slot_size: usize) -> LPTable { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn get_collision_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn insert_or_update(&mut self, station: &[u8; 100], len: usize, hash: usize, temp: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cursor` is never constructed [INFO] [stdout] --> src/attempt8.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | struct Cursor { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/attempt8.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 94 | impl Cursor { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 95 | fn new() -> Cursor { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `temprature` is never used [INFO] [stdout] --> src/attempt8.rs:110:4 [INFO] [stdout] | [INFO] [stdout] 110 | fn temprature(c: &mut Cursor) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reset` is never used [INFO] [stdout] --> src/attempt8.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn reset(c: &mut Cursor) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_temprature` is never used [INFO] [stdout] --> src/attempt8.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn update_temprature(c: &mut Cursor, byte: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_station` is never used [INFO] [stdout] --> src/attempt8.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn update_station(c: &mut Cursor, byte: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute` is never used [INFO] [stdout] --> src/attempt8.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn compute(thread_id: usize, filepath: &str, offset_counter: Arc, file_size: usize) -> LPTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thread_run` is never used [INFO] [stdout] --> src/attempt8.rs:241:4 [INFO] [stdout] | [INFO] [stdout] 241 | fn thread_run(thread_id: usize, filepath: &str, offset_counter: Arc, file_size: usize) -> LPTable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distribute_work` is never used [INFO] [stdout] --> src/attempt8.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn distribute_work(path: &'static str, thread_count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aggregate_result` is never used [INFO] [stdout] --> src/attempt8.rs:259:8 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn aggregate_result(handles: Vec>) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/attempt8.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | pub fn run(path: &'static str, thread_count: usize) -> BTreeMap { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LPTable` is never constructed [INFO] [stdout] --> src/attempt9.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct LPTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_collision_count`, `len`, and `insert_or_update` are never used [INFO] [stdout] --> src/attempt9.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl LPTable { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 18 | fn new(num_slots: usize, min_slot_size: usize) -> LPTable { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn get_collision_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn insert_or_update(&mut self, station: &[u8; 100], len: usize, hash: usize, temp: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cursor` is never constructed [INFO] [stdout] --> src/attempt9.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | struct Cursor { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/attempt9.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 94 | impl Cursor { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 95 | fn new() -> Cursor { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `temprature` is never used [INFO] [stdout] --> src/attempt9.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn temprature(c: &mut Cursor) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reset` is never used [INFO] [stdout] --> src/attempt9.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn reset(c: &mut Cursor) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_temprature` is never used [INFO] [stdout] --> src/attempt9.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn update_temprature(c: &mut Cursor, byte: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_unaligned_u64` is never used [INFO] [stdout] --> src/attempt9.rs:141:11 [INFO] [stdout] | [INFO] [stdout] 141 | unsafe fn read_unaligned_u64(ptr: *const usize) -> usize { unsafe { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_newline` is never used [INFO] [stdout] --> src/attempt9.rs:153:4 [INFO] [stdout] | [INFO] [stdout] 153 | fn find_newline(data: usize) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_newline_vectorized` is never used [INFO] [stdout] --> src/attempt9.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn find_next_newline_vectorized(ptr: *const u8, max_offset: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_newline` is never used [INFO] [stdout] --> src/attempt9.rs:195:4 [INFO] [stdout] | [INFO] [stdout] 195 | fn find_next_newline(ptr: *const u8, max_offset: isize, c: &mut Cursor) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_semicolon` is never used [INFO] [stdout] --> src/attempt9.rs:215:4 [INFO] [stdout] | [INFO] [stdout] 215 | fn find_semicolon(data: usize) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_semicolon_vectorized` is never used [INFO] [stdout] --> src/attempt9.rs:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | fn find_next_semicolon_vectorized(ptr: *const u8, max_offset: isize, hash: &mut usize, name: &mut [u8; 100]) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute` is never used [INFO] [stdout] --> src/attempt9.rs:266:4 [INFO] [stdout] | [INFO] [stdout] 266 | fn compute(thread_id: usize, filepath: &str, start_offset: usize, file_size_per_thread: isize, file_size: usize) -> LPTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distribute_work` is never used [INFO] [stdout] --> src/attempt9.rs:316:8 [INFO] [stdout] | [INFO] [stdout] 316 | pub fn distribute_work(path: &'static str, thread_count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aggregate_result` is never used [INFO] [stdout] --> src/attempt9.rs:328:8 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn aggregate_result(handles: Vec>) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/attempt9.rs:360:8 [INFO] [stdout] | [INFO] [stdout] 360 | pub fn run(path: &'static str, thread_count: usize) -> BTreeMap { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 115 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt5.rs:265:8 [INFO] [stdout] | [INFO] [stdout] 265 | if env::var("RUST_LOG").is_err() { [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt5.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | env::set_var("RUST_LOG", "info") [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `attempt1` [INFO] [stdout] --> src/attempt5.rs:270:20 [INFO] [stdout] | [INFO] [stdout] 270 | let expected = attempt1::naive_btree_kstat(path); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `attempt1` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use crate::attempt1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt6.rs:240:8 [INFO] [stdout] | [INFO] [stdout] 240 | if env::var("RUST_LOG").is_err() { [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt6.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | env::set_var("RUST_LOG", "info") [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `attempt1` [INFO] [stdout] --> src/attempt6.rs:246:20 [INFO] [stdout] | [INFO] [stdout] 246 | let expected = attempt1::naive_btree_kstat(path); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `attempt1` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use crate::attempt1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt7.rs:259:8 [INFO] [stdout] | [INFO] [stdout] 259 | if env::var("RUST_LOG").is_err() { [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt7.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | env::set_var("RUST_LOG", "info") [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `attempt1` [INFO] [stdout] --> src/attempt7.rs:265:20 [INFO] [stdout] | [INFO] [stdout] 265 | let expected = attempt1::naive_btree_kstat(path); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `attempt1` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use crate::attempt1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt8.rs:301:8 [INFO] [stdout] | [INFO] [stdout] 301 | if env::var("RUST_LOG").is_err() { [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt8.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | env::set_var("RUST_LOG", "info") [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `attempt1` [INFO] [stdout] --> src/attempt8.rs:307:20 [INFO] [stdout] | [INFO] [stdout] 307 | let expected = attempt1::naive_btree_kstat(path); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `attempt1` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use crate::attempt1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt9.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 370 | if env::var("RUST_LOG").is_err() { [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt9.rs:371:9 [INFO] [stdout] | [INFO] [stdout] 371 | env::set_var("RUST_LOG", "info") [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `attempt1` [INFO] [stdout] --> src/attempt9.rs:376:20 [INFO] [stdout] | [INFO] [stdout] 376 | let expected = attempt1::naive_btree_kstat(path); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `attempt1` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use crate::attempt1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt10.rs:362:8 [INFO] [stdout] | [INFO] [stdout] 362 | if env::var("RUST_LOG").is_err() { [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/attempt10.rs:363:9 [INFO] [stdout] | [INFO] [stdout] 363 | env::set_var("RUST_LOG", "info") [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `attempt1` [INFO] [stdout] --> src/attempt10.rs:368:20 [INFO] [stdout] | [INFO] [stdout] 368 | let expected = attempt1::naive_btree_kstat(path); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `attempt1` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use crate::attempt1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/utils.rs:71:15 [INFO] [stdout] | [INFO] [stdout] 71 | for (key, value) in table { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/utils.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | for (key, value) in table { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread_id` [INFO] [stdout] --> src/attempt3.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 67 | fn thread_run(thread_id: usize, filepath: &str, start_offset: usize, size: usize) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/attempt5.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/attempt6.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/attempt6.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/attempt7.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread_id` [INFO] [stdout] --> src/attempt8.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | fn compute(thread_id: usize, filepath: &str, offset_counter: Arc, file_size: usize) -> LPTable { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/attempt8.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | let file = File::open(filepath).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/attempt8.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/attempt9.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut result: usize = 1; [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 `station_name_len` is never read [INFO] [stdout] --> src/attempt9.rs:293:17 [INFO] [stdout] | [INFO] [stdout] 293 | let mut station_name_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/attempt9.rs:329:13 [INFO] [stdout] | [INFO] [stdout] 329 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_slot` [INFO] [stdout] --> src/attempt10.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let initial_slot = slot; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_slot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/attempt10.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | let mut result: usize = 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `station_name_len` is never read [INFO] [stdout] --> src/attempt10.rs:285:17 [INFO] [stdout] | [INFO] [stdout] 285 | let mut station_name_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `onebrc` (bin "attempt10" test) due to 19 previous errors; 16 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "94a1a7c2a941621a9b89601c8a3a337c2d5fdcacc497acde172fea8f9376bc41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94a1a7c2a941621a9b89601c8a3a337c2d5fdcacc497acde172fea8f9376bc41", kill_on_drop: false }` [INFO] [stdout] 94a1a7c2a941621a9b89601c8a3a337c2d5fdcacc497acde172fea8f9376bc41