]> git.lizzy.rs Git - rust.git/commit
def_collector: Simplify tracking of macro invocation parents
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Tue, 2 Jul 2019 10:47:28 +0000 (13:47 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Wed, 10 Jul 2019 21:12:08 +0000 (00:12 +0300)
commite2729460661c9bafb2e1862ddd0a63f75ae553e7
treee4a32afa10949c695be7cd7b731cc1204f0a8fcc
parentaff9738462e8959c0a3eef57124b08d5f811cdec
def_collector: Simplify tracking of macro invocation parents

Avoid the tricky scheme with callbacks and keep the invocation parent data where it logically belongs - in `Definitions`.

This also allows to create `InvocationData` entries in resolve when the data is actually ready, and remove cells and "uninitialized" variants from it.
src/librustc/hir/map/def_collector.rs
src/librustc/hir/map/definitions.rs
src/librustc/hir/map/mod.rs
src/librustc_resolve/build_reduced_graph.rs
src/librustc_resolve/lib.rs
src/librustc_resolve/macros.rs