Skip to content

Commit 478527a

Browse files
Rollup merge of #143084 - RalfJung:const-eval-recursive-static-write, r=oli-obk
const-eval: error when initializing a static writes to that static Fixes rust-lang/rust#142404 by also calling the relevant hook for writes, not just reads. To avoid erroring during the actual write of the initial value, we neuter the hook when popping the final stack frame. Calling the hook during writes requires changing its signature since we cannot pass in the entire interpreter any more. While doing this I also realized a gap in rust-lang/rust#142575 for zero-sized copies on the read side, so I fixed that and added a test. r? `@oli-obk`
2 parents 74e6e9e + b19d928 commit 478527a

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)