Auto merge of #17941 - ChayimFriedman2:pre-closure-to-fn, r=Veykril

Preliminary work for #17940

I split the PR as requested, and made small commits.
This commit is contained in:
bors 2024-08-26 08:09:15 +00:00
commit 0ad26e6025
26 changed files with 816 additions and 167 deletions

View file

@ -1196,6 +1196,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>;
@ -1293,6 +1294,7 @@ pub mod iter {
mod traits {
mod iterator {
#[doc(notable_trait)]
#[lang = "iterator"]
pub trait Iterator {
type Item;
#[lang = "next"]