warning: struct `Handle` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:7:12 | 7 | 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/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:10:18 | 9 | impl Handle { | ----------- associated items in this implementation 10 | pub const fn from_raw(raw: u64) -> Self { Self(raw) } | ^^^^^^^^ 11 | pub const fn raw(self) -> u64 { self.0 } | ^^^ 12 | pub const fn slot(self) -> u32 { self.0 as u32 } | ^^^^ 13 | pub const fn generation(self) -> u32 { (self.0 >> 32) as u32 } | ^^^^^^^^^^ warning: enum `Object` is never used --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:17:10 | 17 | pub enum Object { | ^^^^^^ warning: method `id` is never used --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:24:14 | 23 | impl Object { | ----------- method in this implementation 24 | const fn id(self) -> u64 { | ^^ warning: struct `Rights` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:32:12 | 32 | pub struct Rights(u8); | ^^^^^^ warning: associated items `READ`, `WRITE`, `READ_WRITE`, `contains`, and `is_nonempty_subset_of` are never used --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:35:15 | 34 | impl Rights { | ----------- associated items in this implementation 35 | pub const READ: Self = Self(1); | ^^^^ 36 | pub const WRITE: Self = Self(2); | ^^^^^ 37 | pub const READ_WRITE: Self = Self(3); | ^^^^^^^^^^ 38 | 39 | pub const fn contains(self, required: Self) -> bool { | ^^^^^^^^ ... 43 | pub const fn is_nonempty_subset_of(self, original: Self) -> bool { | ^^^^^^^^^^^^^^^^^^^^^ warning: enum `Error` is never used --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:49:10 | 49 | pub enum Error { | ^^^^^ warning: method `errno` is never used --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:61:18 | 60 | impl Error { | ---------- method in this implementation 61 | pub const fn errno(self) -> u64 { | ^^^^^ warning: struct `Entry` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:76:8 | 76 | struct Entry

{ | ^^^^^ warning: struct `Snapshot` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:85:12 | 85 | pub struct Snapshot { | ^^^^^^^^ warning: struct `Table` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:90:12 | 90 | pub struct Table { | ^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:96:18 | 95 | impl Table { | ---------------------------------------------- associated items in this implementation 96 | pub const fn new() -> Self { | ^^^ ... 102 | pub const fn with_generation_seed(generations: [u32; N]) -> Self { | ^^^^^^^^^^^^^^^^^^^^ ... 106 | pub fn len(&self) -> usize { | ^^^ ... 110 | pub fn owned(&self, owner: P) -> usize { | ^^^^^ ... 115 | pub fn open(&mut self, owner: P, object: Object) -> Result { | ^^^^ ... 124 | pub fn open_with_rights(&mut self, owner: P, object: Object, | ^^^^^^^^^^^^^^^^ ... 146 | fn entry(&self, owner: P, handle: Handle) -> Result, Error> { | ^^^^^ ... 155 | pub fn file_read(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^ ... 164 | pub fn file_write(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^ ... 173 | pub fn channel_send(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^^^ ... 182 | pub fn task_inspect(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^^^ ... 192 | pub fn duplicate(&mut self, owner: P, source: Handle, | ^^^^^^^^^ ... 210 | pub fn close(&mut self, owner: P, handle: Handle) -> Result<(), Error> { | ^^^^^ ... 218 | pub fn close_owner(&mut self, owner: P) -> usize { | ^^^^^^^^^^^ ... 229 | pub fn snapshot(&self) -> Snapshot { | ^^^^^^^^ warning: struct `WaitToken` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:241:12 | 241 | pub struct WaitToken(u64); | ^^^^^^^^^ warning: associated items `from_raw` and `raw` are never used --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:244:18 | 243 | impl WaitToken { | -------------- associated items in this implementation 244 | pub const fn from_raw(raw: u64) -> Self { Self(raw) } | ^^^^^^^^ 245 | pub const fn raw(self) -> u64 { self.0 } | ^^^ warning: enum `WaitResult` is never used --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:249:10 | 249 | pub enum WaitResult { Pending, Closed } | ^^^^^^^^^^ warning: enum `CloseResult` is never used --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:252:10 | 252 | pub enum CloseResult { Remaining(u32), LastClosed } | ^^^^^^^^^^^ warning: struct `SharedEntry` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:255:8 | 255 | struct SharedEntry

{ | ^^^^^^^^^^^ warning: struct `ResourceRecord` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:263:8 | 263 | struct ResourceRecord { | ^^^^^^^^^^^^^^ warning: struct `Watcher` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:270:8 | 270 | struct Watcher

{ | ^^^^^^^ warning: struct `SharedSnapshot` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:277:12 | 277 | pub struct SharedSnapshot { | ^^^^^^^^^^^^^^ warning: struct `SharedObjects` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:285:12 | 285 | pub struct SharedObjects { | ^^^^^^^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:294:18 | 293 | impl SharedObjects { | ------------------------------------------------------ associated items in this implementation 294 | pub const fn new() -> Self { | ^^^ ... 299 | pub fn handles(&self) -> usize { | ^^^^^^^ ... 303 | pub fn owned(&self, owner: P) -> usize { | ^^^^^ ... 307 | pub fn live_resources(&self) -> usize { | ^^^^^^^^^^^^^^ ... 311 | fn next_handle(&self, slot: usize) -> Result<(Handle, u32), Error> { | ^^^^^^^^^^^ ... 320 | fn lookup(&self, owner: P, handle: Handle) -> Result, Error> { | ^^^^^^ ... 329 | pub fn open_kernel(&mut self, owner: P, object: Object, | ^^^^^^^^^^^ ... 355 | pub fn grant_kernel(&mut self, owner: P, recipient: P, source: Handle, | ^^^^^^^^^^^^ ... 373 | pub fn query(&self, owner: P, handle: Handle) -> Result { | ^^^^^ ... 380 | pub fn channel_access(&self, owner: P, handle: Handle, | ^^^^^^^^^^^^^^ ... 390 | pub fn watch_close(&mut self, owner: P, handle: Handle) | ^^^^^^^^^^^ ... 402 | pub fn poll_close(&mut self, owner: P, token: WaitToken) | ^^^^^^^^^^ ... 419 | pub fn close(&mut self, owner: P, handle: Handle) | ^^^^^ ... 443 | pub fn close_owner(&mut self, owner: P) -> usize { | ^^^^^^^^^^^ ... 453 | pub fn snapshot(&self) -> SharedSnapshot { | ^^^^^^^^ warning: struct `Message` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:470:12 | 470 | pub struct Message { | ^^^^^^^ warning: methods `as_slice`, `len`, and `is_empty` are never used --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:476:12 | 475 | impl Message { | ----------------------------------- methods in this implementation 476 | pub fn as_slice(&self) -> &[u8] { &self.bytes[..self.len] } | ^^^^^^^^ 477 | pub fn len(&self) -> usize { self.len } | ^^^ 478 | pub fn is_empty(&self) -> bool { self.len == 0 } | ^^^^^^^^ warning: struct `QueueSnapshot` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:482:12 | 482 | pub struct QueueSnapshot /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:490:12 | 490 | pub struct BoundedChannel /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:501:18 | 499 | / impl BoundedChannel { | |____________________________________________________________- associated items in this implementation 501 | pub const fn new(channel_id: u64) -> Self { | ^^^ ... 506 | pub fn open_kernel(&mut self, owner: P) -> Result { | ^^^^^^^^^^^ ... 511 | pub fn grant_kernel(&mut self, owner: P, recipient: P, source: Handle, | ^^^^^^^^^^^^ ... 516 | fn access(&self, owner: P, handle: Handle, | ^^^^^^ ... 523 | pub fn send(&mut self, owner: P, handle: Handle, | ^^^^ ... 531 | pub fn send_from(&mut self, owner: P, handle: Handle, | ^^^^^^^^^ ... 546 | pub fn receive(&mut self, owner: P, handle: Handle) | ^^^^^^^ ... 556 | pub fn peek(&self, owner: P, handle: Handle) | ^^^^ ... 563 | pub fn close(&mut self, owner: P, handle: Handle) | ^^^^^ ... 574 | pub fn len(&self) -> usize { self.len } | ^^^ 575 | 576 | pub fn snapshot(&self) -> QueueSnapshot { | ^^^^^^^^ warning: struct `OwnedMessage` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:583:12 | 583 | pub struct OwnedMessage { | ^^^^^^^^^^^^ warning: struct `OwnedSnapshot` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:589:12 | 589 | pub struct OwnedSnapshot /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:595:12 | 595 | pub struct OwnedChannel /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:603:18 | 601 | / impl OwnedChannel { | |__________________________________________________________- associated items in this implementation 603 | pub const fn new(channel_id: u64) -> Self { | ^^^ ... 607 | pub fn open_kernel(&mut self, owner: P) -> Result { | ^^^^^^^^^^^ ... 611 | pub fn grant_kernel(&mut self, owner: P, recipient: P, source: Handle, | ^^^^^^^^^^^^ ... 616 | pub fn send(&mut self, owner: P, handle: Handle, | ^^^^ ... 622 | pub fn send_from(&mut self, owner: P, handle: Handle, | ^^^^^^^^^ ... 635 | pub fn peek(&self, owner: P, handle: Handle) | ^^^^ ... 644 | pub fn receive(&mut self, owner: P, handle: Handle) | ^^^^^^^ ... 655 | pub fn close(&mut self, owner: P, handle: Handle) | ^^^^^ ... 664 | pub fn len(&self) -> usize { self.base.len() } | ^^^ 665 | 666 | pub fn snapshot(&self) -> OwnedSnapshot { | ^^^^^^^^ warning: struct `TransferEntry` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:672:8 | 672 | struct TransferEntry

{ | ^^^^^^^^^^^^^ warning: struct `TransferEscrow` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:680:8 | 680 | struct TransferEscrow { | ^^^^^^^^^^^^^^ warning: struct `TransferSnapshot` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:690:12 | 690 | pub struct TransferSnapshot /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:701:12 | 701 | pub struct Transferred { | ^^^^^^^^^^^ warning: struct `TransferPreview` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:711:12 | 711 | pub struct TransferPreview { | ^^^^^^^^^^^^^^^ warning: struct `TransferTable` is never constructed --> /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:718:12 | 718 | pub struct TransferTable /reports/os-implementation/K1335-handles-transfer-local-preflight-gGoIFC/workspace/os-handles/transfer/handles.rs:730:18 | 728 | / impl TransferTable { | |_________________________________________________________- associated items in this implementation 730 | pub const fn new() -> Self { | ^^^ ... 736 | pub const fn with_seeds(generations: [u32; SLOTS], next_ticket: u64) -> Self { | ^^^^^^^^^^ ... 741 | fn next_handle(&self, slot: usize) -> Result<(Handle, u32), Error> { | ^^^^^^^^^^^ ... 750 | fn lookup(&self, owner: P, handle: Handle) -> Result<(usize, TransferEntry

), Error> { | ^^^^^^ ... 759 | pub fn open_kernel(&mut self, owner: P, object: Object, | ^^^^^^^^^^^ ... 775 | pub fn query(&self, owner: P, handle: Handle) | ^^^^^ ... 781 | pub fn send(&mut self, owner: P, source: Handle, recipient: P, | ^^^^ ... 787 | pub fn send_from(&mut self, owner: P, source: Handle, recipient: P, | ^^^^^^^^^ ... 813 | pub fn receive(&mut self, recipient: P) | ^^^^^^^ ... 832 | pub fn peek(&self, recipient: P) | ^^^^ ... 842 | pub fn close(&mut self, owner: P, handle: Handle) -> Result<(), Error> { | ^^^^^ ... 848 | pub fn queued(&self) -> usize { self.len } | ^^^^^^ 849 | 850 | pub fn owned(&self, owner: P) -> usize { | ^^^^^ ... 854 | pub fn snapshot(&self) -> TransferSnapshot { | ^^^^^^^^ warning: 38 warnings emitted