From 718a5a2e3f8190d30c527692cf700fdd761d3712 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Thu, 25 Jul 2019 14:52:37 +0200 Subject: [PATCH] Display span in Assert panic message --- src/base.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base.rs b/src/base.rs index 6476de7652d..3d09b7cefc5 100644 --- a/src/base.rs +++ b/src/base.rs @@ -164,7 +164,7 @@ fn codegen_fn_content<'a, 'tcx: 'a>(fx: &mut FunctionCx<'a, 'tcx, impl Backend>) } else { fx.bcx.ins().brz(cond, target, &[]); }; - trap_panic(fx, format!("[panic] Assert {:?} failed at {:?}.", msg, bb_data.terminator().source_info.span)); + trap_panic(fx, format!("[panic] Assert {:?} at {:?} failed.", msg, bb_data.terminator().source_info.span)); } TerminatorKind::SwitchInt {