Skip to content

Render auto traits in RPIT #23237

Description

@A4-Tacks

Similar #14055

trait Trait {}
impl Trait for T {}
fn foo() -> impl Trait {
    &raw const ()
}

Hover on impl outputs:

impl Trait + Unpin + UnwindSafe + RefUnwindSafe
impl Trait = *const ()
---
impl
---
keyword docs...

Maybe we can use inlayHints, but there are too many auto traits

Complex cases that should be implemented:

async foo() -> Result<(impl ToString, impl Fn()), impl Error> { /*...*/ }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions