diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-04-07 13:52:04 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-04-19 08:48:33 +0000 |
commit | 4d1bb3df100323c664875a09ecce830b179d752f (patch) | |
tree | 22eb9e19c0e6aaa572cdcb6c0c0b9c9c07f08191 /gcc | |
parent | da0553bcbfab23c4cf908092ea5cc29c454e157b (diff) | |
download | gcc-4d1bb3df100323c664875a09ecce830b179d752f.zip gcc-4d1bb3df100323c664875a09ecce830b179d752f.tar.gz gcc-4d1bb3df100323c664875a09ecce830b179d752f.tar.bz2 |
libproc_macro: Drop function shall take a mutable
The rust API requires a mut reference, hence having a mutable pointer
seems to match better. Furthermore the implementation is now modifying
the struct in order to set the size to 0 instead of simply freeing the
data, this will allow us to easily identify mistaken manual call to this
function.
ChangeLog:
* libgrust/libproc_macro/rust/bridge/literal.rs: Make the
pointer mutable.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions