public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] libproc_macro: Add Delimiter type interface
@ 2023-04-06 21:29 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-04-06 21:29 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:df33f7b5bb1fb0936a9fc6cf9b9cc251447ad89e

commit df33f7b5bb1fb0936a9fc6cf9b9cc251447ad89e
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Fri Feb 10 11:25:50 2023 +0100

    libproc_macro: Add Delimiter type interface
    
    Add the Delimiter type for the rust libproc_macro interface.
    
    ChangeLog:
    
            * librust/proc_macro/rust/lib.rs: Add Ident type.
    
    Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>

Diff:
---
 librust/proc_macro/rust/lib.rs | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/librust/proc_macro/rust/lib.rs b/librust/proc_macro/rust/lib.rs
new file mode 100644
index 00000000000..b2da8bb42d2
--- /dev/null
+++ b/librust/proc_macro/rust/lib.rs
@@ -0,0 +1,8 @@
+#[derive(Copy, Clone, Debug, PartialEq, Eq)]
+pub enum Delimiter {
+    Parenthesis,
+    Brace,
+    Bracket,
+    /// Invisible delimiter
+    None,
+}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-06 21:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-06 21:29 [gcc/devel/rust/master] libproc_macro: Add Delimiter type interface Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).