Skip to content

Commit f8cde58

Browse files
committed
Updated cranelift codegen to reflect modified trait signature
1 parent 4ecd45a commit f8cde58

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/driver/aot.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ impl OngoingCodegen {
5454
self,
5555
sess: &Session,
5656
backend_config: &BackendConfig,
57-
) -> (CodegenResults, FxHashMap<WorkProductId, WorkProduct>) {
58-
let mut work_products = FxHashMap::default();
57+
) -> (CodegenResults, FxIndexMap<WorkProductId, WorkProduct>) {
58+
let mut work_products = FxIndexMap::default();
5959
let mut modules = vec![];
6060

6161
for module_codegen in self.modules {

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ mod prelude {
8888
};
8989
pub(crate) use rustc_target::abi::{Abi, FieldIdx, Scalar, Size, VariantIdx, FIRST_VARIANT};
9090

91-
pub(crate) use rustc_data_structures::fx::FxHashMap;
91+
pub(crate) use rustc_data_structures::fx::{FxHashMap, FxIndexMap};
9292

9393
pub(crate) use rustc_index::Idx;
9494

@@ -223,7 +223,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
223223
ongoing_codegen: Box<dyn Any>,
224224
sess: &Session,
225225
_outputs: &OutputFilenames,
226-
) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorGuaranteed> {
226+
) -> Result<(CodegenResults, FxIndexMap<WorkProductId, WorkProduct>), ErrorGuaranteed> {
227227
Ok(ongoing_codegen
228228
.downcast::<driver::aot::OngoingCodegen>()
229229
.unwrap()

0 commit comments

Comments
 (0)