[INFO] cloning repository https://github.com/duanjr/littlefs-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/duanjr/littlefs-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduanjr%2Flittlefs-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduanjr%2Flittlefs-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e076c761c69c492522d141a01f8b6faa7f7ff490 [INFO] checking duanjr/littlefs-rust against master#cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd for pr-145463 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduanjr%2Flittlefs-rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/duanjr/littlefs-rust [INFO] finished tweaking git repo https://github.com/duanjr/littlefs-rust [INFO] tweaked toml for git repo https://github.com/duanjr/littlefs-rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/duanjr/littlefs-rust on toolchain cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 18 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8e1533ae0a08e01542c27d202402b54f16c782651292d98b62f94917588a6083 [INFO] running `Command { std: "docker" "start" "-a" "8e1533ae0a08e01542c27d202402b54f16c782651292d98b62f94917588a6083", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8e1533ae0a08e01542c27d202402b54f16c782651292d98b62f94917588a6083", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e1533ae0a08e01542c27d202402b54f16c782651292d98b62f94917588a6083", kill_on_drop: false }` [INFO] [stdout] 8e1533ae0a08e01542c27d202402b54f16c782651292d98b62f94917588a6083 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 847a2a91fc8b9036a99df64737d3e4052ae4eaa31a09b71f91d8babd089b875f [INFO] running `Command { std: "docker" "start" "-a" "847a2a91fc8b9036a99df64737d3e4052ae4eaa31a09b71f91d8babd089b875f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking lfs_pure_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::utils::*` [INFO] [stdout] --> src/allocator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/dir.rs:259:37 [INFO] [stdout] | [INFO] [stdout] 259 | let mut current_pos_in_stream = (core::mem::size_of::() as LfsOff); // Start of actual entries [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 259 - let mut current_pos_in_stream = (core::mem::size_of::() as LfsOff); // Start of actual entries [INFO] [stdout] 259 + let mut current_pos_in_stream = core::mem::size_of::() as LfsOff; // Start of actual entries [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/file.rs:330:54 [INFO] [stdout] | [INFO] [stdout] 330 | let mut current_ptr = &mut lfs.files as *mut (*mut LfsFile); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 330 - let mut current_ptr = &mut lfs.files as *mut (*mut LfsFile); [INFO] [stdout] 330 + let mut current_ptr = &mut lfs.files as *mut *mut LfsFile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::utils::*` [INFO] [stdout] --> src/allocator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/dir.rs:259:37 [INFO] [stdout] | [INFO] [stdout] 259 | let mut current_pos_in_stream = (core::mem::size_of::() as LfsOff); // Start of actual entries [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 259 - let mut current_pos_in_stream = (core::mem::size_of::() as LfsOff); // Start of actual entries [INFO] [stdout] 259 + let mut current_pos_in_stream = core::mem::size_of::() as LfsOff; // Start of actual entries [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/file.rs:330:54 [INFO] [stdout] | [INFO] [stdout] 330 | let mut current_ptr = &mut lfs.files as *mut (*mut LfsFile); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 330 - let mut current_ptr = &mut lfs.files as *mut (*mut LfsFile); [INFO] [stdout] 330 + let mut current_ptr = &mut lfs.files as *mut *mut LfsFile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/lfs.rs:1017:21 [INFO] [stdout] | [INFO] [stdout] 1003 | return lfs_deorphan(lfs); // Restart to ensure full cleanup, or just Ok(()) for one fix. [INFO] [stdout] | ------------------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 1017 | break; [INFO] [stdout] | ^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/metadata_pair.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | let cfg = unsafe { &*lfs.cfg }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pair_before_alloc` [INFO] [stdout] --> src/metadata_pair.rs:232:21 [INFO] [stdout] | [INFO] [stdout] 232 | let pair_before_alloc = dir.pair; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pair_before_alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_total_len` [INFO] [stdout] --> src/metadata_pair.rs:494:9 [INFO] [stdout] | [INFO] [stdout] 494 | let entry_total_len = 4 + // The CRC for the previous entry, or initial 4 bytes for dir.d for first entry [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entry_total_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_total_disk_len` [INFO] [stdout] --> src/metadata_pair.rs:701:9 [INFO] [stdout] | [INFO] [stdout] 701 | let entry_total_disk_len = core::mem::size_of::() as LfsOff + [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entry_total_disk_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `found_in_current_dir` is assigned to, but never used [INFO] [stdout] --> src/metadata_pair.rs:798:17 [INFO] [stdout] | [INFO] [stdout] 798 | let mut found_in_current_dir = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_found_in_current_dir` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `found_in_current_dir` is never read [INFO] [stdout] --> src/metadata_pair.rs:838:29 [INFO] [stdout] | [INFO] [stdout] 838 | ... found_in_current_dir = true; [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: variable does not need to be mutable [INFO] [stdout] --> src/metadata_pair.rs:753:13 [INFO] [stdout] | [INFO] [stdout] 753 | let mut segment = ¤t_path[..segment_len]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_block_data_start_pos` [INFO] [stdout] --> src/dir.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let mut current_block_data_start_pos = (core::mem::size_of::() as LfsOff).wrapping_sub(2); // Pos of "." [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_block_data_start_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_logical_offset` is never read [INFO] [stdout] --> src/dir.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | remaining_logical_offset = remaining_logical_offset.saturating_sub(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dir.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 248 | let mut current_block_data_start_pos = (core::mem::size_of::() as LfsOff).wrapping_sub(2); // Pos of "." [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_size_in_head_block` [INFO] [stdout] --> src/file.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let data_size_in_head_block = if index_level == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_size_in_head_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/file.rs:317:5 [INFO] [stdout] | [INFO] [stdout] 317 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/file.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | let mut buffer_vec = vec![0u8; buffer_size as usize]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/file.rs:451:17 [INFO] [stdout] | [INFO] [stdout] 451 | let mut temp_rcache_for_orig = lfs.rcache; // Copy struct state [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/lfs.rs:1017:21 [INFO] [stdout] | [INFO] [stdout] 1003 | return lfs_deorphan(lfs); // Restart to ensure full cleanup, or just Ok(()) for one fix. [INFO] [stdout] | ------------------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 1017 | break; [INFO] [stdout] | ^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_path_ref_for_remove` [INFO] [stdout] --> src/lfs.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | let mut old_path_ref_for_remove: &str = old_path_str; // Use the original full old_path_str for find [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_path_ref_for_remove` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_old_parent_path` [INFO] [stdout] --> src/lfs.rs:255:10 [INFO] [stdout] | [INFO] [stdout] 255 | let (final_old_parent_path, final_old_name) = old_path_str.rfind('/').map_or(("", old_path_str), |i| (old_path_str.split_at(i).0, &ol... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_old_parent_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lfs.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | let mut old_path_ref_for_remove: &str = old_path_str; // Use the original full old_path_str for find [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lfs.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | let mut buffer_vec = vec![0u8; config.read_size as usize]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lfs.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let mut buffer_vec = vec![0u8; config.prog_size as usize]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lfs.rs:340:13 [INFO] [stdout] | [INFO] [stdout] 340 | let mut buffer_vec = vec![0u32; lookahead_elements]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lfs_dir_close` is never used [INFO] [stdout] --> src/dir.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn lfs_dir_close(_lfs: &mut Lfs, _dir: &mut LfsDir) -> Result<(), LfsError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/metadata_pair.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | let cfg = unsafe { &*lfs.cfg }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pair_before_alloc` [INFO] [stdout] --> src/metadata_pair.rs:232:21 [INFO] [stdout] | [INFO] [stdout] 232 | let pair_before_alloc = dir.pair; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pair_before_alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_total_len` [INFO] [stdout] --> src/metadata_pair.rs:494:9 [INFO] [stdout] | [INFO] [stdout] 494 | let entry_total_len = 4 + // The CRC for the previous entry, or initial 4 bytes for dir.d for first entry [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entry_total_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_total_disk_len` [INFO] [stdout] --> src/metadata_pair.rs:701:9 [INFO] [stdout] | [INFO] [stdout] 701 | let entry_total_disk_len = core::mem::size_of::() as LfsOff + [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entry_total_disk_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `found_in_current_dir` is assigned to, but never used [INFO] [stdout] --> src/metadata_pair.rs:798:17 [INFO] [stdout] | [INFO] [stdout] 798 | let mut found_in_current_dir = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_found_in_current_dir` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `found_in_current_dir` is never read [INFO] [stdout] --> src/metadata_pair.rs:838:29 [INFO] [stdout] | [INFO] [stdout] 838 | ... found_in_current_dir = true; [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: variable does not need to be mutable [INFO] [stdout] --> src/metadata_pair.rs:753:13 [INFO] [stdout] | [INFO] [stdout] 753 | let mut segment = ¤t_path[..segment_len]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_block_data_start_pos` [INFO] [stdout] --> src/dir.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let mut current_block_data_start_pos = (core::mem::size_of::() as LfsOff).wrapping_sub(2); // Pos of "." [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_block_data_start_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_logical_offset` is never read [INFO] [stdout] --> src/dir.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | remaining_logical_offset = remaining_logical_offset.saturating_sub(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dir.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 248 | let mut current_block_data_start_pos = (core::mem::size_of::() as LfsOff).wrapping_sub(2); // Pos of "." [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_size_in_head_block` [INFO] [stdout] --> src/file.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let data_size_in_head_block = if index_level == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_size_in_head_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/file.rs:317:5 [INFO] [stdout] | [INFO] [stdout] 317 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/file.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | let mut buffer_vec = vec![0u8; buffer_size as usize]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/file.rs:451:17 [INFO] [stdout] | [INFO] [stdout] 451 | let mut temp_rcache_for_orig = lfs.rcache; // Copy struct state [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_path_ref_for_remove` [INFO] [stdout] --> src/lfs.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | let mut old_path_ref_for_remove: &str = old_path_str; // Use the original full old_path_str for find [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_path_ref_for_remove` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_old_parent_path` [INFO] [stdout] --> src/lfs.rs:255:10 [INFO] [stdout] | [INFO] [stdout] 255 | let (final_old_parent_path, final_old_name) = old_path_str.rfind('/').map_or(("", old_path_str), |i| (old_path_str.split_at(i).0, &ol... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_old_parent_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lfs.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | let mut old_path_ref_for_remove: &str = old_path_str; // Use the original full old_path_str for find [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lfs.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | let mut buffer_vec = vec![0u8; config.read_size as usize]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lfs.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let mut buffer_vec = vec![0u8; config.prog_size as usize]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lfs.rs:340:13 [INFO] [stdout] | [INFO] [stdout] 340 | let mut buffer_vec = vec![0u32; lookahead_elements]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lfs_dir_close` is never used [INFO] [stdout] --> src/dir.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn lfs_dir_close(_lfs: &mut Lfs, _dir: &mut LfsDir) -> Result<(), LfsError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.24s [INFO] running `Command { std: "docker" "inspect" "847a2a91fc8b9036a99df64737d3e4052ae4eaa31a09b71f91d8babd089b875f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "847a2a91fc8b9036a99df64737d3e4052ae4eaa31a09b71f91d8babd089b875f", kill_on_drop: false }` [INFO] [stdout] 847a2a91fc8b9036a99df64737d3e4052ae4eaa31a09b71f91d8babd089b875f