]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add path to macro fragment follow restrictions
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 16 Oct 2023 08:29:35 +0000 (10:29 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:18 +0000 (19:09 +0100)
The previous follow set rules did not allow PATH fragment, changing this
allow gccrs to accept more valid rust macros.

gcc/rust/ChangeLog:

* ast/rust-macro.h: Add PATH fragment to follow set restrictions.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-macro.h

index 435ecb118150113460d56aa40f4a6bc090561b7f..c26318b54d2b75b50ed30dbb11335136113e306d 100644 (file)
@@ -149,6 +149,7 @@ public:
   {
     switch (kind)
       {
+      case PATH:
       case PAT:
       case TY:
       case VIS: