diff options
| author | Tyson Nottingham <tgnottingham@gmail.com> | 2021-01-01 14:06:17 -0800 |
|---|---|---|
| committer | Tyson Nottingham <tgnottingham@gmail.com> | 2021-01-12 11:22:57 -0800 |
| commit | 62139ffad4a77d45b9651b04b440c89c5b9c1b5c (patch) | |
| tree | d0fc8cd89acc34f082884682709cc85be11784fb /compiler/rustc_interface/src/passes.rs | |
| parent | 497c9a256b1c2961e91565ccc6e0dd3a87a031ed (diff) | |
| download | rust-62139ffad4a77d45b9651b04b440c89c5b9c1b5c.tar.gz rust-62139ffad4a77d45b9651b04b440c89c5b9c1b5c.zip | |
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.
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index b67704119bc..ead2512d3b2 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -797,12 +797,6 @@ pub fn create_global_ctxt<'tcx>( }) }); - // Do some initialization of the DepGraph that can only be done with the tcx available. - let icx = ty::tls::ImplicitCtxt::new(&gcx); - ty::tls::enter_context(&icx, |_| { - icx.tcx.sess.time("dep_graph_tcx_init", || rustc_incremental::dep_graph_tcx_init(icx.tcx)); - }); - QueryContext(gcx) } |
