aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-ast-lower-expr.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-05-20 15:28:19 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-17 16:35:32 +0100
commitfc1712be9ffde5049cd35aa281a931bc64775b68 (patch)
tree843f4bbd75c0754539196a65b147208110425c4b /gcc/rust/hir/rust-ast-lower-expr.cc
parent997fa94b5276766acb40dd502eb606d5e220e918 (diff)
downloadgcc-fc1712be9ffde5049cd35aa281a931bc64775b68.zip
gcc-fc1712be9ffde5049cd35aa281a931bc64775b68.tar.gz
gcc-fc1712be9ffde5049cd35aa281a931bc64775b68.tar.bz2
gccrs: Add outer attributes to struct expr fields
Struct fields can have outer attributes on their field for various purpose, this behavior should be reflected upon struct expr fields. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Output field attributes. * ast/rust-expr.h (class StructExprField): Add outer attributes member. * parse/rust-parse-impl.h (Parser::parse_struct_expr_field): Parse outer attributes and store them in the appropriate AST node. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir/rust-ast-lower-expr.cc')
0 files changed, 0 insertions, 0 deletions