rust/crates
Aleksey Kladov cebeedc66f Next gen IDs for functions
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
2019-11-20 16:22:58 +03:00
..
ra_arena Disable doctests 2019-11-17 18:35:05 +03:00
ra_assists Rename Source::ast -> Source::value 2019-11-20 09:42:30 +03:00
ra_batch Disable doctests 2019-11-17 18:35:05 +03:00
ra_cfg Disable doctests 2019-11-17 18:35:05 +03:00
ra_cli Rename Source::ast -> Source::value 2019-11-20 09:42:30 +03:00
ra_db Disable doctests 2019-11-17 18:35:05 +03:00
ra_fmt Disable doctests 2019-11-17 18:35:05 +03:00
ra_hir Next gen IDs for functions 2019-11-20 16:22:58 +03:00
ra_hir_def Next gen IDs for functions 2019-11-20 16:22:58 +03:00
ra_hir_expand Rename with_ast -> with_value 2019-11-20 13:09:21 +03:00
ra_ide_api Rename with_ast -> with_value 2019-11-20 13:09:21 +03:00
ra_lsp_server Merge pull request #2297 from kiljacken/master 2019-11-20 08:38:25 +03:00
ra_mbe Collapse TokenMap and RevTokenMap 2019-11-18 16:08:41 +03:00
ra_parser Disable doctests 2019-11-17 18:35:05 +03:00
ra_prof Disable doctests 2019-11-17 18:35:05 +03:00
ra_project_model Disable doctests 2019-11-17 18:35:05 +03:00
ra_syntax Next gen IDs for functions 2019-11-20 16:22:58 +03:00
ra_text_edit Disable doctests 2019-11-17 18:35:05 +03:00
ra_tt Disable doctests 2019-11-17 18:35:05 +03:00
ra_vfs_glob Disable doctests 2019-11-17 18:35:05 +03:00
test_utils Disable doctests 2019-11-17 18:35:05 +03:00