aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-11-21 18:28:30 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-30 12:36:46 +0100
commitd6a0d96559b30ffac3dba5be675272f0d8e12a1e (patch)
tree33148594bf8ee4e687466d407cf966a4ccb207ab /gcc/c
parent7a4c2f8e43fca4e18e821fc2df24b6949d09be36 (diff)
downloadgcc-d6a0d96559b30ffac3dba5be675272f0d8e12a1e.zip
gcc-d6a0d96559b30ffac3dba5be675272f0d8e12a1e.tar.gz
gcc-d6a0d96559b30ffac3dba5be675272f0d8e12a1e.tar.bz2
gccrs: Parse module safety
Unsafe module are rejected at a later stage but could not be parsed properly. This commit changes the parser in order to allow unsafe module in the AST. gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::parse_vis_item): Dispatch to parse module when meeting an unsafe module. (Parser::parse_module): Set unsafe status when the parser encounter an unsafe keyword. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions