rust/crates/hir/src
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
..
semantics Create all ModuleIds through a DefMap method 2021-01-25 15:21:33 +01:00
attrs.rs Fix broken link in intra-doc 2021-01-22 20:06:45 +09:00
db.rs Add name resolution query for block expressions 2021-01-21 15:22:17 +01:00
diagnostics.rs For unresolved macros, hightlight only the last segment 2021-02-28 14:29:10 +03:00
from_id.rs Remove useless code_model indirection 2021-03-08 22:08:30 +03:00
has_source.rs Obtain ModuleId's DefMap through a method 2021-01-22 16:33:58 +01:00
lib.rs Merge #7873 #7933 2021-03-09 11:58:48 +00:00
semantics.rs Less lifetines: derive SemanticsScope in place 2021-03-08 23:59:20 +02:00
source_analyzer.rs Remove useless code_model indirection 2021-03-08 22:08:30 +03:00