Auto merge of #39411 - tamird:match-arm-statics-ICE, r=alexcrichton

statics in match arm: compile with -g

Resubmission of #29700.

r? @alexcrichton
This commit is contained in:
bors 2017-02-02 18:20:37 +00:00
commit a47a6ea771
2 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,7 @@ pub fn bytes_to_bits(bytes: u64) -> u64 {
#[inline] #[inline]
pub fn debug_context<'a, 'tcx>(cx: &'a CrateContext<'a, 'tcx>) pub fn debug_context<'a, 'tcx>(cx: &'a CrateContext<'a, 'tcx>)
-> &'a CrateDebugContext<'tcx> { -> &'a CrateDebugContext<'tcx> {
let debug_context: &'a CrateDebugContext<'tcx> = cx.dbg_cx().as_ref().unwrap(); cx.dbg_cx().as_ref().unwrap()
debug_context
} }
#[inline] #[inline]

View File

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
// compile-flags: -g
#[derive(PartialEq, Eq)] #[derive(PartialEq, Eq)]
struct NewBool(bool); struct NewBool(bool);