Use FxIndexMap instead of otherwise unused StableMap for WEAK_ITEMS_REFS.
This commit is contained in:
parent
748cb1f01d
commit
b8138db0ff
5 changed files with 11 additions and 11 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue