You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is expected behavior: you created ptr2, and since it is a raw pointer, Miri / Stacked Borrows make no attempt at distinguishing that from ptr. So now ptr also has the "permissions" that were granted to ptr2. You can use -Zmiri-track-raw-pointers to change this behavior and use more precise tracking, at the cost of not supporting ptr-int-casts any more.
Build borrow record like below,
Then I can access user.y via ptr successfully.
The text was updated successfully, but these errors were encountered: