aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/resolver.rs
Commit message (Collapse)AuthorAgeFilesLines
* Make `ModPath`'s representation privateJonas Schievink2021-02-041-6/+6
|
* Create all `ModuleId`s through a `DefMap` methodJonas Schievink2021-01-251-1/+1
| | | | | `ModuleId` needs to be able to represent blocks, and only the associated `DefMap` will know how to construct that `ModuleId`
* Obtain `ModuleId`'s `DefMap` through a methodJonas Schievink2021-01-221-3/+3
|
* Fix broken link in intra-docDaiki Ihara2021-01-221-0/+13
|
* DefMap: hide remaining crate-visible fieldsJonas Schievink2021-01-201-5/+5
|
* Show const params in completionsLukas Wirth2021-01-191-9/+16
|
* Rename `CrateDefMap` to `DefMap`Jonas Schievink2021-01-181-8/+4
|
* Handle self/super/crate in PathSegment as NameRefLukas Wirth2021-01-151-1/+1
|
* Merge #7110bors[bot]2021-01-141-2/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7110: Deduplicate macros when offering completion r=matklad a=AdnoC Closes https://github.com/rust-analyzer/rust-analyzer/issues/7081 When iterating over the names within the `hir_def::resolver::Scope` for a module, track what macros are in the `hir_def::item_scope::ItemScope::legacy_macros` collection for the module. When iterating over names from the prelude, do not proccess the name if it had been in the `legacy_macros` collection. This is implemented with a `FxHashSet` in the `Scope::process_names` function that is populated when iterating over `legacy_macros` and checked when iterating over the prelude. Alternative implementation could instead query the `legacy_macros` `FxHashMap` directly when processing names in the prelude. Also, I'd like to add a test for this, but I'm not sure where it could be added. Co-authored-by: AdnoC <[email protected]>
| * we can have one less call to name.clone()AdnoC2020-12-311-2/+3
| |
| * deduplicate macro completions from legacy macros and preludeAdnoC2020-12-311-2/+7
| |
* | Fixed typos in code commentsVincent Esche2021-01-091-1/+1
| |
* | Add ConstParams to the HIRLukas Wirth2021-01-011-5/+12
|/
* Rename ra_hir_def -> hir_defAleksey Kladov2020-08-131-0/+713