warning: struct `Handle` is never constructed --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:6:12 | 6 | pub struct Handle(u64); | ^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: associated items `from_raw`, `raw`, `slot`, and `generation` are never used --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:9:18 | 8 | impl Handle { | ----------- associated items in this implementation 9 | pub const fn from_raw(raw: u64) -> Self { Self(raw) } | ^^^^^^^^ 10 | pub const fn raw(self) -> u64 { self.0 } | ^^^ 11 | pub const fn slot(self) -> u32 { self.0 as u32 } | ^^^^ 12 | pub const fn generation(self) -> u32 { (self.0 >> 32) as u32 } | ^^^^^^^^^^ warning: enum `Object` is never used --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:16:10 | 16 | pub enum Object { | ^^^^^^ warning: method `id` is never used --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:23:14 | 22 | impl Object { | ----------- method in this implementation 23 | const fn id(self) -> u64 { | ^^ warning: struct `Rights` is never constructed --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:31:12 | 31 | pub struct Rights(u8); | ^^^^^^ warning: associated items `READ`, `WRITE`, `READ_WRITE`, `contains`, and `is_nonempty_subset_of` are never used --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:34:15 | 33 | impl Rights { | ----------- associated items in this implementation 34 | pub const READ: Self = Self(1); | ^^^^ 35 | pub const WRITE: Self = Self(2); | ^^^^^ 36 | pub const READ_WRITE: Self = Self(3); | ^^^^^^^^^^ 37 | 38 | pub const fn contains(self, required: Self) -> bool { | ^^^^^^^^ ... 42 | pub const fn is_nonempty_subset_of(self, original: Self) -> bool { | ^^^^^^^^^^^^^^^^^^^^^ warning: enum `Error` is never used --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:48:10 | 48 | pub enum Error { | ^^^^^ warning: method `errno` is never used --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:57:18 | 56 | impl Error { | ---------- method in this implementation 57 | pub const fn errno(self) -> u64 { | ^^^^^ warning: struct `Entry` is never constructed --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:69:8 | 69 | struct Entry

{ | ^^^^^ warning: struct `Snapshot` is never constructed --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:78:12 | 78 | pub struct Snapshot { | ^^^^^^^^ warning: struct `Table` is never constructed --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:83:12 | 83 | pub struct Table { | ^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1315-handles-rights-local-preflight-Rp3G5H/workspace/os-handles/rights/handles.rs:89:18 | 88 | impl Table { | ---------------------------------------------- associated items in this implementation 89 | pub const fn new() -> Self { | ^^^ ... 95 | pub const fn with_generation_seed(generations: [u32; N]) -> Self { | ^^^^^^^^^^^^^^^^^^^^ ... 99 | pub fn len(&self) -> usize { | ^^^ ... 103 | pub fn owned(&self, owner: P) -> usize { | ^^^^^ ... 108 | pub fn open(&mut self, owner: P, object: Object) -> Result { | ^^^^ ... 117 | pub fn open_with_rights(&mut self, owner: P, object: Object, | ^^^^^^^^^^^^^^^^ ... 139 | fn entry(&self, owner: P, handle: Handle) -> Result, Error> { | ^^^^^ ... 148 | pub fn file_read(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^ ... 157 | pub fn file_write(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^ ... 166 | pub fn channel_send(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^^^ ... 175 | pub fn task_inspect(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^^^ ... 185 | pub fn duplicate(&mut self, owner: P, source: Handle, | ^^^^^^^^^ ... 203 | pub fn close(&mut self, owner: P, handle: Handle) -> Result<(), Error> { | ^^^^^ ... 211 | pub fn close_owner(&mut self, owner: P) -> usize { | ^^^^^^^^^^^ ... 222 | pub fn snapshot(&self) -> Snapshot { | ^^^^^^^^ warning: 12 warnings emitted