diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2023-12-18 21:02:21 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2023-12-18 21:03:32 +0100 |
| commit | 115885ba7e7f88ecc076497c0ac2b0ca304b16b5 (patch) | |
| tree | a209d8d132d075aace6cc94f1c42223c62589aa6 /compiler/rustc_resolve/src | |
| parent | 2a7634047a978207aa1c527ed484ae4ada9bba96 (diff) | |
| download | rust-115885ba7e7f88ecc076497c0ac2b0ca304b16b5.tar.gz rust-115885ba7e7f88ecc076497c0ac2b0ca304b16b5.zip | |
Replace some instances of FxHashMap/FxHashSet with stable alternatives (mostly in rustc_hir and rustc_ast_lowering)
Part of https://github.com/rust-lang/compiler-team/issues/533
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/lib.rs b/compiler/rustc_resolve/src/lib.rs index ad637472b47..670fdcfb0d2 100644 --- a/compiler/rustc_resolve/src/lib.rs +++ b/compiler/rustc_resolve/src/lib.rs @@ -1084,7 +1084,7 @@ pub struct Resolver<'a, 'tcx> { next_node_id: NodeId, - node_id_to_def_id: FxHashMap<ast::NodeId, LocalDefId>, + node_id_to_def_id: NodeMap<LocalDefId>, def_id_to_node_id: IndexVec<LocalDefId, ast::NodeId>, /// Indices of unnamed struct or variant fields with unresolved attributes. @@ -1296,7 +1296,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> { let mut def_id_to_node_id = IndexVec::default(); assert_eq!(def_id_to_node_id.push(CRATE_NODE_ID), CRATE_DEF_ID); - let mut node_id_to_def_id = FxHashMap::default(); + let mut node_id_to_def_id = NodeMap::default(); node_id_to_def_id.insert(CRATE_NODE_ID, CRATE_DEF_ID); let mut invocation_parents = FxHashMap::default(); |
