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

Cannot go to definition of tuple struct at constructor invocation #112

Closed
doxxx opened this issue Aug 7, 2017 · 1 comment
Closed

Cannot go to definition of tuple struct at constructor invocation #112

doxxx opened this issue Aug 7, 2017 · 1 comment
Labels

Comments

@doxxx
Copy link

doxxx commented Aug 7, 2017

Given the following:

struct Foo(u32);

struct Baz {}

fn stuff() {
    let x = Foo(1);
    let y = Baz {};
}

I cannot ctrl-click Foo in the stuff function, but I can ctrl-click Baz. The syntax coloring seems to imply that the Foo constructor is being recognized as a function invocation.

@doxxx doxxx changed the title Cannot go to definition for struct tuple constructor invocation Cannot go to definition of tuple struct at constructor invocation Aug 7, 2017
@nrc nrc added the bug label Aug 9, 2017
@nrc
Copy link
Member

nrc commented Aug 9, 2017

Tracked here: rust-dev-tools/rls-analysis#77

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

No branches or pull requests

2 participants