adjust to new error value
This commit is contained in:
parent
d9bbac069b
commit
8c93170965
@ -925,8 +925,11 @@ pub(crate) fn codegen_panic_inner<'tcx>(
|
|||||||
args: &[Value],
|
args: &[Value],
|
||||||
span: Span,
|
span: Span,
|
||||||
) {
|
) {
|
||||||
let def_id =
|
let def_id = fx
|
||||||
fx.tcx.lang_items().require(lang_item).unwrap_or_else(|s| fx.tcx.sess.span_fatal(span, &s));
|
.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 instance = Instance::mono(fx.tcx, def_id).polymorphize(fx.tcx);
|
||||||
let symbol_name = fx.tcx.symbol_name(instance).name;
|
let symbol_name = fx.tcx.symbol_name(instance).name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user