diff options
author | David Faust <david.faust@oracle.com> | 2022-01-20 12:43:51 -0800 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2022-01-20 12:53:23 -0800 |
commit | b4587fb281d3066e4591a5067e2fa9a79df272aa (patch) | |
tree | ed72786f6e720f99e1648233c86bf2c77d9c393c /gcc/rust/backend/rust-compile.cc | |
parent | b02824c6a798a78657568e7d831bd10529d63e37 (diff) | |
download | gcc-b4587fb281d3066e4591a5067e2fa9a79df272aa.zip gcc-b4587fb281d3066e4591a5067e2fa9a79df272aa.tar.gz gcc-b4587fb281d3066e4591a5067e2fa9a79df272aa.tar.bz2 |
Record correct location when compiling ADT types
When compiling ADTTypes, the wrong HirId was being used for location
lookup. This produced an issue where the gimple dump would not write
type names for struct and union types, because they were mistaken for
built-in types.
Also add new test testsuite/rust/compile/torture/struct_decl.rs.
Fixes: #877
Diffstat (limited to 'gcc/rust/backend/rust-compile.cc')
0 files changed, 0 insertions, 0 deletions