]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: ast: Fix StructExprStruct tokenstream
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 5 Apr 2023 11:45:36 +0000 (13:45 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:28:47 +0000 (18:28 +0100)
commit7d8de1ca4a78ec7bf9cdd7e5cbe9d11bd2546efe
tree08b84ff746d1435b0b4b34d412101dcff611ecd4
parentcd73752ad6df6dde49323e0d5facb87dce70fff1
gccrs: ast: Fix StructExprStruct tokenstream

StructExprStructFields inherit from StructExprStruct and shall output
the struct name and curly braces.

gcc/rust/ChangeLog:

* ast/rust-ast-tokenstream.cc (TokenStream::visit): Add struct
name and curly braces to output tokenstream.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-ast-tokenstream.cc