]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/future/future.rs
Auto merge of #75635 - Aaron1011:fix/incr-fn-param-names, r=eddyb
[rust.git] / library / core / src / future / future.rs
index 733ebdc0e97f236e3c88120c51431696e0df9aca..8169c146137c224b4ee8016c69e3e3b76dfd5ee4 100644 (file)
@@ -96,6 +96,7 @@ pub trait Future {
     /// [`Context`]: ../task/struct.Context.html
     /// [`Waker`]: ../task/struct.Waker.html
     /// [`Waker::wake`]: ../task/struct.Waker.html#method.wake
+    #[cfg_attr(not(bootstrap), lang = "poll")]
     #[stable(feature = "futures_api", since = "1.36.0")]
     fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>;
 }