about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/graph.rs
diff options
context:
space:
mode:
authorLukas Markeffsky <@>2024-09-16 21:37:40 +0200
committerLukas Markeffsky <@>2024-09-17 00:09:21 +0200
commit20d241492590a83eb0946ce4414255e25d2112b8 (patch)
tree8368c824ced15af5be81aa873c7b6017b44ebbb9 /compiler/rustc_mir_transform/src/coverage/graph.rs
parent3db930a463e32daa5052065cedf2d52472b67076 (diff)
downloadrust-20d241492590a83eb0946ce4414255e25d2112b8.tar.gz
rust-20d241492590a83eb0946ce4414255e25d2112b8.zip
get rid of an old hack
For structs that cannot be unsized, the layout algorithm sometimes moves
unsized fields to the end of the struct, which circumvented the error
for unexpected unsized fields and returned an unsized layout anyway.

This commit makes it so that the unexpected unsized error is always
returned for structs that cannot be unsized, allowing us to remove an
old hack and fixing some old ICE.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions