]> git.lizzy.rs Git - rust.git/commit
Remove DepKind::CrateMetadata and pre-allocation of DepNodes
authorTyson Nottingham <tgnottingham@gmail.com>
Fri, 1 Jan 2021 22:06:17 +0000 (14:06 -0800)
committerTyson Nottingham <tgnottingham@gmail.com>
Tue, 12 Jan 2021 19:22:57 +0000 (11:22 -0800)
commit62139ffad4a77d45b9651b04b440c89c5b9c1b5c
treed0fc8cd89acc34f082884682709cc85be11784fb
parent497c9a256b1c2961e91565ccc6e0dd3a87a031ed
Remove DepKind::CrateMetadata and pre-allocation of DepNodes

Remove much of the special-case handling around crate metadata
dependency tracking by replacing `DepKind::CrateMetadata` and the
pre-allocation of corresponding `DepNodes` with on-demand invocation
of the `crate_hash` query.
compiler/rustc_incremental/src/lib.rs
compiler/rustc_incremental/src/persist/load.rs
compiler/rustc_incremental/src/persist/mod.rs
compiler/rustc_interface/src/passes.rs
compiler/rustc_metadata/src/rmeta/decoder.rs
compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs
compiler/rustc_middle/src/dep_graph/dep_node.rs
compiler/rustc_middle/src/dep_graph/mod.rs
compiler/rustc_middle/src/ty/context.rs