mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Provide Future::Output
and Iterator
lang items
This commit is contained in:
parent
3712bb7f6a
commit
34920dde8d
4 changed files with 9 additions and 3 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue