warning: struct `Handle` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/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/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/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/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:16:10 | 16 | pub enum Object { | ^^^^^^ warning: method `id` is never used --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/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/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/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/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/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/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:48:10 | 48 | pub enum Error { | ^^^^^ warning: method `errno` is never used --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:60:18 | 59 | impl Error { | ---------- method in this implementation 60 | pub const fn errno(self) -> u64 { | ^^^^^ warning: struct `Entry` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:75:8 | 75 | struct Entry

{ | ^^^^^ warning: struct `Snapshot` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:84:12 | 84 | pub struct Snapshot { | ^^^^^^^^ warning: struct `Table` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:89:12 | 89 | pub struct Table { | ^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:95:18 | 94 | impl Table { | ---------------------------------------------- associated items in this implementation 95 | pub const fn new() -> Self { | ^^^ ... 101 | pub const fn with_generation_seed(generations: [u32; N]) -> Self { | ^^^^^^^^^^^^^^^^^^^^ ... 105 | pub fn len(&self) -> usize { | ^^^ ... 109 | pub fn owned(&self, owner: P) -> usize { | ^^^^^ ... 114 | pub fn open(&mut self, owner: P, object: Object) -> Result { | ^^^^ ... 123 | pub fn open_with_rights(&mut self, owner: P, object: Object, | ^^^^^^^^^^^^^^^^ ... 145 | fn entry(&self, owner: P, handle: Handle) -> Result, Error> { | ^^^^^ ... 154 | pub fn file_read(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^ ... 163 | pub fn file_write(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^ ... 172 | pub fn channel_send(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^^^ ... 181 | pub fn task_inspect(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^^^ ... 191 | pub fn duplicate(&mut self, owner: P, source: Handle, | ^^^^^^^^^ ... 209 | pub fn close(&mut self, owner: P, handle: Handle) -> Result<(), Error> { | ^^^^^ ... 217 | pub fn close_owner(&mut self, owner: P) -> usize { | ^^^^^^^^^^^ ... 228 | pub fn snapshot(&self) -> Snapshot { | ^^^^^^^^ warning: struct `WaitToken` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:240:12 | 240 | pub struct WaitToken(u64); | ^^^^^^^^^ warning: associated items `from_raw` and `raw` are never used --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:243:18 | 242 | impl WaitToken { | -------------- associated items in this implementation 243 | pub const fn from_raw(raw: u64) -> Self { Self(raw) } | ^^^^^^^^ 244 | pub const fn raw(self) -> u64 { self.0 } | ^^^ warning: enum `WaitResult` is never used --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:248:10 | 248 | pub enum WaitResult { Pending, Closed } | ^^^^^^^^^^ warning: enum `CloseResult` is never used --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:251:10 | 251 | pub enum CloseResult { Remaining(u32), LastClosed } | ^^^^^^^^^^^ warning: struct `SharedEntry` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:254:8 | 254 | struct SharedEntry

{ | ^^^^^^^^^^^ warning: struct `ResourceRecord` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:262:8 | 262 | struct ResourceRecord { | ^^^^^^^^^^^^^^ warning: struct `Watcher` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:269:8 | 269 | struct Watcher

{ | ^^^^^^^ warning: struct `SharedSnapshot` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:276:12 | 276 | pub struct SharedSnapshot { | ^^^^^^^^^^^^^^ warning: struct `SharedObjects` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:284:12 | 284 | pub struct SharedObjects { | ^^^^^^^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:293:18 | 292 | impl SharedObjects { | ------------------------------------------------------ associated items in this implementation 293 | pub const fn new() -> Self { | ^^^ ... 298 | pub fn handles(&self) -> usize { | ^^^^^^^ ... 302 | pub fn owned(&self, owner: P) -> usize { | ^^^^^ ... 306 | pub fn live_resources(&self) -> usize { | ^^^^^^^^^^^^^^ ... 310 | fn next_handle(&self, slot: usize) -> Result<(Handle, u32), Error> { | ^^^^^^^^^^^ ... 319 | fn lookup(&self, owner: P, handle: Handle) -> Result, Error> { | ^^^^^^ ... 328 | pub fn open_kernel(&mut self, owner: P, object: Object, | ^^^^^^^^^^^ ... 354 | pub fn grant_kernel(&mut self, owner: P, recipient: P, source: Handle, | ^^^^^^^^^^^^ ... 372 | pub fn query(&self, owner: P, handle: Handle) -> Result { | ^^^^^ ... 379 | pub fn channel_access(&self, owner: P, handle: Handle, | ^^^^^^^^^^^^^^ ... 389 | pub fn watch_close(&mut self, owner: P, handle: Handle) | ^^^^^^^^^^^ ... 401 | pub fn poll_close(&mut self, owner: P, token: WaitToken) | ^^^^^^^^^^ ... 418 | pub fn close(&mut self, owner: P, handle: Handle) | ^^^^^ ... 442 | pub fn close_owner(&mut self, owner: P) -> usize { | ^^^^^^^^^^^ ... 452 | pub fn snapshot(&self) -> SharedSnapshot { | ^^^^^^^^ warning: struct `Message` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:469:12 | 469 | pub struct Message { | ^^^^^^^ warning: methods `as_slice`, `len`, and `is_empty` are never used --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:475:12 | 474 | impl Message { | ----------------------------------- methods in this implementation 475 | pub fn as_slice(&self) -> &[u8] { &self.bytes[..self.len] } | ^^^^^^^^ 476 | pub fn len(&self) -> usize { self.len } | ^^^ 477 | pub fn is_empty(&self) -> bool { self.len == 0 } | ^^^^^^^^ warning: struct `QueueSnapshot` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:481:12 | 481 | pub struct QueueSnapshot /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:489:12 | 489 | pub struct BoundedChannel /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:500:18 | 498 | / impl BoundedChannel { | |____________________________________________________________- associated items in this implementation 500 | pub const fn new(channel_id: u64) -> Self { | ^^^ ... 505 | pub fn open_kernel(&mut self, owner: P) -> Result { | ^^^^^^^^^^^ ... 510 | pub fn grant_kernel(&mut self, owner: P, recipient: P, source: Handle, | ^^^^^^^^^^^^ ... 515 | fn access(&self, owner: P, handle: Handle, | ^^^^^^ ... 522 | pub fn send(&mut self, owner: P, handle: Handle, | ^^^^ ... 530 | pub fn send_from(&mut self, owner: P, handle: Handle, | ^^^^^^^^^ ... 545 | pub fn receive(&mut self, owner: P, handle: Handle) | ^^^^^^^ ... 555 | pub fn peek(&self, owner: P, handle: Handle) | ^^^^ ... 562 | pub fn close(&mut self, owner: P, handle: Handle) | ^^^^^ ... 573 | pub fn len(&self) -> usize { self.len } | ^^^ 574 | 575 | pub fn snapshot(&self) -> QueueSnapshot { | ^^^^^^^^ warning: struct `OwnedMessage` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:582:12 | 582 | pub struct OwnedMessage { | ^^^^^^^^^^^^ warning: struct `OwnedSnapshot` is never constructed --> /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:588:12 | 588 | pub struct OwnedSnapshot /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:594:12 | 594 | pub struct OwnedChannel /reports/os-implementation/K1330-handles-owned-local-preflight-0l9ooL/workspace/os-handles/owned/handles.rs:602:18 | 600 | / impl OwnedChannel { | |__________________________________________________________- associated items in this implementation 602 | pub const fn new(channel_id: u64) -> Self { | ^^^ ... 606 | pub fn open_kernel(&mut self, owner: P) -> Result { | ^^^^^^^^^^^ ... 610 | pub fn grant_kernel(&mut self, owner: P, recipient: P, source: Handle, | ^^^^^^^^^^^^ ... 615 | pub fn send(&mut self, owner: P, handle: Handle, | ^^^^ ... 621 | pub fn send_from(&mut self, owner: P, handle: Handle, | ^^^^^^^^^ ... 634 | pub fn peek(&self, owner: P, handle: Handle) | ^^^^ ... 643 | pub fn receive(&mut self, owner: P, handle: Handle) | ^^^^^^^ ... 654 | pub fn close(&mut self, owner: P, handle: Handle) | ^^^^^ ... 663 | pub fn len(&self) -> usize { self.base.len() } | ^^^ 664 | 665 | pub fn snapshot(&self) -> OwnedSnapshot { | ^^^^^^^^ warning: 31 warnings emitted