From fdd211a5d12344013061ba97da23a65cdca53c33 Mon Sep 17 00:00:00 2001 From: Timothy Maloney Date: Thu, 23 Sep 2021 10:49:32 -0700 Subject: [PATCH] Changed args Appeased almighty tidy Changed args --- compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs | 7 ++++++- compiler/rustc_codegen_llvm/src/debuginfo/mod.rs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs index 21b7beb659d94..cc0ddf3132dac 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs @@ -375,7 +375,12 @@ macro_rules! return_if_metadata_created_in_meantime { } fn check_type_name_cache(cx: &CodegenCx<'ll, 'tcx>, ty: Ty<'tcx>, qualified: bool) -> String { - compute_debuginfo_type_name(cx.tcx, ty, qualified, &debug_context(cx).type_name_cache) + compute_debuginfo_type_name( + cx.tcx, + ty, + qualified, + &mut debug_context(cx).type_name_cache.borrow_mut(), + ) } fn fixed_vec_metadata( diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs index 0e439a1390fcf..fd6977dfc7ca6 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs @@ -442,7 +442,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> { cx.tcx, cx.tcx.normalize_erasing_regions(ty::ParamEnv::reveal_all(), substs), name_to_append_suffix_to, - &debug_context(cx).type_name_cache, + &mut debug_context(cx).type_name_cache.borrow_mut(), ); if substs.types().next().is_none() {