rust-analyzer/crates
bors[bot] 21913d0fdb
Merge #7873 #7933
7873: Consider unresolved qualifiers during flyimport r=matklad a=SomeoneToIgnore

Closes https://github.com/rust-analyzer/rust-analyzer/issues/7679

Takes unresolved qualifiers into account, providing better completions (or none, if the path is resolved or do not match).

Does not handle cases when both path qualifier and some trait has to be imported: there are many extra issues with those (such as overlapping imports, for instance) that will require large diffs to address.

Also does not do a fuzzy search on qualifier, that requires some adjustments in `import_map` for better queries and changes to the default replace range which also seems relatively big to include here.

![qualifier_completion](https://user-images.githubusercontent.com/2690773/110040808-0af8dc00-7d4c-11eb-83db-65af94e843bb.gif)


7933: Improve compilation speed r=matklad a=matklad

bors r+
🤖

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-03-09 11:58:48 +00:00
..
base_db Fixed remaining references to AnalysisChange (now: Change) 2021-02-28 12:57:41 +01:00
cfg Upgrade expect-test to 1.1 2021-01-03 14:43:29 +01:00
flycheck Bump cargo_metadata 2021-03-02 14:27:29 +02:00
hir Merge #7873 #7933 2021-03-09 11:58:48 +00:00
hir_def Better strip turbofishes 2021-03-08 23:59:39 +02:00
hir_expand Fix assert split exprs on comma 2021-02-28 20:46:24 +08:00
hir_ty Use upstream cov-mark 2021-03-08 22:19:44 +02:00
ide Work towards better import labels 2021-03-08 23:59:20 +02:00
ide_assists Merge #7873 #7933 2021-03-09 11:58:48 +00:00
ide_completion Merge #7873 #7933 2021-03-09 11:58:48 +00:00
ide_db Better strip turbofishes 2021-03-08 23:59:39 +02:00
ide_ssr Use upstream cov-mark 2021-03-08 22:19:44 +02:00
mbe Use upstream cov-mark 2021-03-08 22:19:44 +02:00
parser Fix fail to parse :: for meta in mbe 2021-03-06 04:57:34 +08:00
paths Document paths items 2021-01-22 15:38:33 +01:00
proc_macro_api Remove redundant clones 2021-02-05 16:57:26 +01:00
proc_macro_srv Use upstream cov-mark 2021-03-08 22:19:44 +02: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 Never run cargo check on the rustc source 2021-03-08 16:42:18 +00:00
rust-analyzer Merge #7873 #7933 2021-03-09 11:58:48 +00:00
stdx Cleanup decl_check 2021-02-05 16:09:45 +01:00
syntax Merge #7873 #7933 2021-03-09 11:58:48 +00: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 Refactor TokenBuffer for reduc cloning 2021-01-05 02:00:46 +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