diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-12-14 03:54:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-14 03:54:35 +0100 |
| commit | 87bbbcd1bbdd348d2068dbf5683eb7fbfb908079 (patch) | |
| tree | a442a5321679f806e0bf4fc70b29f17e809df35e /compiler/rustc_middle | |
| parent | 34e607594b41942903cce31050d1b6b2b8ca948c (diff) | |
| parent | 3198496385cd8fdd89818e0bf14bacd8db6292d9 (diff) | |
| download | rust-87bbbcd1bbdd348d2068dbf5683eb7fbfb908079.tar.gz rust-87bbbcd1bbdd348d2068dbf5683eb7fbfb908079.zip | |
Rollup merge of #134251 - bjorn3:various_cleanups2, r=oli-obk
A bunch of cleanups (part 2) Just like https://github.com/rust-lang/rust/pull/133567 these were all found while looking at the respective code, but are not blocking any other changes I want to make in the short term.
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/middle/dependency_format.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/middle/dependency_format.rs b/compiler/rustc_middle/src/middle/dependency_format.rs index a3aff9a1101..e3b40b64157 100644 --- a/compiler/rustc_middle/src/middle/dependency_format.rs +++ b/compiler/rustc_middle/src/middle/dependency_format.rs @@ -7,6 +7,7 @@ // FIXME: move this file to rustc_metadata::dependency_format, but // this will introduce circular dependency between rustc_metadata and rustc_middle +use rustc_data_structures::fx::FxIndexMap; use rustc_macros::{Decodable, Encodable, HashStable}; use rustc_session::config::CrateType; @@ -18,7 +19,7 @@ pub type DependencyList = Vec<Linkage>; /// A mapping of all required dependencies for a particular flavor of output. /// /// This is local to the tcx, and is generally relevant to one session. -pub type Dependencies = Vec<(CrateType, DependencyList)>; +pub type Dependencies = FxIndexMap<CrateType, DependencyList>; #[derive(Copy, Clone, PartialEq, Debug, HashStable, Encodable, Decodable)] pub enum Linkage { |
