]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix missing error on duplicated nodes
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 21 Aug 2024 15:01:29 +0000 (17:01 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Thu, 26 Sep 2024 22:48:32 +0000 (22:48 +0000)
commit76131dd1d561bdc2064e9f91ed19c275d09e7166
tree78a3936fa61eea0b80e35f37acc488c182687883
parentf899498e032260655fad98c83405d835b65b498f
Fix missing error on duplicated nodes

When we tried to insert a shadowable node and another shadowable node has
been inserted before, we didn't emit any error if the node has already
been inserted previously and failed silently.

gcc/rust/ChangeLog:

* resolve/rust-rib.cc (Rib::insert): Emit an error when trying to
insert an already inserted node.

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