Skip to content

Commit 774e911

Browse files
committed
Use WorkProductMap instead of FxIndexMap
This is an UnordMap internally. Iteration order for the work product map should not matter aside from the place it is serialized where sorting by WorkProductId is sufficient.
1 parent d5db9be commit 774e911

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ use rustc_codegen_ssa::base::codegen_crate;
8989
use rustc_codegen_ssa::target_features::cfg_target_feature;
9090
use rustc_codegen_ssa::traits::{CodegenBackend, ExtraBackendMethods, WriteBackendMethods};
9191
use rustc_codegen_ssa::{CompiledModule, CompiledModules, CrateInfo, ModuleCodegen, TargetConfig};
92-
use rustc_data_structures::fx::FxIndexMap;
9392
use rustc_data_structures::profiling::SelfProfilerRef;
9493
use rustc_data_structures::sync::IntoDynSyncSend;
9594
use rustc_errors::{DiagCtxt, DiagCtxtHandle};
96-
use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
95+
use rustc_middle::dep_graph::{WorkProduct, WorkProductMap};
9796
use rustc_middle::ty::TyCtxt;
9897
use rustc_middle::util::Providers;
9998
use rustc_session::Session;
@@ -301,7 +300,7 @@ impl CodegenBackend for GccCodegenBackend {
301300
sess: &Session,
302301
_outputs: &OutputFilenames,
303302
crate_info: &CrateInfo,
304-
) -> (CompiledModules, FxIndexMap<WorkProductId, WorkProduct>) {
303+
) -> (CompiledModules, WorkProductMap) {
305304
ongoing_codegen
306305
.downcast::<rustc_codegen_ssa::back::write::OngoingCodegen<GccCodegenBackend>>()
307306
.expect("Expected GccCodegenBackend's OngoingCodegen, found Box<Any>")

0 commit comments

Comments
 (0)