]> git.lizzy.rs Git - rust.git/commit
Merge #8020
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Mon, 15 Mar 2021 14:08:26 +0000 (14:08 +0000)
committerGitHub <noreply@github.com>
Mon, 15 Mar 2021 14:08:26 +0000 (14:08 +0000)
commitf2c39d0cdf708d6178740385f58d6b2b657e411a
tree83ed009ee98b3c1cfe1cbcc203c1c419c914569e
parent3962b0d53c8da6e3f95f54395d266cb99562bd47
parent79561b9d2e901e2624f94ffa7bc6017f0249f23d
Merge #8020

8020: Power up goto_implementation r=matklad a=Veykril

by allowing it to be invoked on references of names, now showing all (trait)
implementations of the given type in all crates instead of just the defining
crate as well as including support for builtin types

![image](https://user-images.githubusercontent.com/3757771/111144403-52bb0700-8587-11eb-9205-7a2a5b8b75a3.png)
Example screenshot of `impl`s of Box in `log`, `alloc`, `std` and the current crate. Before you had to invoke it on the definition where it would only show the `impls` in `alloc`.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
crates/hir/src/lib.rs
crates/hir_ty/src/method_resolution.rs