rust/crates
bors[bot] 07c7f35eff
Merge #6430
6430: Move completions rendering into a separate module r=popzxc a=popzxc

This PR extracts rendering-related things from `Completions` structure to the new `render` module.

`render` module declares a `Render` structure (which is a generic renderer interface), `RenderContext` (interface for data/methods not required for completions generating, but required for rendering), and a bunch of smaller `*Render` structures which encapsulate logic behind rendering a certain item.

This is just a step in full separation direction, since the following this are still to be done:

- Move some data from `CompletionContext` to the `RenderContext`;
- Forbid any kind of rendering outside of `render` module;
- Extract score computing into a separate module.

This PR is already pretty big, so not to make it even harder to review I decided to split this process into several subsequent PRs.


Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
2020-11-03 07:54:45 +00:00
..
arena Add TBD description to arena 2020-08-24 13:29:10 +02:00
assists Merge #6393 #6399 2020-11-02 17:40:47 +00:00
base_db Deny unreachable-pub 2020-11-02 14:07:08 +01:00
cfg cfg: move tests to separate file 2020-10-23 12:14:58 +02:00
completion Remove intra-crate facade from completions 2020-11-03 10:36:01 +03:00
flycheck Update crates 2020-10-20 17:36:02 -04:00
hir Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
hir_def Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
hir_expand Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
hir_ty Improve decl_check module readability 2020-11-03 10:13:49 +03:00
ide Merge #6365 2020-11-02 17:47:08 +00:00
ide_db Merge #6331 #6342 2020-10-24 19:08:12 +00:00
mbe Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
parser Don't interpret type path as part of visibility. 2020-10-24 02:20:45 -04:00
paths Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_api Deny unreachable-pub 2020-11-02 14:07:08 +01:00
proc_macro_srv Deny unreachable-pub 2020-11-02 14:07:08 +01:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Deny unreachable-pub 2020-11-02 14:07:08 +01:00
project_model Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
rust-analyzer Fix coalescing of prime_caches updates 2020-11-02 18:49:54 +01:00
ssr Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
stdx Fix panic context 2020-10-23 15:18:33 +02:00
syntax Merge #6365 2020-11-02 17:47:08 +00:00
test_utils Fix indentation of inserted use statements 2020-10-24 18:25:23 +02:00
text_edit Actually assert disjointness 2020-09-03 13:37:36 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt Add description for crates that will be published 2020-08-24 13:07:22 +02:00
vfs Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
vfs-notify Follow symlinks when walking project trees 2020-10-15 14:22:36 -04:00