Provide Future::Output and Iterator lang items

This commit is contained in:
Chayim Refael Friedman 2024-08-22 14:33:35 +03:00
parent 3712bb7f6a
commit 34920dde8d
4 changed files with 9 additions and 3 deletions

View file

@ -1195,6 +1195,7 @@ pub mod future {
#[doc(notable_trait)]
#[lang = "future_trait"]
pub trait Future {
#[lang = "future_output"]
type Output;
#[lang = "poll"]
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>;
@ -1292,6 +1293,7 @@ pub mod iter {
mod traits {
mod iterator {
#[doc(notable_trait)]
#[lang = "iterator"]
pub trait Iterator {
type Item;
#[lang = "next"]