gccrs: Add constant identifiers to the value namespace
commit7f0763069f9d4bbd851623889d59c4d91758f60b
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 24 Jan 2024 16:11:59 +0000 (24 17:11 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 1 Aug 2024 14:52:27 +0000 (1 16:52 +0200)
treee375dfc1a0ff2352c38cb39109165ae4bd531424
parente47d270c0d51d7865a8cf2575ffab46352db371b
gccrs: Add constant identifiers to the value namespace

Constants could not be resolved without their identifier in the right
scope.

gcc/rust/ChangeLog:

* resolve/rust-toplevel-name-resolver-2.0.cc (TopLevel::visit): Add
constant identifiers to the resolver.

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