From d1f341dd91f7660bd64acfbd63f4513f9a327217 Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Sun, 31 Jul 2016 22:17:29 +0300 Subject: [PATCH] rustc_trans: apply the debug location for the MIR Assert panic call. --- src/librustc_trans/mir/block.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_trans/mir/block.rs b/src/librustc_trans/mir/block.rs index 7a7f1901736c5..2d1769b8637b3 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);