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:27:41 +0100
committerPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-03-30 13:52:32 +0200
commit77216f03f283f1f2e36319a68f6cf248e6d4acb3 (patch)
tree7858d54ee58300e6a33861c5d678c57386c62677 /gcc/rust/ast/rust-ast.h
parentda81fa1f087b70ab291c87170863eab8a8e1e8d3 (diff)
downloadgcc-77216f03f283f1f2e36319a68f6cf248e6d4acb3.zip
gcc-77216f03f283f1f2e36319a68f6cf248e6d4acb3.tar.gz
gcc-77216f03f283f1f2e36319a68f6cf248e6d4acb3.tar.bz2
libproc_macro: Custom Clone on TokenStream
Change for a custom implementation of the Clone trait since the TokenStream structure owns a foreign array which needs to be deeply cloned to prevent use after free in case the original TokenStream is dropped early. ChangeLog: * librust/proc_macro/rust/bridge/token_stream.rs: Implement custom Clone. 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