From 6a02fdab62434fae56fbdceeb40e238d2698d621 Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Fri, 21 Feb 2025 14:54:09 +0000 Subject: derive(Debug): Use builder's ptrify function instead gcc/rust/ChangeLog: * expand/rust-derive-debug.cc (ptrify): Remove function. --- gcc/rust/expand/rust-derive-debug.cc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'gcc') diff --git a/gcc/rust/expand/rust-derive-debug.cc b/gcc/rust/expand/rust-derive-debug.cc index f375474..7ad3908 100644 --- a/gcc/rust/expand/rust-derive-debug.cc +++ b/gcc/rust/expand/rust-derive-debug.cc @@ -38,14 +38,6 @@ DeriveDebug::go (Item &item) return std::move (expanded); } -/* Pointer-ify something */ -template -static std::unique_ptr -ptrify (T value) -{ - return std::unique_ptr (new T (value)); -} - std::unique_ptr DeriveDebug::stub_debug_fn () { -- cgit v1.1