Skip to content

Commit

Permalink
adjust to new error value
Browse files Browse the repository at this point in the history
  • Loading branch information
CleanCut committed Aug 25, 2022
1 parent d9bbac0 commit 8c93170
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8c93170

Please sign in to comment.