Skip to content

Commit 3b07169

Browse files
committed
Remove a low-value local variable.
1 parent ccd6c61 commit 3b07169

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ pub(crate) fn mangled_name_of_instance<'a, 'tcx>(
1313
cx: &CodegenCx<'a, 'tcx>,
1414
instance: Instance<'tcx>,
1515
) -> ty::SymbolName<'tcx> {
16-
let tcx = cx.tcx;
17-
tcx.symbol_name(instance)
16+
cx.tcx.symbol_name(instance)
1817
}
1918

2019
pub(crate) fn item_namespace<'ll>(cx: &CodegenCx<'ll, '_>, def_id: DefId) -> &'ll DIScope {

0 commit comments

Comments
 (0)