diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-07-10 17:26:45 +0500 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-07-11 10:26:26 +0000 |
commit | 1827610473eb11d489bcb6c6aae9417c002ee7be (patch) | |
tree | ac119350f45bfaebea80e6fc73b333bb02b29364 /gcc/rust/backend/rust-constexpr.cc | |
parent | 5d124d1512f93aec076a696daf15dcc646186383 (diff) | |
download | gcc-1827610473eb11d489bcb6c6aae9417c002ee7be.zip gcc-1827610473eb11d489bcb6c6aae9417c002ee7be.tar.gz gcc-1827610473eb11d489bcb6c6aae9417c002ee7be.tar.bz2 |
gccrs: [E0124] field x is already declared in struct
Refactored error message for more
than one duplicate fields.
gcc/rust/ChangeLog:
* hir/rust-ast-lower-base.cc (struct_field_name_exists):
called error function.
gcc/testsuite/ChangeLog:
* rust/compile/bad_pub_enumitems.rs: changed comment to pass test cases.
* rust/compile/dup_fields.rs: likewise.
* rust/execute/same_field_name.rs: New test.
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
Diffstat (limited to 'gcc/rust/backend/rust-constexpr.cc')
0 files changed, 0 insertions, 0 deletions