warning: struct `RegistrationId` is never constructed --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:7:12 | 7 | 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/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:10:18 | 9 | impl RegistrationId { | ------------------- 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 generation(self) -> u32 { (self.0 >> 32) as u32 } | ^^^^^^^^^^ 13 | pub const fn slot(self) -> u32 { self.0 as u32 } | ^^^^ warning: enum `Kind` is never used --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:17:10 | 17 | pub enum Kind { File, Channel, Task } | ^^^^ warning: struct `ObjectKey` is never constructed --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:20:12 | 20 | pub struct ObjectKey { pub kind: Kind, pub id: u64 } | ^^^^^^^^^ warning: struct `Interest` is never constructed --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:23:12 | 23 | pub struct Interest(u8); | ^^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:26:15 | 25 | impl Interest { | ------------- associated items in this implementation 26 | pub const READ: Self = Self(1); | ^^^^ 27 | pub const WRITE: Self = Self(2); | ^^^^^ 28 | pub const CLOSED: Self = Self(4); | ^^^^^^ 29 | pub const READ_CLOSED: Self = Self(5); | ^^^^^^^^^^^ 30 | pub const fn from_bits(bits: u8) -> Self { Self(bits) } | ^^^^^^^^^ 31 | pub const fn bits(self) -> u8 { self.0 } | ^^^^ 32 | pub const fn valid(self) -> bool { self.0 != 0 && self.0 & !7 == 0 } | ^^^^^ warning: enum `Error` is never used --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:36:10 | 36 | pub enum Error { BadFd, Access, Invalid, Full, Exists, Overflow } | ^^^^^ warning: method `errno` is never used --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:39:18 | 38 | impl Error { | ---------- method in this implementation 39 | pub const fn errno(self) -> u64 { | ^^^^^ warning: struct `Registration` is never constructed --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:48:8 | 48 | struct Registration { id: RegistrationId, object: ObjectKey, interest: Interest } | ^^^^^^^^^^^^ warning: struct `Snapshot` is never constructed --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:51:12 | 51 | pub struct Snapshot { | ^^^^^^^^ warning: struct `Waitset` is never constructed --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:56:12 | 56 | pub struct Waitset { | ^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:63:18 | 62 | impl Waitset { | ------------------------------------------------ associated items in this implementation 63 | pub const fn new(owner: P) -> Self { | ^^^ ... 68 | pub const fn with_generation_seed(owner: P, generations: [u32; N]) -> Self { | ^^^^^^^^^^^^^^^^^^^^ ... 72 | pub fn register(&mut self, caller: P, object: ObjectKey, | ^^^^^^^^ ... 90 | pub fn query(&self, caller: P, id: RegistrationId) | ^^^^^ ... 100 | pub fn unregister(&mut self, caller: P, id: RegistrationId) | ^^^^^^^^^^ ... 108 | pub fn len(&self) -> usize { | ^^^ ... 112 | pub fn snapshot(&self) -> Snapshot { | ^^^^^^^^ warning: struct `ReadySnapshot` is never constructed --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:120:12 | 120 | pub struct ReadySnapshot { | ^^^^^^^^^^^^^ warning: struct `Readiness` is never constructed --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:125:12 | 125 | pub struct Readiness { | ^^^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1350-waitset-readiness-local-preflight-5IwtO3/workspace/os-waitset/readiness/waitset.rs:131:18 | 130 | impl Readiness { | -------------------------------------------------- associated items in this implementation 131 | pub const fn new(owner: P) -> Self { | ^^^ ... 135 | pub fn register(&mut self, caller: P, object: ObjectKey, | ^^^^^^^^ ... 143 | pub fn unregister(&mut self, caller: P, id: RegistrationId) | ^^^^^^^^^^ ... 152 | pub fn replace_level(&mut self, object: ObjectKey, | ^^^^^^^^^^^^^ ... 162 | pub fn poll(&mut self, caller: P, id: RegistrationId) | ^^^^ ... 171 | pub fn len(&self) -> usize { self.set.len() } | ^^^ 172 | 173 | pub fn snapshot(&self) -> ReadySnapshot { | ^^^^^^^^ warning: 15 warnings emitted