]> git.lizzy.rs Git - rust.git/commit
Add go to type definition for struct fields within struct
authorJade <software@lfcode.ca>
Tue, 25 May 2021 11:06:54 +0000 (04:06 -0700)
committerJade <software@lfcode.ca>
Tue, 25 May 2021 11:06:54 +0000 (04:06 -0700)
commitff585e4730a867e7bb68c65ff45867a501841ae4
tree013c694524016de25944edd4209c4a5b3b5bdaa1
parent8b049ec393230e4b9fea3022a3ebf34e2af5395d
Add go to type definition for struct fields within struct

Example:

```rust
struct A;

struct B {
    a/*<- cursor*/: A,
}
```

Go to type definition used to not work on this position. It now goes to
`A` as expected.
crates/ide/src/goto_type_definition.rs