[INFO] cloning repository https://github.com/antroids/vdfs_utils [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/antroids/vdfs_utils" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fantroids%2Fvdfs_utils", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fantroids%2Fvdfs_utils'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 36707a770a1463bdb10d3c203610452c736723a6 [INFO] checking antroids/vdfs_utils/36707a770a1463bdb10d3c203610452c736723a6 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fantroids%2Fvdfs_utils" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/antroids/vdfs_utils on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/antroids/vdfs_utils [INFO] finished tweaking git repo https://github.com/antroids/vdfs_utils [INFO] tweaked toml for git repo https://github.com/antroids/vdfs_utils written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/antroids/vdfs_utils 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bincode_derive v2.0.0-rc.2 [INFO] [stderr] Downloaded bincode v2.0.0-rc.2 [INFO] [stderr] Downloaded virtue v0.0.8 [INFO] [stderr] Downloaded libflate_lz77 v1.1.0 [INFO] [stderr] Downloaded libflate v1.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f5d66ddae6040b21efe7c886a1ba2c0da171006c507828f2edff27516309e20e [INFO] running `Command { std: "docker" "start" "-a" "f5d66ddae6040b21efe7c886a1ba2c0da171006c507828f2edff27516309e20e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f5d66ddae6040b21efe7c886a1ba2c0da171006c507828f2edff27516309e20e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5d66ddae6040b21efe7c886a1ba2c0da171006c507828f2edff27516309e20e", kill_on_drop: false }` [INFO] [stdout] f5d66ddae6040b21efe7c886a1ba2c0da171006c507828f2edff27516309e20e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f07f0499b1dda5ce220357d1fa594ccdcf1ebcff497d9154d6745d21166ffe22 [INFO] running `Command { std: "docker" "start" "-a" "f07f0499b1dda5ce220357d1fa594ccdcf1ebcff497d9154d6745d21166ffe22", kill_on_drop: false }` [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Checking rle-decode-fast v1.0.3 [INFO] [stderr] Compiling virtue v0.0.8 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking fastrand v1.8.0 [INFO] [stderr] Checking crc-catalog v2.2.0 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking crc v3.0.1 [INFO] [stderr] Checking libflate_lz77 v1.1.0 [INFO] [stderr] Checking libflate v1.2.0 [INFO] [stderr] Compiling bincode_derive v2.0.0-rc.2 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking bincode v2.0.0-rc.2 [INFO] [stderr] Checking vdfs_utils v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/vdfs/btree.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | for level in ((till_level + 1)..=max_tree_level).rev() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/vdfs/btree.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | for level in ((till_level + 1)..=max_tree_level).rev() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extended_table_index` [INFO] [stdout] --> src/vdfs.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | for extended_table_index in 0..VDFS4_SNAPSHOT_EXT_TABLES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extended_table_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vdfs.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let mut extended_table_offset = [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: field `0` is never read [INFO] [stdout] --> src/vdfs.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | BtreeError(BtreeError), [INFO] [stdout] | ---------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VdfsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 27 | BtreeError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | DataSourceError(DataSourceError), [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VdfsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 28 | DataSourceError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | FileWriteError(String), [INFO] [stdout] | -------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VdfsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 | FileWriteError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | FileBlockNotFound(u64), [INFO] [stdout] | ----------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VdfsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 | FileBlockNotFound(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bitmap_size_in_bytes` is never read [INFO] [stdout] --> src/vdfs.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Vdfs<'a, S: DataSourceSource> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | bitmap_size_in_bytes: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/vdfs.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl<'a, S: DataSourceSource> Vdfs<'a, S> { [INFO] [stdout] | ----------------------------------------- methods in this implementation [INFO] [stdout] 80 | pub fn get_super_blocks(&self) -> &Vdfs4SuperBlocks { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn read_btree_head( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn read_bitmap_bit(&self, extent_offset: u64, bit_offset: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn get_bitmap_size_in_bits(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn read_extended_tables(&self, base_table: &DataPointer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | fn calc_crc32(&self, data: &(impl Encode + HasCrc32)) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | fn validate_crc32(&self, data: &(impl Encode + HasCrc32)) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs/btree.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | DataSourceError(DataSourceError), [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 | DataSourceError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/vdfs/btree.rs:14:38 [INFO] [stdout] | [INFO] [stdout] 14 | NodeAndBaseTableVersionsMismatch(u64, u64), [INFO] [stdout] | -------------------------------- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 14 | NodeAndBaseTableVersionsMismatch((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs/btree.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | BnodeRecordIndexOutOfBounds(u16), [INFO] [stdout] | --------------------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | BnodeRecordIndexOutOfBounds(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs/btree.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | BnodeRecordOffsetOutOfBounds(u32), [INFO] [stdout] | ---------------------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 | BnodeRecordOffsetOutOfBounds(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs/btree.rs:18:39 [INFO] [stdout] | [INFO] [stdout] 18 | BnodeRecordValueOffsetOutOfBounds(u64), [INFO] [stdout] | --------------------------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | BnodeRecordValueOffsetOutOfBounds(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/vdfs/btree.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | LevelIsTooHigh(u16, u16), [INFO] [stdout] | -------------- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 19 | LevelIsTooHigh((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bnode` is never constructed [INFO] [stdout] --> src/vdfs/btree.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Bnode { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bnode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `btree` is never read [INFO] [stdout] --> src/vdfs/btree/xattr.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct XattrTree<'a, S: DataSourceSource> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 5 | pub btree: VdfsBtree<'a, S>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `XattrTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/vdfs/data_source.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait WriteData { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 43 | fn write(&self, data_pointer: DataPointer) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_crc32` and `get_body_without_crc32` are never used [INFO] [stdout] --> src/vdfs/layout.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait HasCrc32 { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 6 | fn get_crc32(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | fn get_body_without_crc32<'a>(&'a self, bytes: &'a [u8]) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VDFS4_FULL_PATH_LEN` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const VDFS4_FULL_PATH_LEN: usize = 1023; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VDFS4_XATTR_VAL_MAX_LEN` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub const VDFS4_XATTR_VAL_MAX_LEN: usize = 200; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VDFS4_SNAPSHOT_EXTENDED_TABLE` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const VDFS4_SNAPSHOT_EXTENDED_TABLE: &str = "CoWE"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VDFS4_SNAPSHOT_EXT_SIZE` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:66:11 [INFO] [stdout] | [INFO] [stdout] 66 | pub const VDFS4_SNAPSHOT_EXT_SIZE: usize = 4096; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VDFS4_SNAPSHOT_EXT_TABLES` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | pub const VDFS4_SNAPSHOT_EXT_TABLES: usize = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/vdfs/layout/consts.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub enum SpecialInodeIds { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 77 | RootDirObject = 0, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | SpaceBitmap = 3, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 84 | /** free space bitmap inode */ [INFO] [stdout] 85 | ExtentsTree = 4, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 86 | /** inode bitamp inode number */ [INFO] [stdout] 87 | FreeInodeBitmap = 5, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | Snapshot = 7, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | OrphanInodes = 8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 93 | /** FIXME remove this line breaks fsck*/ [INFO] [stdout] 94 | FirstFile = 9, // First file inode [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SpaceBitmap` and `FreeInodeBitmap` are never constructed [INFO] [stdout] --> src/vdfs/layout/consts.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub enum BnodeType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 102 | CatalogTree = 2, [INFO] [stdout] 103 | SpaceBitmap = 3, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 104 | ExtentsTree = 4, [INFO] [stdout] 105 | FreeInodeBitmap = 5, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BnodeType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_max_record_len` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 172 | impl BtreeType { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 173 | pub fn get_max_record_len(self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_u32` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 186 | impl SpecialInodeIds { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 187 | pub fn from_u32(index: u32) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extended_table_index` [INFO] [stdout] --> src/vdfs.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | for extended_table_index in 0..VDFS4_SNAPSHOT_EXT_TABLES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extended_table_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vdfs.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let mut extended_table_offset = [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: field `0` is never read [INFO] [stdout] --> src/vdfs.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | BtreeError(BtreeError), [INFO] [stdout] | ---------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VdfsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 27 | BtreeError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | DataSourceError(DataSourceError), [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VdfsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 28 | DataSourceError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | FileWriteError(String), [INFO] [stdout] | -------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VdfsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 | FileWriteError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | FileBlockNotFound(u64), [INFO] [stdout] | ----------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VdfsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 | FileBlockNotFound(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bitmap_size_in_bytes` is never read [INFO] [stdout] --> src/vdfs.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Vdfs<'a, S: DataSourceSource> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | bitmap_size_in_bytes: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/vdfs.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl<'a, S: DataSourceSource> Vdfs<'a, S> { [INFO] [stdout] | ----------------------------------------- methods in this implementation [INFO] [stdout] 80 | pub fn get_super_blocks(&self) -> &Vdfs4SuperBlocks { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn read_btree_head( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn read_bitmap_bit(&self, extent_offset: u64, bit_offset: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn get_bitmap_size_in_bits(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn read_extended_tables(&self, base_table: &DataPointer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | fn calc_crc32(&self, data: &(impl Encode + HasCrc32)) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | fn validate_crc32(&self, data: &(impl Encode + HasCrc32)) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs/btree.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | DataSourceError(DataSourceError), [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 | DataSourceError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/vdfs/btree.rs:14:38 [INFO] [stdout] | [INFO] [stdout] 14 | NodeAndBaseTableVersionsMismatch(u64, u64), [INFO] [stdout] | -------------------------------- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 14 | NodeAndBaseTableVersionsMismatch((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs/btree.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | BnodeRecordIndexOutOfBounds(u16), [INFO] [stdout] | --------------------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | BnodeRecordIndexOutOfBounds(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs/btree.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | BnodeRecordOffsetOutOfBounds(u32), [INFO] [stdout] | ---------------------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 | BnodeRecordOffsetOutOfBounds(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vdfs/btree.rs:18:39 [INFO] [stdout] | [INFO] [stdout] 18 | BnodeRecordValueOffsetOutOfBounds(u64), [INFO] [stdout] | --------------------------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | BnodeRecordValueOffsetOutOfBounds(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/vdfs/btree.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | LevelIsTooHigh(u16, u16), [INFO] [stdout] | -------------- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BtreeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 19 | LevelIsTooHigh((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bnode` is never constructed [INFO] [stdout] --> src/vdfs/btree.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Bnode { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bnode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `btree` is never read [INFO] [stdout] --> src/vdfs/btree/xattr.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct XattrTree<'a, S: DataSourceSource> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 5 | pub btree: VdfsBtree<'a, S>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `XattrTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/vdfs/data_source.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait WriteData { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 43 | fn write(&self, data_pointer: DataPointer) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_crc32` and `get_body_without_crc32` are never used [INFO] [stdout] --> src/vdfs/layout.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait HasCrc32 { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 6 | fn get_crc32(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | fn get_body_without_crc32<'a>(&'a self, bytes: &'a [u8]) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VDFS4_FULL_PATH_LEN` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const VDFS4_FULL_PATH_LEN: usize = 1023; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VDFS4_XATTR_VAL_MAX_LEN` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub const VDFS4_XATTR_VAL_MAX_LEN: usize = 200; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VDFS4_SNAPSHOT_EXTENDED_TABLE` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const VDFS4_SNAPSHOT_EXTENDED_TABLE: &str = "CoWE"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VDFS4_SNAPSHOT_EXT_SIZE` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:66:11 [INFO] [stdout] | [INFO] [stdout] 66 | pub const VDFS4_SNAPSHOT_EXT_SIZE: usize = 4096; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VDFS4_SNAPSHOT_EXT_TABLES` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | pub const VDFS4_SNAPSHOT_EXT_TABLES: usize = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/vdfs/layout/consts.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub enum SpecialInodeIds { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 77 | RootDirObject = 0, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | SpaceBitmap = 3, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 84 | /** free space bitmap inode */ [INFO] [stdout] 85 | ExtentsTree = 4, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 86 | /** inode bitamp inode number */ [INFO] [stdout] 87 | FreeInodeBitmap = 5, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | Snapshot = 7, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | OrphanInodes = 8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 93 | /** FIXME remove this line breaks fsck*/ [INFO] [stdout] 94 | FirstFile = 9, // First file inode [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SpaceBitmap` and `FreeInodeBitmap` are never constructed [INFO] [stdout] --> src/vdfs/layout/consts.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub enum BnodeType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 102 | CatalogTree = 2, [INFO] [stdout] 103 | SpaceBitmap = 3, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 104 | ExtentsTree = 4, [INFO] [stdout] 105 | FreeInodeBitmap = 5, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BnodeType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_max_record_len` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 172 | impl BtreeType { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 173 | pub fn get_max_record_len(self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_u32` is never used [INFO] [stdout] --> src/vdfs/layout/consts.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 186 | impl SpecialInodeIds { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 187 | pub fn from_u32(index: u32) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.92s [INFO] running `Command { std: "docker" "inspect" "f07f0499b1dda5ce220357d1fa594ccdcf1ebcff497d9154d6745d21166ffe22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f07f0499b1dda5ce220357d1fa594ccdcf1ebcff497d9154d6745d21166ffe22", kill_on_drop: false }` [INFO] [stdout] f07f0499b1dda5ce220357d1fa594ccdcf1ebcff497d9154d6745d21166ffe22