823984418
823984418
Just for the sake of problem-solving, if someone still cannot build a project with missing `Cargo.lock` files in the future, they can consider doing so: 1. Try building a project...
What is the difference between this and `UnsafeCell` without `UnsafeCell::get_mut`?
Attention: > `UnsafeCell` without `UnsafeCell::get_mut` --- I am not asking if there is a semantic difference between the two. > That's entirely analogous to how UnsafeCell lets the compiler know...
Of course, using language item is one way to implement it, but what I want to ask is whether encapsulating `UnsafeCell` and remove `UnsafeCell::get_mut` is another way. Just like: ```rust...
I think I can understand them, struct has `UnsafeCell` field that refuse to add `no_alias` when transfer immutable borrow argument, and `UnsafeAliased` is further the same when transfer mutable borrow...
Wait, for a struct `T` that includes `UnsafeXXX`, is it sufficient to remove `no_alias ` for `Pin`? Is it unnecessary to remove `no_alias ` for all `&mut T`? If explained...