diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2021-01-25 14:37:27 -0500 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2021-01-25 14:37:27 -0500 |
| commit | 4c5ede7c6a6b7ea37292d94aa79dc832d196f3fe (patch) | |
| tree | 00bfbeea5a9b23ca997b9aa1750400149a7d39aa /compiler/rustc_passes/src | |
| parent | 84864bfea9c00fb90a1fa6e3af1d8ad52ce8f9ec (diff) | |
| download | rust-4c5ede7c6a6b7ea37292d94aa79dc832d196f3fe.tar.gz rust-4c5ede7c6a6b7ea37292d94aa79dc832d196f3fe.zip | |
This should address issue 81294.
(No test added. The relevant test *is* ui/panic-handler/weak-lang-item.rs, and this change should make it less flaky.)
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 4273d600004..daff94cb6d3 100644 --- a/compiler/rustc_passes/src/weak_lang_items.rs +++ b/compiler/rustc_passes/src/weak_lang_items.rs @@ -59,7 +59,7 @@ fn verify<'tcx>(tcx: TyCtxt<'tcx>, items: &lang_items::LanguageItems) { } } - for (name, &item) in WEAK_ITEMS_REFS.iter() { + for (name, item) in WEAK_ITEMS_REFS.clone().into_sorted_vector().into_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"); |
