From: Pierre-Emmanuel Patry Date: Mon, 16 Oct 2023 08:29:35 +0000 (+0200) Subject: gccrs: Add path to macro fragment follow restrictions X-Git-Tag: basepoints/gcc-15~2085 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c3e05ad03be05700a7ebbbd3652f74913272d30;p=thirdparty%2Fgcc.git gccrs: 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 --- diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 435ecb118150..c26318b54d2b 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: