Skip to content

"42 implementations" CodeLens shouldn't count derived traits as implementations #20016

Open
@Vlad-Shcherbina

Description

@Vlad-Shcherbina
#[derive(Debug)]
// lens says “2 implementations”
struct MyStruct { ... }

...

impl MyStruct { ... } // the only "interesting" implementation

Why it's an issue:

  • The derive line is literally adjacent, so the counting and navigation aid is pointless
  • When all impls are derived, the lens still takes space and distracts, while providing no value at all

A possible solution would be to exclude derived traits from the cound and from preview/navigation,
or at least show them separately: "2 implemenations | 40 derived".

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions