Skip to content

Commit a47a6ea

Browse files
committed
Auto merge of rust-lang#39411 - tamird:match-arm-statics-ICE, r=alexcrichton
statics in match arm: compile with -g Resubmission of rust-lang#29700. r? @alexcrichton
2 parents 1a2428f + 83fe532 commit a47a6ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_trans/debuginfo/utils.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ pub fn bytes_to_bits(bytes: u64) -> u64 {
6060
#[inline]
6161
pub fn debug_context<'a, 'tcx>(cx: &'a CrateContext<'a, 'tcx>)
6262
-> &'a CrateDebugContext<'tcx> {
63-
let debug_context: &'a CrateDebugContext<'tcx> = cx.dbg_cx().as_ref().unwrap();
64-
debug_context
63+
cx.dbg_cx().as_ref().unwrap()
6564
}
6665

6766
#[inline]

src/test/run-pass/match-arm-statics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// compile-flags: -g
1112

1213
#[derive(PartialEq, Eq)]
1314
struct NewBool(bool);

0 commit comments

Comments
 (0)