mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
feat: Show notable trait impls on hover
This commit is contained in:
parent
384488c157
commit
82e8355492
7 changed files with 556 additions and 374 deletions
|
@ -1166,6 +1166,7 @@ pub mod future {
|
|||
task::{Context, Poll},
|
||||
};
|
||||
|
||||
#[doc(notable_trait)]
|
||||
#[lang = "future_trait"]
|
||||
pub trait Future {
|
||||
type Output;
|
||||
|
@ -1264,6 +1265,7 @@ pub mod iter {
|
|||
|
||||
mod traits {
|
||||
mod iterator {
|
||||
#[doc(notable_trait)]
|
||||
pub trait Iterator {
|
||||
type Item;
|
||||
#[lang = "next"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue