warning: struct `Handle` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/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/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/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/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:17:10 | 17 | pub enum Object { | ^^^^^^ warning: method `id` is never used --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/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/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/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/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/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/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:49:10 | 49 | pub enum Error { | ^^^^^ warning: method `errno` is never used --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:62:18 | 61 | impl Error { | ---------- method in this implementation 62 | pub const fn errno(self) -> u64 { | ^^^^^ warning: struct `Entry` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:78:8 | 78 | struct Entry

{ | ^^^^^ warning: struct `Snapshot` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:87:12 | 87 | pub struct Snapshot { | ^^^^^^^^ warning: struct `Table` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:92:12 | 92 | pub struct Table { | ^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:98:18 | 97 | impl Table { | ---------------------------------------------- associated items in this implementation 98 | pub const fn new() -> Self { | ^^^ ... 104 | pub const fn with_generation_seed(generations: [u32; N]) -> Self { | ^^^^^^^^^^^^^^^^^^^^ ... 108 | pub fn len(&self) -> usize { | ^^^ ... 112 | pub fn owned(&self, owner: P) -> usize { | ^^^^^ ... 117 | pub fn open(&mut self, owner: P, object: Object) -> Result { | ^^^^ ... 126 | pub fn open_with_rights(&mut self, owner: P, object: Object, | ^^^^^^^^^^^^^^^^ ... 148 | fn entry(&self, owner: P, handle: Handle) -> Result, Error> { | ^^^^^ ... 157 | pub fn file_read(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^ ... 166 | pub fn file_write(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^ ... 175 | pub fn channel_send(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^^^ ... 184 | pub fn task_inspect(&self, owner: P, handle: Handle) -> Result { | ^^^^^^^^^^^^ ... 194 | pub fn duplicate(&mut self, owner: P, source: Handle, | ^^^^^^^^^ ... 212 | pub fn close(&mut self, owner: P, handle: Handle) -> Result<(), Error> { | ^^^^^ ... 220 | pub fn close_owner(&mut self, owner: P) -> usize { | ^^^^^^^^^^^ ... 231 | pub fn snapshot(&self) -> Snapshot { | ^^^^^^^^ warning: struct `WaitToken` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:243:12 | 243 | pub struct WaitToken(u64); | ^^^^^^^^^ warning: associated items `from_raw` and `raw` are never used --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:246:18 | 245 | impl WaitToken { | -------------- associated items in this implementation 246 | pub const fn from_raw(raw: u64) -> Self { Self(raw) } | ^^^^^^^^ 247 | pub const fn raw(self) -> u64 { self.0 } | ^^^ warning: enum `WaitResult` is never used --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:251:10 | 251 | pub enum WaitResult { Pending, Closed } | ^^^^^^^^^^ warning: enum `CloseResult` is never used --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:254:10 | 254 | pub enum CloseResult { Remaining(u32), LastClosed } | ^^^^^^^^^^^ warning: struct `SharedEntry` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:257:8 | 257 | struct SharedEntry

{ | ^^^^^^^^^^^ warning: struct `ResourceRecord` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:265:8 | 265 | struct ResourceRecord { | ^^^^^^^^^^^^^^ warning: struct `Watcher` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:272:8 | 272 | struct Watcher

{ | ^^^^^^^ warning: struct `SharedSnapshot` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:279:12 | 279 | pub struct SharedSnapshot { | ^^^^^^^^^^^^^^ warning: struct `SharedObjects` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:287:12 | 287 | pub struct SharedObjects { | ^^^^^^^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:296:18 | 295 | impl SharedObjects { | ------------------------------------------------------ associated items in this implementation 296 | pub const fn new() -> Self { | ^^^ ... 301 | pub fn handles(&self) -> usize { | ^^^^^^^ ... 305 | pub fn owned(&self, owner: P) -> usize { | ^^^^^ ... 309 | pub fn live_resources(&self) -> usize { | ^^^^^^^^^^^^^^ ... 313 | fn next_handle(&self, slot: usize) -> Result<(Handle, u32), Error> { | ^^^^^^^^^^^ ... 322 | fn lookup(&self, owner: P, handle: Handle) -> Result, Error> { | ^^^^^^ ... 331 | pub fn open_kernel(&mut self, owner: P, object: Object, | ^^^^^^^^^^^ ... 357 | pub fn grant_kernel(&mut self, owner: P, recipient: P, source: Handle, | ^^^^^^^^^^^^ ... 375 | pub fn query(&self, owner: P, handle: Handle) -> Result { | ^^^^^ ... 382 | pub fn channel_access(&self, owner: P, handle: Handle, | ^^^^^^^^^^^^^^ ... 392 | pub fn watch_close(&mut self, owner: P, handle: Handle) | ^^^^^^^^^^^ ... 404 | pub fn poll_close(&mut self, owner: P, token: WaitToken) | ^^^^^^^^^^ ... 421 | pub fn close(&mut self, owner: P, handle: Handle) | ^^^^^ ... 445 | pub fn close_owner(&mut self, owner: P) -> usize { | ^^^^^^^^^^^ ... 455 | pub fn snapshot(&self) -> SharedSnapshot { | ^^^^^^^^ warning: struct `Message` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:472:12 | 472 | pub struct Message { | ^^^^^^^ warning: methods `as_slice`, `len`, and `is_empty` are never used --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:478:12 | 477 | impl Message { | ----------------------------------- methods in this implementation 478 | pub fn as_slice(&self) -> &[u8] { &self.bytes[..self.len] } | ^^^^^^^^ 479 | pub fn len(&self) -> usize { self.len } | ^^^ 480 | pub fn is_empty(&self) -> bool { self.len == 0 } | ^^^^^^^^ warning: struct `QueueSnapshot` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:484:12 | 484 | pub struct QueueSnapshot /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:492:12 | 492 | pub struct BoundedChannel /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:503:18 | 501 | / impl BoundedChannel { | |____________________________________________________________- associated items in this implementation 503 | pub const fn new(channel_id: u64) -> Self { | ^^^ ... 508 | pub fn open_kernel(&mut self, owner: P) -> Result { | ^^^^^^^^^^^ ... 513 | pub fn grant_kernel(&mut self, owner: P, recipient: P, source: Handle, | ^^^^^^^^^^^^ ... 518 | fn access(&self, owner: P, handle: Handle, | ^^^^^^ ... 525 | pub fn send(&mut self, owner: P, handle: Handle, | ^^^^ ... 533 | pub fn send_from(&mut self, owner: P, handle: Handle, | ^^^^^^^^^ ... 548 | pub fn receive(&mut self, owner: P, handle: Handle) | ^^^^^^^ ... 558 | pub fn peek(&self, owner: P, handle: Handle) | ^^^^ ... 565 | pub fn close(&mut self, owner: P, handle: Handle) | ^^^^^ ... 576 | pub fn len(&self) -> usize { self.len } | ^^^ 577 | 578 | pub fn snapshot(&self) -> QueueSnapshot { | ^^^^^^^^ warning: struct `OwnedMessage` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:585:12 | 585 | pub struct OwnedMessage { | ^^^^^^^^^^^^ warning: struct `OwnedSnapshot` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:591:12 | 591 | pub struct OwnedSnapshot /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:597:12 | 597 | pub struct OwnedChannel /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:605:18 | 603 | / impl OwnedChannel { | |__________________________________________________________- associated items in this implementation 605 | pub const fn new(channel_id: u64) -> Self { | ^^^ ... 609 | pub fn open_kernel(&mut self, owner: P) -> Result { | ^^^^^^^^^^^ ... 613 | pub fn grant_kernel(&mut self, owner: P, recipient: P, source: Handle, | ^^^^^^^^^^^^ ... 618 | pub fn send(&mut self, owner: P, handle: Handle, | ^^^^ ... 624 | pub fn send_from(&mut self, owner: P, handle: Handle, | ^^^^^^^^^ ... 637 | pub fn peek(&self, owner: P, handle: Handle) | ^^^^ ... 646 | pub fn receive(&mut self, owner: P, handle: Handle) | ^^^^^^^ ... 657 | pub fn close(&mut self, owner: P, handle: Handle) | ^^^^^ ... 666 | pub fn len(&self) -> usize { self.base.len() } | ^^^ 667 | 668 | pub fn snapshot(&self) -> OwnedSnapshot { | ^^^^^^^^ warning: struct `TransferEntry` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:674:8 | 674 | struct TransferEntry

{ | ^^^^^^^^^^^^^ warning: struct `TransferEscrow` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:682:8 | 682 | struct TransferEscrow { | ^^^^^^^^^^^^^^ warning: struct `TransferSnapshot` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:692:12 | 692 | pub struct TransferSnapshot /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:703:12 | 703 | pub struct Transferred { | ^^^^^^^^^^^ warning: struct `TransferPreview` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:713:12 | 713 | pub struct TransferPreview { | ^^^^^^^^^^^^^^^ warning: struct `TransferTable` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:720:12 | 720 | pub struct TransferTable /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:732:18 | 730 | / impl TransferTable { | |_________________________________________________________- associated items in this implementation 732 | pub const fn new() -> Self { | ^^^ ... 738 | pub const fn with_seeds(generations: [u32; SLOTS], next_ticket: u64) -> Self { | ^^^^^^^^^^ ... 743 | fn next_handle(&self, slot: usize) -> Result<(Handle, u32), Error> { | ^^^^^^^^^^^ ... 752 | fn lookup(&self, owner: P, handle: Handle) -> Result<(usize, TransferEntry

), Error> { | ^^^^^^ ... 761 | pub fn open_kernel(&mut self, owner: P, object: Object, | ^^^^^^^^^^^ ... 777 | pub fn query(&self, owner: P, handle: Handle) | ^^^^^ ... 783 | pub fn send(&mut self, owner: P, source: Handle, recipient: P, | ^^^^ ... 789 | pub fn send_from(&mut self, owner: P, source: Handle, recipient: P, | ^^^^^^^^^ ... 815 | pub fn receive(&mut self, recipient: P) | ^^^^^^^ ... 834 | pub fn peek(&self, recipient: P) | ^^^^ ... 844 | pub fn close(&mut self, owner: P, handle: Handle) -> Result<(), Error> { | ^^^^^ ... 850 | pub fn queued(&self) -> usize { self.len } | ^^^^^^ 851 | 852 | pub fn owned(&self, owner: P) -> usize { | ^^^^^ ... 856 | pub fn snapshot(&self) -> TransferSnapshot { | ^^^^^^^^ warning: enum `PeerReceive` is never used --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:873:10 | 873 | pub enum PeerReceive { | ^^^^^^^^^^^ warning: struct `PeerSnapshot` is never constructed --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:880:12 | 880 | pub struct PeerSnapshot /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:889:12 | 889 | pub struct PeerChannel { | ^^^^^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1340-handles-peer-local-preflight-VrU4hC/workspace/os-handles/peer/handles.rs:900:12 | 898 | / impl 899 | | PeerChannel { | |______________________________- associated items in this implementation 900 | pub fn new(left: P, right: P) -> Result { | ^^^ ... 906 | fn side(&self, owner: P) -> Result { | ^^^^ ... 912 | pub fn send(&mut self, owner: P, bytes: &[u8]) -> Result<(), Error> { | ^^^^ ... 917 | pub fn send_from(&mut self, owner: P, length: usize, | ^^^^^^^^^ ... 935 | pub fn receive(&mut self, owner: P) -> Result, Error> { | ^^^^^^^ ... 949 | pub fn peek(&self, owner: P) -> Result, Error> { | ^^^^ ... 960 | pub fn close(&mut self, owner: P) -> Result<(), Error> { | ^^^^^ ... 971 | pub fn snapshot(&self) -> PeerSnapshot { | ^^^^^^^^ warning: 42 warnings emitted