rust/compiler/rustc_const_eval/src/interpret
Matthias Krüger 23ef234bf7
Rollup merge of #95221 - RalfJung:check_and_deref_ptr, r=oli-obk
interpret/memory: simplify check_and_deref_ptr

*Finally* I saw a way to make this code simpler. The odd preprocessing in `let ptr_or_addr =` has bothered me since forever, but it actually became unnecessary in the last provenance refactoring. :)

This also leads to slightly more explicit error messages as a nice side-effect. 🎉

r? `@oli-obk`
2022-03-23 22:13:24 +01:00
..
intrinsics Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
cast.rs CTFE engine: expose misc_cast to Miri 2022-03-06 14:01:01 -05:00
eval_context.rs rename LocalState::Uninitialized to Unallocated 2022-03-21 22:48:11 -04:00
intern.rs rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
intrinsics.rs Auto merge of #94733 - nnethercote:fix-AdtDef-interning, r=fee1-dead 2022-03-12 07:02:05 +00:00
machine.rs Introduce ConstAllocation. 2022-03-07 08:25:50 +11:00
memory.rs interpret/memory: simplify check_and_deref_ptr 2022-03-22 20:19:30 -04:00
mod.rs Rename rustc_mir to rustc_const_eval. 2021-09-07 20:46:26 +02:00
operand.rs rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
operator.rs explain why shift with signed offset works the way it does 2022-03-06 11:29:24 -05:00
place.rs Miri: extend comments on downcast operation 2022-02-22 19:09:11 -05:00
step.rs rustc_const_eval: adopt let else in more places 2022-02-19 01:55:47 +01:00
terminator.rs Miri: implement arbitrary-self dyn receivers 2022-03-18 08:50:30 -04:00
traits.rs Turn tcx.vtable_allocation() into a query. 2021-10-07 20:03:00 +02:00
util.rs Overhaul Const. 2022-02-15 16:19:59 +11:00
validity.rs interpret/validity: improve clarity 2022-03-22 19:03:12 -04:00
visitor.rs Rename rustc_mir to rustc_const_eval. 2021-09-07 20:46:26 +02:00