Display span in Assert panic message
This commit is contained in:
parent
81fa33da3d
commit
718a5a2e3f
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ fn codegen_fn_content<'a, 'tcx: 'a>(fx: &mut FunctionCx<'a, 'tcx, impl Backend>)
|
||||||
} else {
|
} else {
|
||||||
fx.bcx.ins().brz(cond, target, &[]);
|
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 {
|
TerminatorKind::SwitchInt {
|
||||||
|
|
Loading…
Reference in a new issue