]> git.proxmox.com Git - rustc.git/blobdiff - vendor/rustix/src/backend/linux_raw/event/poll_fd.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / vendor / rustix / src / backend / linux_raw / event / poll_fd.rs
index 906efe0ef18d9053a2f2354d67b4275919f4121e..c56c9152ddc4fde9f776d2d80219883201d5b14c 100644 (file)
@@ -30,6 +30,9 @@ bitflags! {
         const NVAL = linux_raw_sys::general::POLLNVAL as u16;
         /// `POLLRDHUP`
         const RDHUP = linux_raw_sys::general::POLLRDHUP as u16;
+
+        /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+        const _ = !0;
     }
 }
 
@@ -81,7 +84,7 @@ impl<'fd> PollFd<'fd> {
     /// Returns the ready events.
     #[inline]
     pub fn revents(&self) -> PollFlags {
-        // Use `unwrap()` here because in theory we know we know all the bits
+        // Use `.unwrap()` here because in theory we know we know all the bits
         // the OS might set here, but OS's have added extensions in the past.
         PollFlags::from_bits(self.revents).unwrap()
     }