warning: struct `RegistrationId` is never constructed --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:6:12 | 6 | pub struct RegistrationId(u64); | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: associated items `from_raw`, `raw`, `generation`, and `slot` are never used --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:9:18 | 8 | impl RegistrationId { | ------------------- 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 generation(self) -> u32 { (self.0 >> 32) as u32 } | ^^^^^^^^^^ 12 | pub const fn slot(self) -> u32 { self.0 as u32 } | ^^^^ warning: enum `Kind` is never used --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:16:10 | 16 | pub enum Kind { File, Channel, Task } | ^^^^ warning: struct `ObjectKey` is never constructed --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:19:12 | 19 | pub struct ObjectKey { pub kind: Kind, pub id: u64 } | ^^^^^^^^^ warning: struct `Interest` is never constructed --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:22:12 | 22 | pub struct Interest(u8); | ^^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:25:15 | 24 | impl Interest { | ------------- associated items in this implementation 25 | pub const READ: Self = Self(1); | ^^^^ 26 | pub const WRITE: Self = Self(2); | ^^^^^ 27 | pub const CLOSED: Self = Self(4); | ^^^^^^ 28 | pub const READ_CLOSED: Self = Self(5); | ^^^^^^^^^^^ 29 | pub const fn from_bits(bits: u8) -> Self { Self(bits) } | ^^^^^^^^^ 30 | pub const fn bits(self) -> u8 { self.0 } | ^^^^ 31 | pub const fn valid(self) -> bool { self.0 != 0 && self.0 & !7 == 0 } | ^^^^^ warning: enum `Error` is never used --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:35:10 | 35 | pub enum Error { BadFd, Access, Invalid, Full, Exists, Overflow } | ^^^^^ warning: method `errno` is never used --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:38:18 | 37 | impl Error { | ---------- method in this implementation 38 | pub const fn errno(self) -> u64 { | ^^^^^ warning: struct `Registration` is never constructed --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:47:8 | 47 | struct Registration { id: RegistrationId, object: ObjectKey, interest: Interest } | ^^^^^^^^^^^^ warning: struct `Snapshot` is never constructed --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:50:12 | 50 | pub struct Snapshot { | ^^^^^^^^ warning: struct `Waitset` is never constructed --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:55:12 | 55 | pub struct Waitset { | ^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1345-waitset-register-local-preflight-zrCT0M/workspace/os-waitset/src/waitset.rs:62:18 | 61 | impl Waitset { | ------------------------------------------------ associated items in this implementation 62 | pub const fn new(owner: P) -> Self { | ^^^ ... 67 | pub const fn with_generation_seed(owner: P, generations: [u32; N]) -> Self { | ^^^^^^^^^^^^^^^^^^^^ ... 71 | pub fn register(&mut self, caller: P, object: ObjectKey, | ^^^^^^^^ ... 89 | pub fn query(&self, caller: P, id: RegistrationId) | ^^^^^ ... 99 | pub fn unregister(&mut self, caller: P, id: RegistrationId) | ^^^^^^^^^^ ... 107 | pub fn len(&self) -> usize { | ^^^ ... 111 | pub fn snapshot(&self) -> Snapshot { | ^^^^^^^^ warning: 12 warnings emitted