Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Ctrl-click navigation is not possible for enum type but possible for enum members #383

Closed
ancwrd1 opened this issue Jul 23, 2018 · 1 comment

Comments

@ancwrd1
Copy link

ancwrd1 commented Jul 23, 2018

Consider the following example:

enum MyEnum { Foo }

fn main() {
    let v = MyEnum::Foo;
}

When pressing Ctrl and hovering mouse over MyEnum::Foo it is possible to go to Foo definition but not MyEnum definition.

@nrc
Copy link
Member

nrc commented Jul 24, 2018

In general, for paths like foo::bar::baz we only have information for baz, not for foo and bar. This is a limitation in the compiler, but I hope to fix it at some point.

Tracked in rust-dev-tools/rls-analysis#109

@nrc nrc closed this as completed Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants