aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-07-29 17:33:47 +0100
committerPhilip Herron <philip.herron@embecosm.com>2023-07-29 17:27:20 +0000
commit5a378edb750eed4816f4bb1d8b531ca9dd7ef6e2 (patch)
treee55b792992997531f8a1ce3c03d5852a49b0c025 /gcc/rust/rust-gcc.cc
parent7ce263e17a59c44d057bfb1ed6a8ab1c4d837f28 (diff)
downloadgcc-5a378edb750eed4816f4bb1d8b531ca9dd7ef6e2.zip
gcc-5a378edb750eed4816f4bb1d8b531ca9dd7ef6e2.tar.gz
gcc-5a378edb750eed4816f4bb1d8b531ca9dd7ef6e2.tar.bz2
gccrs: fix ICE when we have unimplemented/invalid trait items
When the resulting trait item is in an error state this means the underlying fields will be null. Fixes #2478 gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-item.cc: add is_error check gcc/testsuite/ChangeLog: * rust/compile/non_member_const.rs: add missing error message * rust/compile/issue-2478.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
0 files changed, 0 insertions, 0 deletions