]> git.ipfire.org Git - thirdparty/gcc.git/commit
rust: Add comment inside block [PR119342]
authorAndrew Pinski <quic_apinski@quicinc.com>
Thu, 20 Mar 2025 00:30:02 +0000 (17:30 -0700)
committerCohenArthur <arthur.cohen@embecosm.com>
Thu, 10 Apr 2025 15:53:50 +0000 (15:53 +0000)
commit7ef77dad7cdd8d4b2b558a190b03a4e39557feab
tree2dc748a1c664a648268b79eb2da396eb002b01ff
parentf20261115987df04a9e62dd9e857561fb1530c8e
rust: Add comment inside block [PR119342]

Inside a BLOCK node, all of the variables of the scope/block
are chained together and that connects them to the block.
This just adds a comment to that effect as reading the code
it is not so obvious why they need to be chained together.

gcc/rust/ChangeLog:

PR rust/119342
* rust-gcc.cc (block): Add comment on why chaining
the variables of the scope toether.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/rust/rust-gcc.cc