]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: libproc_macro: Add drop function to Literal struct
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 12 Apr 2023 15:56:36 +0000 (17:56 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:34:11 +0000 (18:34 +0100)
commit2fa0bbc3ee6551e1cf67408ef2ce7673177303e7
tree5ed49596c59b5229ca829888d6c2a8b0ef38adf9
parentc9534eb5d93dcb8bb567def37d42b8dcabcea426
gccrs: libproc_macro: Add drop function to Literal struct

Add a drop function to clean internal fields of a Literal struct.

libgrust/ChangeLog:

* libproc_macro/literal.cc (Literal__drop): Replace
implementation by a call to Literal::drop.
(Literal::drop): Add drop implementation.
* libproc_macro/literal.h: Add function prototype.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
libgrust/libproc_macro/literal.cc
libgrust/libproc_macro/literal.h