rust/crates
bors[bot] bf84e4958e
Merge #6331 #6342
6331: correct hover text for items with doc attribute with raw strings r=matklad a=JoshMcguigan

Fixes #6300 by improving the handling of raw string literals in attribute style doc comments.

This still has a bug where it could consume too many `"` at the start or end of the comment text, just as the original code had. Not sure if we want to fix that as part of this PR or not? If so, I think I'd prefer to add a unit test for either the `as_simple_key_value` function (I'm not exactly sure where this would belong / how to set this up) or create a `fn(&SmolStr) -> &SmolStr` to unit test by factoring out the `trim` operations from `as_simple_key_value`. Thoughts on this? 

6342: Shorter dependency chain r=matklad a=popzxc

Continuing implementing suggestions from the `Completion refactoring` zulip thread.

This PR does the following:

- Removes dependency of `completions` on `assists` by moving required functionality into `ide_db`.
- Moves completely `call_info` crate into `ide_db` as it looks like it fits perfect there.
- Adds a bunch of new tests and docs.
- Adds the re-export of `base_db` to the `ide_db` and removes direct dependency on `base_db` from other crates.

The last point is controversial, I guess, but I noticed that in places where `ide_db` is used, `base_db` is also *always* used. Thus I think the dependency on the `base_db` is implied by the fact of `ide_db` interfaces, and thus it makes sense to just provide `base_db` out of the box.


Co-authored-by: Josh Mcguigan <joshmcg88@gmail.com>
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
2020-10-24 19:08:12 +00:00
..
arena
assists Merge #6331 #6342 2020-10-24 19:08:12 +00:00
base_db More type safety around names 2020-10-20 17:09:03 +02:00
cfg cfg: move tests to separate file 2020-10-23 12:14:58 +02:00
completion Re-export base_db from ide_db 2020-10-24 11:39:57 +03:00
flycheck Update crates 2020-10-20 17:36:02 -04:00
hir Merge #6251 #6310 2020-10-23 22:12:15 +00:00
hir_def Fix name of InactiveCode diagnostic 2020-10-23 19:31:11 +02:00
hir_expand Fix typo in comment 2020-10-21 21:51:53 +02:00
hir_ty Bump chalk 2020-10-24 17:14:05 +03:00
ide Merge #6331 #6342 2020-10-24 19:08:12 +00:00
ide_db Merge #6331 #6342 2020-10-24 19:08:12 +00:00
mbe Cleanup 2020-10-07 11:55:20 +02:00
parser
paths
proc_macro_api Bump crossbeam-channel in crates 2020-10-13 16:57:01 +03:00
proc_macro_srv Update crates 2020-10-20 17:36:02 -04:00
proc_macro_test
profile Bump rustc_lexer, cfg-if to 1.0 and add new license to check 2020-10-08 10:39:02 -04:00
project_model Update crates 2020-10-20 17:36:02 -04:00
rust-analyzer Merge #6331 #6342 2020-10-24 19:08:12 +00:00
ssr Re-export base_db from ide_db 2020-10-24 11:39:57 +03:00
stdx Fix panic context 2020-10-23 15:18:33 +02:00
syntax Merge #6331 #6342 2020-10-24 19:08:12 +00:00
test_utils Fix indentation of inserted use statements 2020-10-24 18:25:23 +02:00
text_edit
toolchain
tt
vfs
vfs-notify Follow symlinks when walking project trees 2020-10-15 14:22:36 -04:00