about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-23 17:02:04 +0100
committerGitHub <noreply@github.com>2024-02-23 17:02:04 +0100
commit4d5c4e5205cba3982951a78dc9ac2b249b73bd97 (patch)
tree9c6116b82d2583ec8ded0e46f4b42d30bf25dd73 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent26cb6c728736ba9c582cbde761d9d9fd10ff74b9 (diff)
parent35a9e7352138b059eaae2a9d0724dcd7f6d10ab5 (diff)
downloadrust-4d5c4e5205cba3982951a78dc9ac2b249b73bd97.tar.gz
rust-4d5c4e5205cba3982951a78dc9ac2b249b73bd97.zip
Rollup merge of #121470 - clubby789:anon-struct-in-enum, r=fmease
Don't ICE on anonymous struct in enum variant

Fixes #121446

Computing `adt_def` for the anon struct calls `adt_def` on the parent to find its repr. If the parent is a non-item (e.g. an enum variant) we should have already emitted at least one error, so we just use the repr of the anonymous struct to avoid an ICE.

cc ``@frank-king``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions