about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2022-07-11 20:54:31 -0400
committerBen Kimock <kimockb@gmail.com>2022-07-12 21:03:54 -0400
commit4eff60ad6e37cd8f37e994d42c8c1ce271670bd4 (patch)
treecc61fe13b7c8854295b65a243c6d11a86bb98772 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
parentafa1dddcf97cf6008cfb447739b4b61e04f86660 (diff)
downloadrust-4eff60ad6e37cd8f37e994d42c8c1ce271670bd4.tar.gz
rust-4eff60ad6e37cd8f37e994d42c8c1ce271670bd4.zip
Rearrange and document the new implementation
stacked_borrow now has an item module, and its own FrameExtra. These
serve to protect the implementation of Item (which is a bunch of
bit-packing tricks) from the primary logic of Stacked Borrows, and the
FrameExtra we have separates Stacked Borrows more cleanly from the
interpreter itself.

The new strategy for checking protectors also makes some subtle
performance tradeoffs, so they are now documented in Stack::item_popped
because that function primarily benefits from them, and it also touches
every aspect of them.

Also separating the actual CallId that is protecting a Tag from the Tag
makes it inconvienent to reproduce exactly the same protector errors, so
this also takes the opportunity to use some slightly cleaner English in
those errors. We need to make some change, might as well make it good.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions