aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/nameres/path_resolution.rs
Commit message (Collapse)AuthorAgeFilesLines
* Restrict visibilities to the containing DefMapJonas Schievink2021-02-281-4/+17
|
* Fix resolution of `self` module within blocksJonas Schievink2021-02-051-1/+9
|
* Fix merging of `segment_index` in path resolutionJonas Schievink2021-02-051-2/+5
|
* Make `ModPath`'s representation privateJonas Schievink2021-02-041-10/+10
|
* Don't keep the parent DefMap alive via ArcJonas Schievink2021-02-041-6/+8
| | | | | This seems like it could easily leak a lot of memory since we don't currently run GC
* Fix resolution of `crate` paths from within blocksJonas Schievink2021-02-021-2/+2
| | | | | They resolve to the crate root, not the DefMap's root module (which can be a block)
* Use the right `DefMap` when looking up modulesJonas Schievink2021-02-021-1/+9
|
* Update `original_module` when ascending `DefMap`sJonas Schievink2021-01-281-2/+5
|
* Traverse parent DefMap for `super` pathsJonas Schievink2021-01-251-9/+28
|
* Intern block locations and handle them in ModuleIdJonas Schievink2021-01-251-2/+2
|
* Create all `ModuleId`s through a `DefMap` methodJonas Schievink2021-01-251-18/+6
| | | | | `ModuleId` needs to be able to represent blocks, and only the associated `DefMap` will know how to construct that `ModuleId`
* Merge #7391bors[bot]2021-01-231-0/+8
|\ | | | | | | | | | | | | | | 7391: Fix error when using "extern crate self as" r=kazatsuyu a=kazatsuyu Fix #6957 Co-authored-by: kazatsuyu <[email protected]>
| * Add mark::check! and mark::hit!kazatsuyu2021-01-221-0/+1
| |
| * cargo fmtkazatsuyu2021-01-221-2/+3
| |
| * Fix error when using "extern crate self as"kazatsuyu2021-01-221-0/+6
| |
* | Obtain `ModuleId`'s `DefMap` through a methodJonas Schievink2021-01-221-2/+2
|/
* Fall back to parent DefMaps when resolving pathsJonas Schievink2021-01-211-0/+37
|
* Rename `CrateDefMap` to `DefMap`Jonas Schievink2021-01-181-2/+2
|
* Rename ra_hir_def -> hir_defAleksey Kladov2020-08-131-0/+330