aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-07-29 17:33:47 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:56:03 +0100
commit46a5df00ab59a9bb816f5865efb9196e31bc18c6 (patch)
tree618b3a69a01029274b1a6553297ead99d1c74b57 /gcc/rust/hir/tree
parent4d630984512b6b79d9412378301ae777411685d4 (diff)
downloadgcc-46a5df00ab59a9bb816f5865efb9196e31bc18c6.zip
gcc-46a5df00ab59a9bb816f5865efb9196e31bc18c6.tar.gz
gcc-46a5df00ab59a9bb816f5865efb9196e31bc18c6.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/hir/tree')
0 files changed, 0 insertions, 0 deletions