diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-03-13 03:33:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-13 03:33:47 +0100 |
| commit | f95bbf3da398fa68370a832c9b0492399ff43241 (patch) | |
| tree | 19c4e8209a55157e4591a78284a0852d528a245b | |
| parent | c0dcfedd9f27f53dc0a85eff2df2034bf8282d9c (diff) | |
| parent | 01e2e1f88f4e1d82060aba4a01a6cae0343d3b89 (diff) | |
| download | rust-f95bbf3da398fa68370a832c9b0492399ff43241.tar.gz rust-f95bbf3da398fa68370a832c9b0492399ff43241.zip | |
Rollup merge of #59093 - Zoxc:no-prealloc, r=michaelwoerister
Remove precompute_in_scope_traits_hashes r? @michaelwoerister
| -rw-r--r-- | src/librustc/ty/context.rs | 10 | ||||
| -rw-r--r-- | src/librustc_incremental/persist/load.rs | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/src/librustc/ty/context.rs b/src/librustc/ty/context.rs index b705968ce8a..08b595c5eaa 100644 --- a/src/librustc/ty/context.rs +++ b/src/librustc/ty/context.rs @@ -1443,16 +1443,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> { } } - // This method exercises the `in_scope_traits_map` query for all possible - // values so that we have their fingerprints available in the DepGraph. - // This is only required as long as we still use the old dependency tracking - // which needs to have the fingerprints of all input nodes beforehand. - pub fn precompute_in_scope_traits_hashes(self) { - for &def_index in self.trait_map.keys() { - self.in_scope_traits_map(def_index); - } - } - pub fn serialize_query_result_cache<E>(self, encoder: &mut E) -> Result<(), E::Error> diff --git a/src/librustc_incremental/persist/load.rs b/src/librustc_incremental/persist/load.rs index 42950346929..255a3899d11 100644 --- a/src/librustc_incremental/persist/load.rs +++ b/src/librustc_incremental/persist/load.rs @@ -21,7 +21,6 @@ pub fn dep_graph_tcx_init<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) { } tcx.allocate_metadata_dep_nodes(); - tcx.precompute_in_scope_traits_hashes(); } type WorkProductMap = FxHashMap<WorkProductId, WorkProduct>; |
