1
Fork 0
rust/compiler/rustc_const_eval/src
bors cb580ff677 Auto merge of #122243 - RalfJung:local-place-sanity-check, r=oli-obk
interpret: ensure that Place is never used for a different frame

We store the address where the stack frame stores its `locals`. The idea is that even if we pop and push, or switch to a different thread with a larger number of frames, then the `locals` address will most likely change so we'll notice that problem. This is made possible by some recent changes by `@WaffleLapkin,` where we no longer use `Place` across things that change the number of stack frames.

I made these debug assertions for now, just to make sure this can't cost us any perf.

The first commit is unrelated but it's a one-line comment change so it didn't warrant a separate PR...

r? `@oli-obk`
2024-03-14 07:28:07 +00:00
..
const_eval Ensure nested allocations in statics do not get deduplicated 2024-03-12 05:53:46 +00:00
interpret Auto merge of #122243 - RalfJung:local-place-sanity-check, r=oli-obk 2024-03-14 07:28:07 +00:00
transform Rollup merge of #121893 - RalfJung:const-interior-mut-tests, r=oli-obk 2024-03-11 09:29:34 -07:00
util Rollup merge of #121731 - oli-obk:eager_opaque_checks, r=compiler-errors 2024-03-02 20:13:23 +01:00
errors.rs downgrade mutable-ptr-in-final-value from hard-error to future-incompat lint to address issue 121610. 2024-03-13 10:32:39 -04:00
lib.rs interpret: ensure that Place is never used for a different frame 2024-03-09 18:28:14 +01:00