aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-02-10 15:24:28 +0100
committerPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-03-30 13:52:28 +0200
commitb42b30da3e3c40542a5991fe5123bb3b50b73255 (patch)
treeead929f7ca1e2bfa6feeb31d64a6626cd4454ce0
parent0b6b3851de3a8dab4e687069ed49617785c9690f (diff)
downloadgcc-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.rs6
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,
+}