aboutsummaryrefslogtreecommitdiff
path: root/gcc/input.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2024-09-20 17:38:14 +0100
committerPhilip Herron <philip.herron@embecosm.com>2024-09-27 11:55:56 +0000
commit18422c9c386ca49f8427cdd26a882749603d6da8 (patch)
tree3827d8dfce1764e47243a06f273bacb26d102929 /gcc/input.h
parentc6a479fb9312b9166ca94a588aa85c9172f5ae19 (diff)
downloadgcc-18422c9c386ca49f8427cdd26a882749603d6da8.zip
gcc-18422c9c386ca49f8427cdd26a882749603d6da8.tar.gz
gcc-18422c9c386ca49f8427cdd26a882749603d6da8.tar.bz2
rust: fix ICE during name resolution for impls on unit-types
The canonical paths need to support unit-types which are technically a TupleType with no fields. This handles this case and adds an unreachable. Fixes #3036 gcc/rust/ChangeLog: * resolve/rust-ast-resolve-type.cc (ResolveTypeToCanonicalPath::visit): add unit-type catch * resolve/rust-ast-resolve-type.h: likewise gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr2 cant handle this * rust/compile/issue-3036.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/input.h')
0 files changed, 0 insertions, 0 deletions