diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2022-07-08 17:45:55 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2022-07-20 12:40:51 +0200 |
| commit | b8138db0ffbb7d29e5af2482c6eb0ef4e117d4a3 (patch) | |
| tree | 98c0fd494cf0a9fa07044b8fa1b68adf379d4ac0 /compiler/rustc_passes/src | |
| parent | 748cb1f01d623f2afd0d8b84fda7e2c8f7a11c7b (diff) | |
| download | rust-b8138db0ffbb7d29e5af2482c6eb0ef4e117d4a3.tar.gz rust-b8138db0ffbb7d29e5af2482c6eb0ef4e117d4a3.zip | |
Use FxIndexMap instead of otherwise unused StableMap for WEAK_ITEMS_REFS.
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/weak_lang_items.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/weak_lang_items.rs b/compiler/rustc_passes/src/weak_lang_items.rs index 3291be05807..c48b4ecf87a 100644 --- a/compiler/rustc_passes/src/weak_lang_items.rs +++ b/compiler/rustc_passes/src/weak_lang_items.rs @@ -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"); |
