diff options
| author | bors <bors@rust-lang.org> | 2017-02-02 18:20:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-02-02 18:20:37 +0000 |
| commit | a47a6ea771ca4426b6bba29219bdc7d2bceec3d5 (patch) | |
| tree | e4e365091a766662270af0ffbdbee91aa234d244 /src | |
| parent | 1a2428fc880ba0486f12dd0b59ef6921eb74b9a4 (diff) | |
| parent | 83fe5325d23fc77ff326db168c854cbc28e19258 (diff) | |
| download | rust-a47a6ea771ca4426b6bba29219bdc7d2bceec3d5.tar.gz rust-a47a6ea771ca4426b6bba29219bdc7d2bceec3d5.zip | |
Auto merge of #39411 - tamird:match-arm-statics-ICE, r=alexcrichton
statics in match arm: compile with -g Resubmission of #29700. r? @alexcrichton
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_trans/debuginfo/utils.rs | 3 | ||||
| -rw-r--r-- | src/test/run-pass/match-arm-statics.rs | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_trans/debuginfo/utils.rs b/src/librustc_trans/debuginfo/utils.rs index 3ee2497009f..8d634c0e292 100644 --- a/src/librustc_trans/debuginfo/utils.rs +++ b/src/librustc_trans/debuginfo/utils.rs @@ -60,8 +60,7 @@ pub fn bytes_to_bits(bytes: u64) -> u64 { #[inline] pub fn debug_context<'a, 'tcx>(cx: &'a CrateContext<'a, 'tcx>) -> &'a CrateDebugContext<'tcx> { - let debug_context: &'a CrateDebugContext<'tcx> = cx.dbg_cx().as_ref().unwrap(); - debug_context + cx.dbg_cx().as_ref().unwrap() } #[inline] diff --git a/src/test/run-pass/match-arm-statics.rs b/src/test/run-pass/match-arm-statics.rs index 9700ed24795..78a37f51837 100644 --- a/src/test/run-pass/match-arm-statics.rs +++ b/src/test/run-pass/match-arm-statics.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// compile-flags: -g #[derive(PartialEq, Eq)] struct NewBool(bool); |
