rust-analyzer/crates
bors[bot] a423b307e6
Merge #9744
9744: fix: Annotate type hints for pattern name ranges instead of the pattern itself r=Veykril a=Veykril

The current type hints do not go well with `bindings_after_at` which is likely to land with 1.56(https://github.com/rust-lang/rust/pull/85305 🎉very excited for this), hence annotate the names of ident patterns instead of the entire pattern.

This changes where the typehints go for ident patterns that use @ bindings, some example comparisons:

Before:
![Code_82ILMppkve](https://user-images.githubusercontent.com/3757771/127741276-e1dd173b-2964-4df0-abae-860283b2e1be.png)
After:
![Code_tPttN2rJpw](https://user-images.githubusercontent.com/3757771/127741277-e7fc2836-4f31-4c45-a3a9-69cbff3d52d9.png)

This change has no visible effect on patterns without ``@`` bindings.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-07-31 13:41:04 +00:00
..
base_db Complete editable private items 2021-07-23 19:57:16 +02:00
cfg internal: add simple smoke test for project model 2021-07-20 16:23:57 +03:00
flycheck internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
hir Make flyimport respect #[doc(hidden)] 2021-07-28 19:22:59 +02:00
hir_def Merge #9700 2021-07-28 12:07:25 +00:00
hir_expand Add Limit struct. 2021-07-19 13:26:11 +01:00
hir_ty Merge #9706 2021-07-29 16:14:10 +00:00
ide Annotate type hints for pattern name ranges instead of the pattern itself 2021-07-31 15:30:45 +02:00
ide_assists Fix hover range for derive inputs 2021-07-31 14:59:31 +02:00
ide_completion internal: document query implication of completion rendering 2021-07-31 16:13:15 +03:00
ide_db Replace useless types 2021-07-31 14:29:15 +02:00
ide_diagnostics Fix assists assuming comma belonging to MATCH_ARM_LIST 2021-07-30 16:01:26 +02:00
ide_ssr minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
limit Add Limit struct. 2021-07-19 13:26:11 +01:00
mbe minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
parser Simplify 2021-07-30 13:12:52 +02:00
paths Fix AbsPath::ends_with 2021-07-18 10:25:14 +03:00
proc_macro_api Replace useless types 2021-07-31 14:29:15 +02:00
proc_macro_srv Bump deps 2021-07-31 11:25:03 +03:00
proc_macro_test cargo_metadata 0.14 2021-07-09 11:01:55 -04:00
profile internal: make non-zero times stand out in profile 2021-07-31 16:22:03 +03:00
project_model internal: add simple smoke test for project model 2021-07-20 16:23:57 +03:00
rust-analyzer feat: gate custom clint-side commands behind capabilities 2021-07-30 19:16:33 +03:00
sourcegen minor: make sure that project_root works correctly 2021-07-13 15:02:29 +03:00
stdx Remove proc macro management thread 2021-07-08 16:43:39 +02:00
syntax Merge #9740 2021-07-31 12:05:41 +00:00
test_utils Complete editable private items 2021-07-23 19:57:16 +02:00
text_edit minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
toolchain minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
tt minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
vfs internal: make it easier to isolate IO 2021-07-17 17:55:16 +03:00
vfs-notify Bump notify to 5.0.0-pre.11 2021-07-28 10:09:58 -07:00