Skip to content

Commit d40974a

Browse files
committed
librustc: De-mut CrateDebugContext
1 parent e66bcf4 commit d40974a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc/middle/trans/debuginfo.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,8 +2241,9 @@ fn bytes_to_bits(bytes: uint) -> c_ulonglong {
22412241
}
22422242

22432243
#[inline]
2244-
fn debug_context<'a>(cx: &'a mut CrateContext) -> &'a mut CrateDebugContext {
2245-
cx.dbg_cx.get_mut_ref()
2244+
fn debug_context<'a>(cx: &'a mut CrateContext) -> &'a CrateDebugContext {
2245+
let debug_context: &'a CrateDebugContext = cx.dbg_cx.get_mut_ref();
2246+
debug_context
22462247
}
22472248

22482249
#[inline]

0 commit comments

Comments
 (0)