aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-07-26 15:26:55 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-07-27 09:03:08 +0000
commit3e98458f7eabc9f703743e152547a467f84a7040 (patch)
tree0e05c1e06968e68f47bc036f33d3ef982d823b0b /gcc/rust/resolve/rust-ast-resolve-expr.cc
parentccac7ed46c2e81434714d74a86d58d2e5e1df7c8 (diff)
downloadgcc-3e98458f7eabc9f703743e152547a467f84a7040.zip
gcc-3e98458f7eabc9f703743e152547a467f84a7040.tar.gz
gcc-3e98458f7eabc9f703743e152547a467f84a7040.tar.bz2
proc_macro: Increase FFIString usage
Two remaining structures in the rust interface were still using raw string pointer and length couples to communicate with the C++ library throught extern C functions. Using FFIString instead allow us to reduce the scope of potential errors using those raw pointers. As FFIString encapsulate raw pointer operations there will be only one locaiton to look after. ChangeLog: * libgrust/libproc_macro/rust/bridge/literal.rs: Change extern C function argument from raw string pointer and length to FFIString. * libgrust/libproc_macro/rust/bridge/token_stream.rs: Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions