diff options
author | Mark Wielaard <mark@klomp.org> | 2021-09-06 00:48:11 +0200 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-09-06 11:07:35 +0100 |
commit | eaf5bc5c38412514a5abb028fca343c838ac51ca (patch) | |
tree | e31ad30bd83f58c5944d9b66b7666190f0b338f1 /gcc/explow.c | |
parent | a3ac8573495919f1c8f6d6cca6578edd5e3ab01e (diff) | |
download | gcc-eaf5bc5c38412514a5abb028fca343c838ac51ca.zip gcc-eaf5bc5c38412514a5abb028fca343c838ac51ca.tar.gz gcc-eaf5bc5c38412514a5abb028fca343c838ac51ca.tar.bz2 |
Add EnumItem HIR lowering
Make HIT EnumItem class an Item, not VisItem like in the AST. At the
HIR level EnumItems shouldn't have visibility anymore.
Move struct_field_name_exists to rust-ast-lower.cc with the
declaration in rust-ast-lower.h to make it reusable in the different
visitors.
Add a new ASTLoweringEnumItem that can be used from ASTLoweringItem
and ASTLoweringStmt. It checks the EnumItems don't have visibility and
that EnumItemStruct fields are not duplicated.
Add a new testcase 'bad_pub_enumitems.rs' to check the no-visibility and
no-duplicates properties hold.
Diffstat (limited to 'gcc/explow.c')
0 files changed, 0 insertions, 0 deletions