]> git.proxmox.com Git - rustc.git/blobdiff - library/core/src/task/poll.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / library / core / src / task / poll.rs
index 41f0a25dbc3e08daa688c5b6202ba987d468765a..f1dc4f7b575aaeb03deaaa41ace566fdbb0ec36e 100644 (file)
@@ -9,6 +9,7 @@ use crate::task::Ready;
 /// scheduled to receive a wakeup instead.
 #[must_use = "this `Poll` may be a `Pending` variant, which should be handled"]
 #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
+#[cfg_attr(not(bootstrap), lang = "Poll")]
 #[stable(feature = "futures_api", since = "1.36.0")]
 pub enum Poll<T> {
     /// Represents that a value is immediately ready.