]> git.lizzy.rs Git - rust.git/commit
feat: goto definition on an impl fn goes to that fn in the trait
authorJade <software@lfcode.ca>
Tue, 1 Jun 2021 23:16:59 +0000 (16:16 -0700)
committerJade <software@lfcode.ca>
Mon, 7 Jun 2021 04:51:17 +0000 (21:51 -0700)
commit8a57c736404abac81a6de20b0e90c19021e040b9
tree5ece2fcdc66cf91dd269ff0c64c2dc91ff216565
parent13da28cc2bc1b59f7af817eca36927a71edb023c
feat: goto definition on an impl fn goes to that fn in the trait

e.g. if you have a trait T and `impl T for S` for some struct, if you
goto definition on some function name inside the impl, it will go to the
definition of that function inside the `trait T` block, rather than the
current behaviour of not going anywhere at all.
crates/hir/src/lib.rs
crates/ide/src/goto_definition.rs