]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir/src/weak_lang_items.rs
Auto merge of #99059 - Amanieu:fix-96797, r=Mark-Simulacrum
[rust.git] / compiler / rustc_hir / src / weak_lang_items.rs
index dad22725511edcd547fcbf9fd79d10aca3929f73..b6a85c0472e02e43f851927a8b66053128d487ef 100644 (file)
@@ -4,7 +4,7 @@
 use crate::{lang_items, LangItem, LanguageItems};
 
 use rustc_ast as ast;
-use rustc_data_structures::stable_map::StableMap;
+use rustc_data_structures::fx::FxIndexMap;
 use rustc_span::symbol::{sym, Symbol};
 
 use std::sync::LazyLock;
@@ -12,8 +12,8 @@
 macro_rules! weak_lang_items {
     ($($name:ident, $item:ident, $sym:ident;)*) => (
 
-pub static WEAK_ITEMS_REFS: LazyLock<StableMap<Symbol, LangItem>> = LazyLock::new(|| {
-    let mut map = StableMap::default();
+pub static WEAK_ITEMS_REFS: LazyLock<FxIndexMap<Symbol, LangItem>> = LazyLock::new(|| {
+    let mut map = FxIndexMap::default();
     $(map.insert(sym::$name, LangItem::$item);)*
     map
 });