]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Tue, 17 Oct 2023 22:18:41 +0000 (22:18 +0000)
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 28083936800c6f33802e73c1c419836e86f4e914..c7f9025acf80f99036f771a6ab251c7bcfa9e3a3 100644 (file)
@@ -149,6 +149,7 @@ public:
   {
     switch (kind)
       {
+      case PATH:
       case PAT:
       case TY:
       case VIS: