aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-02-21 12:18:41 +0100
committerPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-03-30 13:52:32 +0200
commitacf5db71524e56aef7a0071be96299b976760454 (patch)
tree559ad736cdac453f0d92d9833665d07f235f4abd /gcc/rust/ast/rust-ast.h
parent0f1723455cea2d51630be79aceddcfc3ed8a4771 (diff)
downloadgcc-acf5db71524e56aef7a0071be96299b976760454.zip
gcc-acf5db71524e56aef7a0071be96299b976760454.tar.gz
gcc-acf5db71524e56aef7a0071be96299b976760454.tar.bz2
libproc_macro: Custom Clone for Ident
The internal Ident structure contains a foreign allocated byte array, it's Clone trait cannot be derived automatically as the array would not be cloned correctly, only the pointer. This would lead to use after-free. ChangeLog: * librust/proc_macro/rust/bridge/ident.rs: Implement Clone for Ident. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
0 files changed, 0 insertions, 0 deletions