aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/traits.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move constants to new IDAleksey Kladov2019-11-201-37/+8
| | | | This allows us to get rid of trait item index
* Don't duplicate ContainerId typeAleksey Kladov2019-11-201-4/+4
|
* Switch type aliases to new sourcesAleksey Kladov2019-11-201-2/+8
|
* Next gen IDs for functionsAleksey Kladov2019-11-201-5/+20
| | | | | | | | | | | | | | | | | The current system with AstIds has two primaraly drawbacks: * It is possible to manufacture IDs out of thin air. For example, it's possible to create IDs for items which are not considered in CrateDefMap due to cfg. Or it is possible to mixup structs and unions, because they share ID space. * Getting the ID of a parent requires a secondary index. Instead, the plan is to pursue the more traditional approach, where each items stores the id of the parent declaration. This makes `FromSource` more awkward, but also more correct: now, to get from an AST to HIR, we first do this recursively for the parent item, and the just search the children of the parent for the matching def
* Move traits to hir_defAleksey Kladov2019-11-201-0/+67