about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-01-15 21:13:35 +0000
committerbors <bors@rust-lang.org>2021-01-15 21:13:35 +0000
commitfcbd305ee93f49f19313b9bbeaa25ba8837030d9 (patch)
treefa9333b641b83e9cf23929c2b37f09b50b78a5f2 /compiler/rustc_interface/src
parentbc39d4d9c514e5fdb40a5782e6ca08924f979c35 (diff)
parent8e7cbc28a65df0e979b6052db7f4f8d26fecd9d9 (diff)
downloadrust-fcbd305ee93f49f19313b9bbeaa25ba8837030d9.tar.gz
rust-fcbd305ee93f49f19313b9bbeaa25ba8837030d9.zip
Auto merge of #80602 - tgnottingham:cratemetadata_you_aint_special, r=michaelwoerister
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')
-rw-r--r--compiler/rustc_interface/src/passes.rs6
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)
 }