Skip to content

Commit 3ea31a9

Browse files
authored
Rollup merge of rust-lang#59093 - Zoxc:no-prealloc, r=michaelwoerister
Remove precompute_in_scope_traits_hashes r? @michaelwoerister
2 parents ac8f33b + 01e2e1f commit 3ea31a9

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/librustc/ty/context.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1443,16 +1443,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
14431443
}
14441444
}
14451445

1446-
// This method exercises the `in_scope_traits_map` query for all possible
1447-
// values so that we have their fingerprints available in the DepGraph.
1448-
// This is only required as long as we still use the old dependency tracking
1449-
// which needs to have the fingerprints of all input nodes beforehand.
1450-
pub fn precompute_in_scope_traits_hashes(self) {
1451-
for &def_index in self.trait_map.keys() {
1452-
self.in_scope_traits_map(def_index);
1453-
}
1454-
}
1455-
14561446
pub fn serialize_query_result_cache<E>(self,
14571447
encoder: &mut E)
14581448
-> Result<(), E::Error>

src/librustc_incremental/persist/load.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub fn dep_graph_tcx_init<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
2121
}
2222

2323
tcx.allocate_metadata_dep_nodes();
24-
tcx.precompute_in_scope_traits_hashes();
2524
}
2625

2726
type WorkProductMap = FxHashMap<WorkProductId, WorkProduct>;

0 commit comments

Comments
 (0)