rust/compiler/rustc_const_eval/src/interpret
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
..
cast.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
discriminant.rs Fix some typos 2023-11-14 23:06:50 +08:00
eval_context.rs Auto merge of #118324 - RalfJung:ctfe-read-only-pointers, r=saethlin 2023-12-07 18:11:01 +00:00
intern.rs ctfe interpreter: extend provenance so that it can track whether a pointer is immutable 2023-12-07 17:46:36 +01:00
intrinsics.rs interpret: make numeric_intrinsic accessible from Miri 2023-12-03 11:51:58 +01:00
machine.rs compile-time evaluation: emit a lint when a write through an immutable pointer occurs 2023-12-07 17:46:36 +01:00
memory.rs compile-time evaluation: emit a lint when a write through an immutable pointer occurs 2023-12-07 17:46:36 +01:00
mod.rs Directly intern values instead of copying them. 2023-10-25 06:46:48 +00:00
operand.rs avoid marking as immutable what is already immutable 2023-12-07 17:46:48 +01:00
operator.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
place.rs avoid marking as immutable what is already immutable 2023-12-07 17:46:48 +01:00
projection.rs reject projecting to fields whose offset we cannot compute 2023-12-12 08:15:17 +01:00
step.rs move write_aggregate into step file, and also extract write_repeat into separate function 2023-11-28 11:40:17 +01:00
terminator.rs Auto merge of #118032 - RalfJung:char-u32, r=Mark-Simulacrum 2023-12-11 04:13:19 +00:00
traits.rs make it more clear which functions create fresh AllocId 2023-09-14 07:27:31 +02:00
util.rs s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
validity.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
visitor.rs clippy::complexity fixes 2023-12-12 19:28:13 +01:00