Skip to content

Commit

Permalink
rustc_trans: apply the debug location for the MIR Assert panic call.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Jul 31, 2016
1 parent 1895bf7 commit d1f341d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_trans/mir/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ impl<'bcx, 'tcx> MirContext<'bcx, 'tcx> {

// After this point, bcx is the block for the call to panic.
bcx = panic_block.build();
debug_loc.apply_to_bcx(&bcx);

// Get the location information.
let loc = bcx.sess().codemap().lookup_char_pos(span.lo);
Expand Down

0 comments on commit d1f341d

Please sign in to comment.