diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-18 13:41:59 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-19 20:10:42 +1000 |
| commit | 3b071692cb519aab3dd0956caf232cc9acec3802 (patch) | |
| tree | 49c1d87b7528caa7db1c7d3724d72045ea1197aa /compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs | |
| parent | ccd6c6102d6f2c7636a244d5e776283dab93c307 (diff) | |
| download | rust-3b071692cb519aab3dd0956caf232cc9acec3802.tar.gz rust-3b071692cb519aab3dd0956caf232cc9acec3802.zip | |
Remove a low-value local variable.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs b/compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs index 83d7a82dadc..9674b1eb848 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs @@ -13,8 +13,7 @@ pub(crate) fn mangled_name_of_instance<'a, 'tcx>( cx: &CodegenCx<'a, 'tcx>, instance: Instance<'tcx>, ) -> ty::SymbolName<'tcx> { - let tcx = cx.tcx; - tcx.symbol_name(instance) + cx.tcx.symbol_name(instance) } pub(crate) fn item_namespace<'ll>(cx: &CodegenCx<'ll, '_>, def_id: DefId) -> &'ll DIScope { |
