mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
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:
commit
0ad26e6025
26 changed files with 816 additions and 167 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue