]> git.ipfire.org Git - thirdparty/gcc.git/commit
Struct are types, not values
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 24 Jan 2024 16:10:42 +0000 (17:10 +0100)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Tue, 26 Mar 2024 17:35:02 +0000 (17:35 +0000)
commit01f3f7b846504858c43a5d94b9d60109369648e1
treefd4b907ef28302e877bf66a0d2106e5ac5e1efd8
parent08a6f1a1183572b35e5151f2b73b1aec41d42db2
Struct are types, not values

We shall search in the right namespace. The correct namespace for struct
is type namespace.

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-item.cc (TypeCheckItem::visit): Change
search location for struct types.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/typecheck/rust-hir-type-check-item.cc