From 94b1ff75bb7d45804034fcd08e634d36727ffcc2 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Mon, 16 Oct 2023 10:29:35 +0200 Subject: [PATCH] Add path to macro fragment follow restrictions 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 --- gcc/rust/ast/rust-macro.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 28083936800c..c7f9025acf80 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -149,6 +149,7 @@ public: { switch (kind) { + case PATH: case PAT: case TY: case VIS: -- 2.47.2