warning: variants `NoSpace`, `Stale`, `BadOwner`, `GenerationOverflow`, and `InvalidSlot` are never constructed --> /reports/os-implementation/K1640-turkfs-truncate-local-gyd1BC/source/kernel/tests/os/../../../os-turkfs-allocation/src/lib.rs:9:5 | 4 | pub enum Error { | ----- variants in this enum ... 9 | NoSpace, | ^^^^^^^ ... 16 | Stale, | ^^^^^ 17 | BadOwner, | ^^^^^^^^ 18 | GenerationOverflow, | ^^^^^^^^^^^^^^^^^^ 19 | InvalidSlot, | ^^^^^^^^^^^ | = note: `Error` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: method `allocate` is never used --> /reports/os-implementation/K1640-turkfs-truncate-local-gyd1BC/source/kernel/tests/os/../../../os-turkfs-allocation/src/lib.rs:57:12 | 38 | impl Bitmap { | ----------- method in this implementation ... 57 | pub fn allocate(&mut self) -> Result { | ^^^^^^^^ warning: struct `ExtentFile` is never constructed --> /reports/os-implementation/K1640-turkfs-truncate-local-gyd1BC/source/kernel/tests/os/../../../os-turkfs-allocation/src/lib.rs:79:12 | 79 | pub struct ExtentFile { | ^^^^^^^^^^ warning: associated items `one_block`, `blocks`, `count`, and `grow_to_three` are never used --> /reports/os-implementation/K1640-turkfs-truncate-local-gyd1BC/source/kernel/tests/os/../../../os-turkfs-allocation/src/lib.rs:85:12 | 84 | impl ExtentFile { | --------------- associated items in this implementation 85 | pub fn one_block(first: u8, bitmap: &Bitmap) -> Result { | ^^^^^^^^^ ... 94 | pub const fn blocks(&self) -> [u8; 3] { self.blocks } | ^^^^^^ 95 | 96 | pub const fn count(&self) -> u8 { self.count } | ^^^^^ ... 100 | pub fn grow_to_three(&mut self, bitmap: &mut Bitmap) -> Result<(), Error> { | ^^^^^^^^^^^^^ warning: struct `InodeHandle` is never constructed --> /reports/os-implementation/K1640-turkfs-truncate-local-gyd1BC/source/kernel/tests/os/../../../os-turkfs-allocation/src/lib.rs:114:12 | 114 | pub struct InodeHandle { | ^^^^^^^^^^^ warning: struct `InodeSlot` is never constructed --> /reports/os-implementation/K1640-turkfs-truncate-local-gyd1BC/source/kernel/tests/os/../../../os-turkfs-allocation/src/lib.rs:120:12 | 120 | pub struct InodeSlot { | ^^^^^^^^^ warning: associated items `new`, `allocate`, `owner`, `release`, `generation`, and `live` are never used --> /reports/os-implementation/K1640-turkfs-truncate-local-gyd1BC/source/kernel/tests/os/../../../os-turkfs-allocation/src/lib.rs:128:12 | 127 | impl InodeSlot { | -------------- associated items in this implementation 128 | pub fn new(slot: u16, generation: u64) -> Result { | ^^^ ... 133 | pub fn allocate(&mut self, owner: u64) -> Result { | ^^^^^^^^ ... 141 | pub fn owner(&self, handle: InodeHandle) -> Result { | ^^^^^ ... 147 | pub fn release(&mut self, handle: InodeHandle) -> Result<(), Error> { | ^^^^^^^ ... 157 | pub const fn generation(&self) -> u64 { self.generation } | ^^^^^^^^^^ 158 | 159 | pub const fn live(&self) -> bool { self.live } | ^^^^ warning: 7 warnings emitted