1
Fork 0

Use FxIndexMap instead of otherwise unused StableMap for WEAK_ITEMS_REFS.

This commit is contained in:
Michael Woerister 2022-07-08 17:45:55 +02:00
parent 748cb1f01d
commit b8138db0ff
5 changed files with 11 additions and 11 deletions

View file

@ -68,7 +68,7 @@ fn verify<'tcx>(tcx: TyCtxt<'tcx>, items: &lang_items::LanguageItems) {
}
}
for (name, item) in WEAK_ITEMS_REFS.clone().into_sorted_vector().into_iter() {
for (name, &item) in WEAK_ITEMS_REFS.iter() {
if missing.contains(&item) && required(tcx, item) && items.require(item).is_err() {
if item == LangItem::PanicImpl {
tcx.sess.err("`#[panic_handler]` function required, but not found");