rust/crates
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
..
base_db Fixed remaining references to AnalysisChange (now: Change) 2021-02-28 12:57:41 +01:00
cfg Add runnables::related_tests 2021-02-27 18:00:17 +03:00
flycheck Bump cargo_metadata 2021-03-02 14:27:29 +02:00
hir Merge #7900 #8000 2021-03-16 08:05:24 +00:00
hir_def Merge #7900 #8000 2021-03-16 08:05:24 +00:00
hir_expand Fix macro expansion for statements w/o semicolon 2021-03-16 13:44:50 +08:00
hir_ty Merge #7900 #8000 2021-03-16 08:05:24 +00:00
ide Merge #7900 #8000 2021-03-16 08:05:24 +00:00
ide_assists 7709: Added the check for return type of len function. 2021-03-16 01:16:59 +05:30
ide_completion Merge #7900 #8000 2021-03-16 08:05:24 +00:00
ide_db Enable thread-local coverage marks 2021-03-15 16:02:50 +02:00
ide_ssr Enable thread-local coverage marks 2021-03-15 16:02:50 +02:00
mbe Fix macro expansion for statements w/o semicolon 2021-03-16 13:44:50 +08:00
parser Fix macro expansion for statements w/o semicolon 2021-03-16 13:44:50 +08:00
paths Document paths items 2021-01-22 15:38:33 +01:00
proc_macro_api Add test for proc-macro meta info retrieval 2021-03-15 23:38:22 +08:00
proc_macro_srv Add test for proc-macro meta info retrieval 2021-03-15 23:38:22 +08:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile add more counts 2021-01-27 12:39:19 +03:00
project_model some clippy::performance fixes 2021-03-15 10:19:59 +01:00
rust-analyzer Enable proc-macros by default 2021-03-15 18:19:08 +03:00
stdx Cleanup decl_check 2021-02-05 16:09:45 +01:00
syntax Fix macro expansion for statements w/o semicolon 2021-03-16 13:44:50 +08:00
test_utils Use upstream cov-mark 2021-03-08 22:19:44 +02:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt add expand log 2021-03-13 20:14:21 +08:00
vfs Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00