diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-10-05 17:22:43 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-21 12:36:32 +0100 |
commit | 79434fabf762d60b7aa54e2319c44c1610dd8065 (patch) | |
tree | 0167db1d252b7420e0d7a5d69cee7768013cec01 /gcc/rust/resolve/rust-ast-resolve-expr.cc | |
parent | 00e0684a78a37549eef89d3f445e2129cb90a5d9 (diff) | |
download | gcc-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/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions