Closed hanayashiki closed 1 month ago
Isn't it "the location is NOT inside an UnsafeCell"?
Oh, good catch -- yes we only freeze outside of UnsafeCell
. Thanks for pointing this out!
Note however that Stacked Borrows evolved quite a bit since then. See here for an up-to-date version.
Closing the issue as the typo got fixed.
https://www.ralfj.de/blog/2018/11/16/stacked-borrows-implementation.html
I think in the part of retagging,
Isn't it "the location is NOT inside an UnsafeCell"?
According to the update note
According to my English, it means "If there is an UnsafeCell, creating a shared reference will push a Shr item"
Let's assume the update note is correct. Thus, in the part of retagging, there is a conflict, namely:
When we create a shared reference, and if the location IS inside an UnsafeCell, it does not push any a
Shr
to the stack.This makes me very confused, and seems confusing to other, I think.