Skip to content

Commit

Permalink
Add path to macro fragment follow restrictions
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
P-E-P committed Oct 17, 2023
1 parent c3b68b5 commit 94b1ff7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gcc/rust/ast/rust-macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ class MacroFragSpec
{
switch (kind)
{
case PATH:
case PAT:
case TY:
case VIS:
Expand Down

0 comments on commit 94b1ff7

Please sign in to comment.