We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5e494b4 + 8c93170 commit d60e930Copy full SHA for d60e930
src/base.rs
@@ -925,8 +925,11 @@ pub(crate) fn codegen_panic_inner<'tcx>(
925
args: &[Value],
926
span: Span,
927
) {
928
- let def_id =
929
- fx.tcx.lang_items().require(lang_item).unwrap_or_else(|s| fx.tcx.sess.span_fatal(span, &s));
+ let def_id = fx
+ .tcx
930
+ .lang_items()
931
+ .require(lang_item)
932
+ .unwrap_or_else(|e| fx.tcx.sess.span_fatal(span, e.to_string()));
933
934
let instance = Instance::mono(fx.tcx, def_id).polymorphize(fx.tcx);
935
let symbol_name = fx.tcx.symbol_name(instance).name;
0 commit comments