This repository was archived by the owner on Nov 18, 2022. It is now read-only.
This repository was archived by the owner on Nov 18, 2022. It is now read-only.
Tuple struct with #derive shows field types as references in tooltip #380
Open
Description
Given the following example:
#[derive(Debug)]
struct Bar {
i: usize,
}
#[derive(Debug)]
struct Foo(Bar);
The hover tooltip for Bar
in the Foo
definition shows &module_name::Bar
. If I remove the #derive
lines, it shows Bar { i }
as expected.
Additionally, when the #derive
lines are present, Go To Definition does not work for Bar
in the Foo
definition. Remove the #derive
lines and it works. Similarly for Find All References.