]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: derive(Debug): Use builder's ptrify function instead
authorArthur Cohen <arthur.cohen@embecosm.com>
Fri, 21 Feb 2025 14:54:09 +0000 (14:54 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 24 Mar 2025 12:07:10 +0000 (13:07 +0100)
gcc/rust/ChangeLog:

* expand/rust-derive-debug.cc (ptrify): Remove function.

gcc/rust/expand/rust-derive-debug.cc

index f37547459a0ea1df6429103693d6187c74d78fee..7ad3908483aef4100e07ff1ad757a2538ee9f9e7 100644 (file)
@@ -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 ()
 {