1
Fork 0

Remove a low-value local variable.

This commit is contained in:
Nicholas Nethercote 2024-09-18 13:41:59 +10:00
commit 3b071692cb

View file

@ -13,8 +13,7 @@ pub(crate) fn mangled_name_of_instance<'a, 'tcx>(
cx: &CodegenCx<'a, 'tcx>, cx: &CodegenCx<'a, 'tcx>,
instance: Instance<'tcx>, instance: Instance<'tcx>,
) -> ty::SymbolName<'tcx> { ) -> ty::SymbolName<'tcx> {
let tcx = cx.tcx; cx.tcx.symbol_name(instance)
tcx.symbol_name(instance)
} }
pub(crate) fn item_namespace<'ll>(cx: &CodegenCx<'ll, '_>, def_id: DefId) -> &'ll DIScope { pub(crate) fn item_namespace<'ll>(cx: &CodegenCx<'ll, '_>, def_id: DefId) -> &'ll DIScope {