rust-analyzer/crates/hir/src
bors[bot] cae54d86d8
Merge #9761
9761: feat: Show coerced types on type hover r=Veykril a=Veykril

This applies to both the ranged hover request as well as the normal hover type fallback.
![image](https://user-images.githubusercontent.com/3757771/127883884-2935b624-a3e5-4f35-861a-7d6d3266d187.png)
![image](https://user-images.githubusercontent.com/3757771/127883951-4ff96b6b-7576-4886-887b-1198c1121841.png)

We unfortunately have to leave out syntax highlighting here as otherwise the `Type` and `Coerced` words in the hover will get colored.

Note that this does not show all the coercions yet(and almost no pattern coercions) as not all coercion adjustments are implemented yet.

Closes https://github.com/rust-analyzer/rust-analyzer/issues/2677

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-08-02 15:44:43 +00:00
..
semantics intenral: dont export impl details 2021-06-22 16:53:53 +03:00
attrs.rs resolve_doc_path is able to resolve to macros 2021-08-02 14:33:09 +02:00
db.rs Add more docs 2021-05-22 16:53:47 +03:00
diagnostics.rs Wrap inner tail expressions in MissingOkOrSomeInTailExpr 2021-07-31 20:00:09 +02:00
display.rs Don't store supertraits in ItemTree 2021-05-27 16:52:30 +03:00
from_id.rs Stop reexporting hir_def's ItemInNs from HIR 2021-07-28 17:39:04 +02:00
has_source.rs internal: more natural order of sources for TypeParam 2021-06-14 22:42:43 +03:00
lib.rs internal: explain that we don't ref in style.md 2021-08-02 15:59:28 +03:00
semantics.rs Show coerced types on type hover 2021-08-02 17:10:36 +02:00
source_analyzer.rs Show coerced types on type hover 2021-08-02 17:10:36 +02:00