Skip to content

Commit fdd211a

Browse files
committed
Changed args
Appeased almighty tidy Changed args
1 parent c53c12c commit fdd211a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,12 @@ macro_rules! return_if_metadata_created_in_meantime {
375375
}
376376

377377
fn check_type_name_cache(cx: &CodegenCx<'ll, 'tcx>, ty: Ty<'tcx>, qualified: bool) -> String {
378-
compute_debuginfo_type_name(cx.tcx, ty, qualified, &debug_context(cx).type_name_cache)
378+
compute_debuginfo_type_name(
379+
cx.tcx,
380+
ty,
381+
qualified,
382+
&mut debug_context(cx).type_name_cache.borrow_mut(),
383+
)
379384
}
380385

381386
fn fixed_vec_metadata(

compiler/rustc_codegen_llvm/src/debuginfo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
442442
cx.tcx,
443443
cx.tcx.normalize_erasing_regions(ty::ParamEnv::reveal_all(), substs),
444444
name_to_append_suffix_to,
445-
&debug_context(cx).type_name_cache,
445+
&mut debug_context(cx).type_name_cache.borrow_mut(),
446446
);
447447

448448
if substs.types().next().is_none() {

0 commit comments

Comments
 (0)