Skip to content

Call hierarchy on trait methods shows implementing methods #13712

@allanbrondum

Description

@allanbrondum

Doing a call hierarchy on a method defined in a trait does not only list callers but also implementors. Example is call hierarchy on callee in the following example. It lists <S1 as T1>::callee and caller. It should only list caller.

trait T1 {
    fn callee();
}

struct S1;

impl T1 for S1 {
    fn callee() {}
}

fn caller() {
    S1::callee();
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions