diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2016-07-31 22:17:29 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2016-07-31 22:17:29 +0300 |
| commit | d1f341dd91f7660bd64acfbd63f4513f9a327217 (patch) | |
| tree | 3e124c882e35beb78286dc7c6a6420377a1950bc | |
| parent | 1895bf760d4f7d11510619fd7ee794aa5afc4803 (diff) | |
| download | rust-d1f341dd91f7660bd64acfbd63f4513f9a327217.tar.gz rust-d1f341dd91f7660bd64acfbd63f4513f9a327217.zip | |
rustc_trans: apply the debug location for the MIR Assert panic call.
| -rw-r--r-- | src/librustc_trans/mir/block.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_trans/mir/block.rs b/src/librustc_trans/mir/block.rs index 7a7f1901736..2d1769b8637 100644 --- a/src/librustc_trans/mir/block.rs +++ b/src/librustc_trans/mir/block.rs @@ -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); |
