]> gcc.gnu.org Git - gcc.git/commit
gccrs: libproc_macro: Change rust literal internals
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 10 May 2023 09:34:45 +0000 (11:34 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:37:19 +0000 (18:37 +0100)
commit5605333c907883486f821088a1ceb22d2bb24aa3
treee0a810e7dc38c92682ca3421d865736d20148fcc
parent842a8307ca36858529de75ab0532749f2140f900
gccrs: libproc_macro: Change rust literal internals

Rust interface literal internals were taking a type and storing that
type. This lead to multiple problems such as various conversion from
string to int/float/other type as well as dead end on undetermined types
(type checker runs at a later stage).

libgrust/ChangeLog:

* libproc_macro/rust/bridge.rs: Add ffistring module.
* libproc_macro/rust/bridge/literal.rs: Rework type
internals.
* libproc_macro/rust/bridge/ffistring.rs: New file.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
libgrust/libproc_macro/rust/bridge.rs
libgrust/libproc_macro/rust/bridge/ffistring.rs [new file with mode: 0644]
libgrust/libproc_macro/rust/bridge/literal.rs
This page took 0.056131 seconds and 5 git commands to generate.