if items.eh_personality().is_none() {
items.missing.push(lang_items::EhPersonalityLangItem);
}
- if tcx.sess.target.target.options.custom_unwind_resume & items.eh_unwind_resume().is_none() {
- items.missing.push(lang_items::EhUnwindResumeLangItem);
- }
{
let mut cx = Context { tcx, items };
for (name, &item) in WEAK_ITEMS_REFS.iter() {
if missing.contains(&item) && !whitelisted(tcx, item) && items.require(item).is_err() {
if item == lang_items::PanicImplLangItem {
- tcx.sess.err(&format!("`#[panic_handler]` function required, but not found"));
+ tcx.sess.err("`#[panic_handler]` function required, but not found");
} else if item == lang_items::OomLangItem {
- tcx.sess.err(&format!("`#[alloc_error_handler]` function required, but not found"));
+ tcx.sess.err("`#[alloc_error_handler]` function required, but not found");
} else {
tcx.sess.err(&format!("language item required, but not found: `{}`", name));
}