aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-10-05 17:22:43 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-02-21 12:36:32 +0100
commit79434fabf762d60b7aa54e2319c44c1610dd8065 (patch)
tree0167db1d252b7420e0d7a5d69cee7768013cec01 /gcc/rust/resolve
parent00e0684a78a37549eef89d3f445e2129cb90a5d9 (diff)
downloadgcc-79434fabf762d60b7aa54e2319c44c1610dd8065.zip
gcc-79434fabf762d60b7aa54e2319c44c1610dd8065.tar.gz
gcc-79434fabf762d60b7aa54e2319c44c1610dd8065.tar.bz2
gccrs: Track DefId on ADT variants
We must track the DefID on variants for algebraic data types as this will allow us to enforce unique'ness on path queries relating to this. gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-enumitem.cc (TypeCheckEnumItem::visit): Adjust VariantDef ctor calls with DefID. * typecheck/rust-hir-type-check-item.cc (TypeCheckItem::visit): Likewise. * typecheck/rust-tyty.h (VariantDef): Add defid parameter to ctor.
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions