about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-20 16:54:10 +0200
committerGitHub <noreply@github.com>2024-10-20 16:54:10 +0200
commit6d43de643e26803c6a84dd49e703db475925def1 (patch)
tree0c71e4901b2832b879e10ae1069d1d9d58e55f43 /tests/rustdoc-js-std/parser-errors.js
parentfb42a4581b2d7c3e9ab89d6f68a20031e3592c58 (diff)
parent9f4c9155d4535e08a3148e792711447e44541cd1 (diff)
downloadrust-6d43de643e26803c6a84dd49e703db475925def1.tar.gz
rust-6d43de643e26803c6a84dd49e703db475925def1.zip
Rollup merge of #131843 - workingjubilee:thaw-impossible-reprs, r=lukas-code
compiler: Error on layout of enums with invalid reprs

Surprising no one, the ICEs with the same message have the same root cause.

Invalid reprs can reach layout computation for various reasons. For instance, the compiler may want to use its layout computations to discern if a combination of layout-affecting attributes results in a valid type to begin with by e.g. computing its size. When the input is bad, return an error reflecting that the answer to the question is not a useful one.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions