aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-10-10 15:46:48 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-10-17 14:07:33 +0000
commit3e3180abd50ee3cb530ff1cd48d80a7c1da148d0 (patch)
tree796b81783145b4a8ee8e9344f64e4b6001a8b1ad /gcc/rust/resolve
parent0abe96a7d41b0cf667a8ec93a4b44b1a3de4c1a2 (diff)
downloadgcc-3e3180abd50ee3cb530ff1cd48d80a7c1da148d0.zip
gcc-3e3180abd50ee3cb530ff1cd48d80a7c1da148d0.tar.gz
gcc-3e3180abd50ee3cb530ff1cd48d80a7c1da148d0.tar.bz2
Allow macro named macro_rules
Change the constraints around macro rules declaration in order to allow macro_rules named macro as well as tighter constraint around macro rules definitions. gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::is_macro_rules_def): Add a function that checks tokens given by the lexer represents an accurate macro definition. This will reduce code duplication. (Parser::parse_item): Replace condition with call to new checking function. (Parser::parse_stmt): Likewise. * parse/rust-parse.h: Add function prototype for is_macro_rules_def. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions