about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-06-13 10:40:16 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-06-13 10:40:16 +0000
commitc870c67bb26ce433f6d56f46cc51cfc2adc7d869 (patch)
tree97a24f7e5cbf1bc6f2e3f714d02b215cbf489e33
parent436bed8b7f775355d3fbd3eb722414a7aae67501 (diff)
parentf8cde5884d94617044c8c40d24f9fe6f355fd73f (diff)
downloadrust-c870c67bb26ce433f6d56f46cc51cfc2adc7d869.tar.gz
rust-c870c67bb26ce433f6d56f46cc51cfc2adc7d869.zip
Sync from rust df77afbcaf3365a32066a8ca4a00ae6fc9a69647
-rw-r--r--src/driver/aot.rs4
-rw-r--r--src/lib.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/driver/aot.rs b/src/driver/aot.rs
index aad9a9647f8..d143bcc96ef 100644
--- a/src/driver/aot.rs
+++ b/src/driver/aot.rs
@@ -54,8 +54,8 @@ impl OngoingCodegen {
         self,
         sess: &Session,
         backend_config: &BackendConfig,
-    ) -> (CodegenResults, FxHashMap<WorkProductId, WorkProduct>) {
-        let mut work_products = FxHashMap::default();
+    ) -> (CodegenResults, FxIndexMap<WorkProductId, WorkProduct>) {
+        let mut work_products = FxIndexMap::default();
         let mut modules = vec![];
 
         for module_codegen in self.modules {
diff --git a/src/lib.rs b/src/lib.rs
index 5ff784f3dd7..0de2dccda71 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -88,7 +88,7 @@ mod prelude {
     };
     pub(crate) use rustc_target::abi::{Abi, FieldIdx, Scalar, Size, VariantIdx, FIRST_VARIANT};
 
-    pub(crate) use rustc_data_structures::fx::FxHashMap;
+    pub(crate) use rustc_data_structures::fx::{FxHashMap, FxIndexMap};
 
     pub(crate) use rustc_index::Idx;
 
@@ -223,7 +223,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
         ongoing_codegen: Box<dyn Any>,
         sess: &Session,
         _outputs: &OutputFilenames,
-    ) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorGuaranteed> {
+    ) -> Result<(CodegenResults, FxIndexMap<WorkProductId, WorkProduct>), ErrorGuaranteed> {
         Ok(ongoing_codegen
             .downcast::<driver::aot::OngoingCodegen>()
             .unwrap()