diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-02-10 15:24:28 +0100 |
---|---|---|
committer | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-03-30 13:52:28 +0200 |
commit | b42b30da3e3c40542a5991fe5123bb3b50b73255 (patch) | |
tree | ead929f7ca1e2bfa6feeb31d64a6626cd4454ce0 | |
parent | 0b6b3851de3a8dab4e687069ed49617785c9690f (diff) | |
download | gcc-b42b30da3e3c40542a5991fe5123bb3b50b73255.zip gcc-b42b30da3e3c40542a5991fe5123bb3b50b73255.tar.gz gcc-b42b30da3e3c40542a5991fe5123bb3b50b73255.tar.bz2 |
libproc_macro: Add Spacing type interface.
Add spacing type rust interface to the rust part of the libproc_macro.
ChangeLog:
* librust/proc_macro/rust/lib.rs: Add Spacing type.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | librust/proc_macro/rust/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/librust/proc_macro/rust/lib.rs b/librust/proc_macro/rust/lib.rs index 78a302f..cd53d39 100644 --- a/librust/proc_macro/rust/lib.rs +++ b/librust/proc_macro/rust/lib.rs @@ -268,3 +268,9 @@ impl FromStr for Literal { todo!("Implement this function") } } + +#[derive(Copy, Clone, Debug, PartialEq, Eq)] +pub enum Spacing { + Alone, + Joint, +} |