rust/compiler/rustc_const_eval/src
bors 2fdd9eda0c Auto merge of #118534 - RalfJung:extern-type-size-of-val, r=WaffleLapkin
codegen: panic when trying to compute size/align of extern type

The alignment is also computed when accessing a field of extern type at non-zero offset, so we also panic in that case.

Previously `size_of_val` worked because the code path there assumed that "thin pointer" means "sized". But that's not true any more with extern types. The returned size and align are just blatantly wrong, so it seems better to panic than returning wrong results. We use a non-unwinding panic since code probably does not expect size_of_val to panic.
2023-12-13 08:33:05 +00:00
..
const_eval avoid marking as immutable what is already immutable 2023-12-07 17:46:48 +01:00
interpret Auto merge of #118534 - RalfJung:extern-type-size-of-val, r=WaffleLapkin 2023-12-13 08:33:05 +00:00
transform Auto merge of #118692 - surechen:remove_unused_imports, r=petrochenkov 2023-12-10 11:55:48 +00:00
util Revert "Don't print host effect param in pretty path_generic_args" 2023-12-10 10:17:28 +00:00
errors.rs compile-time evaluation: emit a lint when a write through an immutable pointer occurs 2023-12-07 17:46:36 +01:00
lib.rs Use rustc_fluent_macro::fluent_messages! directly. 2023-11-26 08:38:40 +11:00