feat: Show notable trait impls on hover

This commit is contained in:
Lukas Wirth 2024-01-16 16:15:56 +01:00
parent 384488c157
commit 82e8355492
7 changed files with 556 additions and 374 deletions

View file

@ -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"]