mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Rollup merge of #59093 - Zoxc:no-prealloc, r=michaelwoerister
Remove precompute_in_scope_traits_hashes r? @michaelwoerister
This commit is contained in:
commit
f95bbf3da3
@ -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,
|
pub fn serialize_query_result_cache<E>(self,
|
||||||
encoder: &mut E)
|
encoder: &mut E)
|
||||||
-> Result<(), E::Error>
|
-> Result<(), E::Error>
|
||||||
|
@ -21,7 +21,6 @@ pub fn dep_graph_tcx_init<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tcx.allocate_metadata_dep_nodes();
|
tcx.allocate_metadata_dep_nodes();
|
||||||
tcx.precompute_in_scope_traits_hashes();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type WorkProductMap = FxHashMap<WorkProductId, WorkProduct>;
|
type WorkProductMap = FxHashMap<WorkProductId, WorkProduct>;
|
||||||
|
Loading…
Reference in New Issue
Block a user