https://gcc.gnu.org/g:0287030e7704094133feaba8e3675c52f2439ec2

commit r15-8822-g0287030e7704094133feaba8e3675c52f2439ec2
Author: Arthur Cohen <arthur.co...@embecosm.com>
Date:   Fri Feb 21 14:54:09 2025 +0000

    gccrs: derive(Debug): Use builder's ptrify function instead
    
    gcc/rust/ChangeLog:
    
            * expand/rust-derive-debug.cc (ptrify): Remove function.

Diff:
---
 gcc/rust/expand/rust-derive-debug.cc | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/gcc/rust/expand/rust-derive-debug.cc 
b/gcc/rust/expand/rust-derive-debug.cc
index f37547459a0e..7ad3908483ae 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 <typename T>
-static std::unique_ptr<T>
-ptrify (T value)
-{
-  return std::unique_ptr<T> (new T (value));
-}
-
 std::unique_ptr<AssociatedItem>
 DeriveDebug::stub_debug_fn ()
 {

Reply via email to