Skip to content

Commit c870c67

Browse files
committed
Sync from rust df77afbcaf3365a32066a8ca4a00ae6fc9a69647
2 parents 436bed8 + f8cde58 commit c870c67

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/driver/aot.rs

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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)