warning: struct `Handle` is never constructed --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/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/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/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/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:16:10 | 16 | pub enum Object { | ^^^^^^ warning: method `id` is never used --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/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/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/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/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/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/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:48:10 | 48 | pub enum Error { | ^^^^^ warning: method `errno` is never used --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/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/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:69:8 | 69 | struct Entry

{ | ^^^^^ warning: struct `Snapshot` is never constructed --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:78:12 | 78 | pub struct Snapshot { | ^^^^^^^^ warning: struct `Table` is never constructed --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:83:12 | 83 | pub struct Table { | ^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/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: struct `WaitToken` is never constructed --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:234:12 | 234 | pub struct WaitToken(u64); | ^^^^^^^^^ warning: associated items `from_raw` and `raw` are never used --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:237:18 | 236 | impl WaitToken { | -------------- associated items in this implementation 237 | pub const fn from_raw(raw: u64) -> Self { Self(raw) } | ^^^^^^^^ 238 | pub const fn raw(self) -> u64 { self.0 } | ^^^ warning: enum `WaitResult` is never used --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:242:10 | 242 | pub enum WaitResult { Pending, Closed } | ^^^^^^^^^^ warning: enum `CloseResult` is never used --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:245:10 | 245 | pub enum CloseResult { Remaining(u32), LastClosed } | ^^^^^^^^^^^ warning: struct `SharedEntry` is never constructed --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:248:8 | 248 | struct SharedEntry

{ | ^^^^^^^^^^^ warning: struct `ResourceRecord` is never constructed --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:256:8 | 256 | struct ResourceRecord { | ^^^^^^^^^^^^^^ warning: struct `Watcher` is never constructed --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:263:8 | 263 | struct Watcher

{ | ^^^^^^^ warning: struct `SharedSnapshot` is never constructed --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:270:12 | 270 | pub struct SharedSnapshot { | ^^^^^^^^^^^^^^ warning: struct `SharedObjects` is never constructed --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:278:12 | 278 | pub struct SharedObjects { | ^^^^^^^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1320-handles-lifetime-local-preflight-jfT5st/workspace/os-handles/lifetime/handles.rs:287:18 | 286 | impl SharedObjects { | ------------------------------------------------------ associated items in this implementation 287 | pub const fn new() -> Self { | ^^^ ... 292 | pub fn handles(&self) -> usize { | ^^^^^^^ ... 296 | pub fn owned(&self, owner: P) -> usize { | ^^^^^ ... 300 | pub fn live_resources(&self) -> usize { | ^^^^^^^^^^^^^^ ... 304 | fn next_handle(&self, slot: usize) -> Result<(Handle, u32), Error> { | ^^^^^^^^^^^ ... 313 | fn lookup(&self, owner: P, handle: Handle) -> Result, Error> { | ^^^^^^ ... 322 | pub fn open_kernel(&mut self, owner: P, object: Object, | ^^^^^^^^^^^ ... 348 | pub fn grant_kernel(&mut self, owner: P, recipient: P, source: Handle, | ^^^^^^^^^^^^ ... 366 | pub fn query(&self, owner: P, handle: Handle) -> Result { | ^^^^^ ... 373 | pub fn watch_close(&mut self, owner: P, handle: Handle) | ^^^^^^^^^^^ ... 385 | pub fn poll_close(&mut self, owner: P, token: WaitToken) | ^^^^^^^^^^ ... 402 | pub fn close(&mut self, owner: P, handle: Handle) | ^^^^^ ... 426 | pub fn close_owner(&mut self, owner: P) -> usize { | ^^^^^^^^^^^ ... 436 | pub fn snapshot(&self) -> SharedSnapshot { | ^^^^^^^^ warning: 22 warnings emitted