adjust to new error value
This commit is contained in:
parent
30c7506655
commit
6cdfdd02f6
1 changed files with 5 additions and 2 deletions
|
@ -925,8 +925,11 @@ pub(crate) fn codegen_panic_inner<'tcx>(
|
|||
args: &[Value],
|
||||
span: Span,
|
||||
) {
|
||||
let def_id =
|
||||
fx.tcx.lang_items().require(lang_item).unwrap_or_else(|s| fx.tcx.sess.span_fatal(span, &s));
|
||||
let def_id = fx
|
||||
.tcx
|
||||
.lang_items()
|
||||
.require(lang_item)
|
||||
.unwrap_or_else(|e| fx.tcx.sess.span_fatal(span, e.to_string()));
|
||||
|
||||
let instance = Instance::mono(fx.tcx, def_id).polymorphize(fx.tcx);
|
||||
let symbol_name = fx.tcx.symbol_name(instance).name;
|
||||
|
|
Loading…
Add table
Reference in a new issue