rust/compiler/rustc_const_eval/src/interpret
Guillaume Gomez 73100d8e93
Rollup merge of #117317 - RalfJung:track-caller, r=oli-obk
share some track_caller logic between interpret and codegen

Also move the code that implements the track_caller intrinsics out of the core interpreter engine -- it's just a helper creating a const-allocation, doesn't need to be part of the interpreter core.
2023-10-30 17:33:16 +01:00
..
cast.rs Adjust imports 2023-10-20 15:52:57 +00:00
discriminant.rs Evaluate computed values to constants. 2023-10-25 06:46:47 +00:00
eval_context.rs share the track_caller handling within a mir::Body 2023-10-28 16:16:15 +02:00
intern.rs Rename has_provance and tweaks comments. 2023-10-25 17:59:30 +00:00
intrinsics.rs Rollup merge of #117317 - RalfJung:track-caller, r=oli-obk 2023-10-30 17:33:16 +01:00
machine.rs don't UB on dangling ptr deref, instead check inbounds on projections 2023-10-15 18:12:46 +02:00
memory.rs Move provenance checks out of interning method. 2023-10-25 06:46:48 +00:00
mod.rs Directly intern values instead of copying them. 2023-10-25 06:46:48 +00:00
operand.rs Evaluate computed values to constants. 2023-10-25 06:46:47 +00:00
operator.rs don't UB on dangling ptr deref, instead check inbounds on projections 2023-10-15 18:12:46 +02:00
place.rs separate bounds-check from alignment check 2023-10-15 18:13:33 +02:00
projection.rs place evaluation: require the original pointer to be aligned if an access happens 2023-10-15 18:13:31 +02:00
step.rs Evaluate computed values to constants. 2023-10-25 06:46:47 +00:00
terminator.rs s/Generator/Coroutine/ 2023-10-20 21:10:38 +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 Pull mplace validation logic out into an interpreter method 2023-10-23 08:35:26 +00:00
visitor.rs interpret: fix projecting into an unsized field of a local 2023-08-30 13:43:34 +02:00