rust-analyzer/crates/hir/src
bors[bot] 1a82af3527
Merge #7900 #8000
7900: show function params in completion detail r=matklad a=JoshMcguigan

This resolves #7842 by updating the detail for function completions from `-> T` to `fn(T, U) -> V`. I added an expicit unit test for this, `ide_completion::render::fn_detail_includes_args_and_return_type`, which passes.

Lots of other unit tests fail (~60 of them) due to this change, although I believe the failures are purely cosmetic (they were testing the exact format of this output). I'm happy to go update those tests, but before I do that I'd like to make sure this is in fact the format we want for the detail?

edit - I realized `UPDATE_EXPECT=1 cargo test` automatically updates `expect!` tests. Big 👍 to whoever worked on that! So I'll go ahead and update all these tests soon. But I still would like to confirm `fn(T, U) -> V` is the desired content in the `detail` field. 

8000: Use hir formatter for hover text r=matklad a=oxalica

Fix #2765 , (should) fix #4665

Co-authored-by: Josh Mcguigan <joshmcg88@gmail.com>
Co-authored-by: oxalica <oxalicc@pm.me>
2021-03-16 08:05:24 +00:00
..
semantics Return multiple modules in parent_module 2021-03-15 15:15:40 +01:00
attrs.rs Fix broken link in intra-doc 2021-01-22 20:06:45 +09:00
db.rs Add name resolution query for block expressions 2021-01-21 15:22:17 +01:00
diagnostics.rs For unresolved macros, hightlight only the last segment 2021-02-28 14:29:10 +03:00
display.rs Pretty print root module of extern crates 2021-03-16 01:24:21 +08:00
from_id.rs Remove useless code_model indirection 2021-03-08 22:08:30 +03:00
has_source.rs Obtain ModuleId's DefMap through a method 2021-01-22 16:33:58 +01:00
lib.rs Merge #7900 #8000 2021-03-16 08:05:24 +00:00
semantics.rs Return multiple modules in parent_module 2021-03-15 15:15:40 +01:00
source_analyzer.rs Simplify source maps for fields 2021-03-15 15:38:50 +03:00