rustc_trans: apply the debug location for the MIR Assert panic call.
This commit is contained in:
parent
1895bf760d
commit
d1f341dd91
1 changed files with 1 additions and 0 deletions
|
@ -284,6 +284,7 @@ impl<'bcx, 'tcx> MirContext<'bcx, 'tcx> {
|
||||||
|
|
||||||
// After this point, bcx is the block for the call to panic.
|
// After this point, bcx is the block for the call to panic.
|
||||||
bcx = panic_block.build();
|
bcx = panic_block.build();
|
||||||
|
debug_loc.apply_to_bcx(&bcx);
|
||||||
|
|
||||||
// Get the location information.
|
// Get the location information.
|
||||||
let loc = bcx.sess().codemap().lookup_char_pos(span.lo);
|
let loc = bcx.sess().codemap().lookup_char_pos(span.lo);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue